133 lines
5.0 KiB
HTML
133 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<title>权限管理-玩家解绑</title>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=8">
|
||
<meta http-equiv="Cache" content="no-cache">
|
||
<meta http-equiv="Pragma" content="no-cache">
|
||
<meta http-equiv="Cache-Control" content="no-cache">
|
||
<meta http-equiv="Expires" content="0"><!--expires出现在http-equiv属性中,使用content属性表示页面缓存的过期时间-->
|
||
<link rel="stylesheet" type="text/css" href="css/style.css?__HTML_VERSION__=6">
|
||
<link rel="stylesheet" href="./libs/bootstrap/bootstrap.min.css?__HTML_VERSION__=3">
|
||
<style>
|
||
.indent {text-indent: 2em;}
|
||
</style>
|
||
</head>
|
||
<body class="bg_hui">
|
||
<div class="count_full" id="app">
|
||
<header class="header header-pos-fix">
|
||
<div onclick="history.back(-1)">
|
||
<img src="img/fahui.png" class="img" >
|
||
<span class="text_wen">返回</span>
|
||
</div>
|
||
</header>
|
||
<div style="width: 100%;height: 45px;display: block;"></div>
|
||
<div style="padding: 0 10px;">
|
||
功能描述:
|
||
<p class="indent">1. 输入玩家id,点击解绑按钮,将会解绑该玩家绑定的上级代理和上上级代理;</p>
|
||
可能遇到的问题:
|
||
<p class="indent red">1. 确定玩家已绑定,但是点查询显示未绑定,说明这个玩家的绑定关系有问题,直接点解绑,让玩家再重新绑定即可;</p>
|
||
|
||
</div>
|
||
<section class="buju">
|
||
|
||
<div class="chongka" id="fengwan">
|
||
<div class="rowh he">
|
||
<span class="name">玩 家 ID:</span>
|
||
<input type="number" placeholder="请输入玩家ID" class="input" autofocus v-model="queryInfo.queryID">
|
||
<a href="javascript:;" class="btn btn-blue chaxun" @click="queryPlayer()">查询</a>
|
||
</div>
|
||
<div class="rowh he">
|
||
<span class="name">代 理 ID:</span>
|
||
<input type="text" placeholder="上级代理ID" class="input" v-bind:value="queryInfo.saleID">
|
||
</div>
|
||
<div class="rowh he">
|
||
<span class="name">代理昵称:</span>
|
||
<input type="text" placeholder="上级代理昵称" class="input" v-bind:value="queryInfo.saleName">
|
||
</div>
|
||
|
||
<div class="rowh text-center conkabtn">
|
||
<a href="javascript:;" class="btn btn-danger closes" @click="unBindSale()">解绑</a>
|
||
</div>
|
||
</div>
|
||
|
||
</section>
|
||
</div>
|
||
|
||
<script src="./libs/jquery.min.js?__HTML_VERSION__=3"></script>
|
||
<script src="./libs/bootstrap/bootstrap.min.js?__HTML_VERSION__=3"></script>
|
||
<script src="./libs/vue.min.js?__HTML_VERSION__=3"></script>
|
||
<script src="./libs/layer_mobile/layer.js?__HTML_VERSION__=3"></script>
|
||
<script src="./js/function.js?__HTML_VERSION__=18"></script>
|
||
<script src="./components/home-nav.js?__HTML_VERSION__=12"></script>
|
||
|
||
<script>
|
||
|
||
var vm = new Vue({
|
||
el:"#app",
|
||
data:{
|
||
myInfo:{},
|
||
urlParam:{},
|
||
queryInfo:{
|
||
queryID:'',
|
||
saleID:'',
|
||
saleName:''
|
||
}
|
||
},
|
||
methods:{
|
||
goHome:function () {
|
||
window.location.href = 'index.html?' + 'agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid+'&__HTML_VERSION__=3';
|
||
},
|
||
queryPlayer:function () {
|
||
$.api(
|
||
'agent.user.mySale',
|
||
{
|
||
agentid:this.urlParam.agentid,
|
||
channelid:this.urlParam.channelid,
|
||
playerid:this.queryInfo.queryID
|
||
},
|
||
function (res) {
|
||
this.queryInfo.saleID = res.saus_salesid;
|
||
this.queryInfo.saleName = res.saus_nickname;
|
||
}.bind(this), 1
|
||
|
||
);
|
||
|
||
},
|
||
unBindSale:function () {
|
||
if (this.queryInfo.queryID === null || this.queryInfo.queryID === '')
|
||
{
|
||
$.alert("请输入正确的玩家id!");
|
||
return;
|
||
}
|
||
|
||
$.api(
|
||
'agent.user.releaseUser',
|
||
{
|
||
agentid:this.urlParam.agentid,
|
||
channelid:this.urlParam.channelid,
|
||
playerid:this.queryInfo.queryID
|
||
},
|
||
function ()
|
||
{
|
||
this.queryInfo.saleID = '';
|
||
this.queryInfo.saleName = '';
|
||
$.alert("解绑成功!");
|
||
}.bind(this), 1
|
||
);
|
||
}
|
||
},
|
||
created:function(){
|
||
|
||
this.urlParam = $.getQueryObj();
|
||
|
||
$.getUserInfo(function (r) {
|
||
this.myInfo = r;
|
||
}.bind(this));
|
||
}
|
||
})
|
||
</script>
|
||
</body>
|
||
</html> |