128 lines
4.6 KiB
HTML
128 lines
4.6 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">
|
|
<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">
|
|
|
|
</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>
|
|
<section class="buju">
|
|
<div class="chongka" id="fengwan">
|
|
<div class="rowh he">
|
|
<span class="name">账号:</span>
|
|
<input type="number" placeholder="请输入账号" class="input" autofocus v-model="queryInfo.queryID">
|
|
<a href="javascript:;" class="btn btn-blue chaxun" @click="querySaleInfo()">查询</a>
|
|
</div>
|
|
<div class="rowh he">
|
|
<span class="name">昵称:</span>
|
|
<input type="text" placeholder="空" class="input" v-bind:value="queryInfo.saleName">
|
|
</div>
|
|
<div class="rowh he" style="height:auto;">
|
|
<span>注意:</span><span style="line-height: 1.5;color:red">该账号下的所有存在绑定关系的 子用户以及玩家 都将解绑,请慎重操作!</span>
|
|
</div>
|
|
<div class="rowh text-center conkabtn">
|
|
<a href="javascript:;" class="btn btn-danger closes" @click="unBindSales()">清除</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",
|
|
components: {
|
|
'home-nav': homeNav
|
|
},
|
|
data:{
|
|
myInfo:{},
|
|
urlParam:{},
|
|
queryInfo:{
|
|
queryID:'',
|
|
saleName:''
|
|
}
|
|
},
|
|
methods:{
|
|
goHome:function () {
|
|
window.location.href = 'index.html?' + 'agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid+'&__HTML_VERSION__=3';
|
|
},
|
|
querySaleInfo:function () {
|
|
if (this.queryInfo.queryID === null || this.queryInfo.queryID === '')
|
|
{
|
|
$.alert("请输入正确的代理ID!");
|
|
return;
|
|
}
|
|
|
|
var param = {
|
|
agentid: this.urlParam.agentid,
|
|
channelid: this.urlParam.channelid,
|
|
salesid: this.queryInfo.queryID
|
|
};
|
|
|
|
$.api(
|
|
'agent.agent.findAgent',
|
|
param,
|
|
function(res){
|
|
this.queryInfo.saleName = res.salesname;
|
|
|
|
}.bind(this), 1
|
|
)
|
|
|
|
},
|
|
unBindSales:function () {
|
|
if (this.queryInfo.queryID === null || this.queryInfo.queryID === '')
|
|
{
|
|
$.alert("请输入正确的玩家id!");
|
|
return;
|
|
}
|
|
|
|
$.api(
|
|
'agent.agent.unbind',
|
|
{
|
|
agentid:this.urlParam.agentid,
|
|
channelid:this.urlParam.channelid,
|
|
salesid:this.queryInfo.queryID
|
|
},
|
|
function ()
|
|
{
|
|
$.alert("解绑成功!");
|
|
}.bind(this), 1
|
|
);
|
|
}
|
|
},
|
|
created:function(){
|
|
|
|
this.urlParam = $.getQueryObj();
|
|
|
|
$.getUserInfo(function (r) {
|
|
this.myInfo = r;
|
|
}.bind(this));
|
|
}
|
|
})
|
|
</script>
|
|
</body>
|
|
</html> |