修改wechat配置

This commit is contained in:
guange 2016-03-01 15:37:48 +08:00
parent 9872e05b95
commit 4802743aed
1 changed files with 23 additions and 20 deletions

View File

@ -2,32 +2,13 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<%= csrf_meta_tag %>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>绑定用户</title> <title>绑定用户</title>
<link rel="stylesheet" href="/stylesheets/weui/weui.min.css"/> <link rel="stylesheet" href="/stylesheets/weui/weui.min.css"/>
<script type="text/javascript" charset="utf-8" src="/javascripts/jquery.min.js" /> <script type="text/javascript" charset="utf-8" src="/javascripts/jquery.min.js" />
<%= csrf_meta_tag %>
<script type="text/javascript">
$(function(){
console.log("started.");
$("#submitForm").click(function(){
var data = {};
$("#main_login_form").serializeArray().map(function(x){data[x.name] = x.value;});
console.log(data);
$.ajax({
type: "POST",
url: $(this).parent("form").attr("action"),
data:data,
dataType: "json"
});
})
});
</script>
</head> </head>
<div class="loginIn"> <div class="loginIn">
@ -66,5 +47,27 @@
</div> </div>
<script type="text/javascript">
$(function(){
console.log("started.");
$("#submitForm").click(function(){
var data = {};
$("#main_login_form").serializeArray().map(function(x){data[x.name] = x.value;});
console.log(data);
$.ajax({
type: "POST",
url: $(this).parent("form").attr("action"),
data:data,
dataType: "json"
});
})
});
</script>
</body> </body>
</html> </html>