init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,122 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<!--[1.1.7]-->
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>绑定微信</title>
|
||||
<link rel="stylesheet" href="__PUBLIC__/vip/css/accredit.css">
|
||||
<style>
|
||||
body,html{
|
||||
background-color: white;
|
||||
}
|
||||
.box{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
color: #333;
|
||||
}
|
||||
.box>span{
|
||||
line-height: 32px;
|
||||
}
|
||||
.tips{
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
.accredit-btn {
|
||||
width: 70%;
|
||||
height: 40px;
|
||||
background: #07c160;
|
||||
line-height: 40px;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
border-radius: 20px;
|
||||
margin-top: 150px;
|
||||
outline: none;
|
||||
border: none;
|
||||
text-align: center;
|
||||
}
|
||||
.notClick{
|
||||
background-color: #ccc;
|
||||
}
|
||||
.item-btn-one {
|
||||
width: 90%;
|
||||
height: 40px;
|
||||
background: #FFffff;
|
||||
line-height: 40px;
|
||||
color: #333;
|
||||
font-size: 16px;
|
||||
outline: none;
|
||||
border: none;
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<empty name="userInfo">
|
||||
<div class="box">
|
||||
<div class="tips">{$msg}</div>
|
||||
<div class="accredit-btn btn">退出</div>
|
||||
</div>
|
||||
<else/>
|
||||
<div class="box">
|
||||
<span>您正在授权于{$userInfo['type']}</span>
|
||||
<span style="font-weight: bold;">{$userInfo['name']}</span>
|
||||
<span>绑定登录权限</span>
|
||||
<div class="accredit-btn sub">确认绑定</div>
|
||||
<div class="item-btn-one cancel">取消绑定</div>
|
||||
</div>
|
||||
</empty>
|
||||
|
||||
<script src="__PUBLIC__/vip/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="__PUBLIC__/vip/js/window-reload.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
|
||||
<script>
|
||||
layui.use(['layer','form'],function () {
|
||||
var layer = layui.layer;
|
||||
$(".sub").click(function () {
|
||||
if(!$(this).hasClass('notClick')){
|
||||
$(this).addClass('notClick');
|
||||
$.post("{:U('checkUser')}",{
|
||||
token: "{$token}"
|
||||
},function (res) {
|
||||
if(res.status == 1){
|
||||
layer.msg(res.msg,{time:1000},function () {
|
||||
WeixinJSBridge.call('closeWindow');
|
||||
});
|
||||
}else{
|
||||
layer.msg(res.msg,{time:1000,icon:7});
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
var canClick = true;
|
||||
$(".cancel").click(function () {
|
||||
if(canClick){
|
||||
canClick = false;
|
||||
$.post("{:U('cancelAuth')}",{
|
||||
token: "{$token}"
|
||||
},function (res) {
|
||||
if(res.status == 1){
|
||||
layer.msg(res.msg,{time:1000},function () {
|
||||
WeixinJSBridge.call('closeWindow');
|
||||
});
|
||||
}else{
|
||||
layer.msg(res.msg,{time:1000,icon:7});
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
$('.btn').click(function () {
|
||||
WeixinJSBridge.call('closeWindow');
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户