2016-01-19 15:06:40 +08:00
|
|
|
<!DOCTYPE html>
|
2016-01-20 21:49:22 +08:00
|
|
|
<html lang="en">
|
2016-01-19 15:06:40 +08:00
|
|
|
<head>
|
2016-01-20 21:49:22 +08:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
|
|
|
|
<title>绑定用户</title>
|
2016-01-20 21:52:36 +08:00
|
|
|
<link rel="stylesheet" href="/stylesheets/weui/weui.min.css"/>
|
2016-03-01 15:21:20 +08:00
|
|
|
<script type="text/javascript" charset="utf-8" src="/javascripts/jquery.min.js" />
|
|
|
|
<%= csrf_meta_tag %>
|
2016-01-20 22:14:47 +08:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
2016-03-01 15:21:20 +08:00
|
|
|
$(function(){
|
|
|
|
$("#submitForm").click(function(){
|
|
|
|
$.ajax({
|
|
|
|
type: "POST",
|
2016-03-01 15:24:30 +08:00
|
|
|
url: $(this).parent("form").attr("action") + "?&authenticity_token=" + <%=form_authenticity_token%>,
|
2016-03-01 15:21:20 +08:00
|
|
|
data:$(this).parent("form").serialize(),
|
|
|
|
dataType: "json"
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
2016-01-20 22:14:47 +08:00
|
|
|
</script>
|
2016-01-20 21:49:22 +08:00
|
|
|
</head>
|
2016-01-19 15:06:40 +08:00
|
|
|
|
2016-01-19 14:28:13 +08:00
|
|
|
<div class="loginIn">
|
|
|
|
<div>
|
2016-01-20 22:14:47 +08:00
|
|
|
<p class="weui_cells_title wechat-error">
|
2016-01-19 14:28:13 +08:00
|
|
|
<%= @wechat_bind_errors %>
|
|
|
|
</p>
|
|
|
|
</div>
|
2016-01-20 21:49:22 +08:00
|
|
|
|
|
|
|
|
2016-01-19 14:28:13 +08:00
|
|
|
<%= form_tag(bind_wechat_path,:id=>'main_login_form',:method=>'post') do %>
|
2016-01-20 21:49:22 +08:00
|
|
|
<div class="weui_cells weui_cells_form">
|
|
|
|
<div class="weui_cell">
|
|
|
|
<div class="weui_cell_hd"><label class="weui_label">用户名</label></div>
|
|
|
|
<div class="weui_cell_bd weui_cell_primary">
|
2016-01-20 21:57:48 +08:00
|
|
|
<input class="weui_input" autocapitalize="off" type="text" name="username" placeholder="请输入邮箱地址或昵称"/>
|
2016-01-20 21:49:22 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-01-19 14:28:13 +08:00
|
|
|
|
2016-01-20 21:49:22 +08:00
|
|
|
<div class="weui_cell">
|
|
|
|
<div class="weui_cell_hd"><label class="weui_label">用户名</label></div>
|
|
|
|
<div class="weui_cell_bd weui_cell_primary">
|
|
|
|
<input class="weui_input" type="password" name="password" placeholder="请输密码"/>
|
2016-01-19 14:28:13 +08:00
|
|
|
</div>
|
2016-01-20 21:49:22 +08:00
|
|
|
</div>
|
2016-01-19 14:28:13 +08:00
|
|
|
|
|
|
|
<input type="hidden" value="<%=@openid%>" name="openid">
|
|
|
|
|
2016-01-20 21:49:22 +08:00
|
|
|
<div class="weui_btn_area">
|
2016-03-01 15:21:20 +08:00
|
|
|
<a class="weui_btn weui_btn_primary" id="submitForm">确定</a>
|
2016-01-20 21:49:22 +08:00
|
|
|
</div>
|
|
|
|
|
2016-01-19 14:28:13 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
2016-01-19 15:06:40 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|