<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
<script type="text/javascript">
|
var openId = '${RequestParameters.openId}';
|
$(function(){
|
$("#bind").click(function() {
|
var username = $.trim($("#username").val());
|
if($.util.isEmpty(username)) {
|
popupTips("请输入账户", 1000);
|
return;
|
}
|
|
var password = $.trim($("#password").val());
|
if($.util.isEmpty(password)) {
|
popupTips("请输入密码", 1000);
|
return;
|
}
|
|
$.post("${base}/wechat/doCustomerBind.html",{"username":username,"password":password,"openId":openId},function(data,textStatus) {
|
|
if(data=="1") {
|
popupTips("绑定成功", 1000);
|
window.location.href="${base}/uwyw/uhome.html";
|
} else {
|
popupTips(data,1000);
|
}
|
})
|
});
|
|
$("#username,#password").keyup(function() {
|
var username = $.trim($("#username").val());
|
var password = $.trim($("#password").val());
|
if(!$.util.isEmpty(username) && !$.util.isEmpty(password)) {
|
$("#unbind").hide();
|
$("#bind").show();
|
} else {
|
$("#unbind").show();
|
$("#bind").hide();
|
}
|
});
|
})
|
|
|
|
</script>
|
</head>
|
|
|
<body class="loginbg">
|
<section>
|
<header class="loginlogo"></header>
|
<div class="loginwrap">
|
<p><input type="text" placeholder="请输入您的账号" name="username" id="username"/></p>
|
<p><input type="password" placeholder="请输入您的密码" name="password" id="password" /></p>
|
</div>
|
<button type="button" class="loginbtn2" id="unbind"/><span>绑定</span></button>
|
<button type="button" class="loginbtn2 " id="bind" style="display:none;"/><span class="white">绑定</span></button>
|
</section>
|
</body>
|
|
|
|
|
</html>
|