You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.5 KiB
51 lines
1.5 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<script src="../../lib/jquery-3.6.0.min.js"></script>
|
|
<script src="../../lib/layui/layui.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
</body>
|
|
|
|
<script type="text/javascript">
|
|
layui.extend({
|
|
admin: '{/}../../static/js/admin'
|
|
});
|
|
layui.use(['jquery','admin', 'layer'], function() {
|
|
var $ = layui.jquery,
|
|
admin = layui.admin,
|
|
layer = layui.layer;
|
|
$(function () {
|
|
var code=GetQueryString('code');
|
|
// alert(code)
|
|
$.ajax({
|
|
url: '/FengHuang/loginPerson/bindWx',
|
|
type: 'POST',
|
|
data:{
|
|
"code":code
|
|
},
|
|
dataType: "json",
|
|
success:function(data){
|
|
if(data.success){
|
|
layer.msg("绑定成功", {icon: 1,time:2000,shade : [0.5 , '#000' , true]},function() {
|
|
window.close();
|
|
// window.parent.isWxBind();
|
|
window.opener.location.reload();//刷新父窗口
|
|
})
|
|
|
|
} else{
|
|
layer.msg("绑定异常", {icon: 1,time:2000,shade : [0.5 , '#000' , true]});
|
|
setTimeout(function () {
|
|
window.close();
|
|
},3000)
|
|
return false;
|
|
}
|
|
|
|
}
|
|
})
|
|
})
|
|
})
|
|
</script>
|
|
</html> |