添加后台代理代码
This commit is contained in:
125
codes/agent/game/dlweb/api/web2/sales_unbind.html
Normal file
125
codes/agent/game/dlweb/api/web2/sales_unbind.html
Normal file
@@ -0,0 +1,125 @@
|
||||
<!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">
|
||||
<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="query_id">
|
||||
<a href="javascript:;" class="btn btn-blue chaxun" @click="querySales()">查询</a>
|
||||
</div>
|
||||
<div class="rowh he">
|
||||
<span class="name">代 理 ID:</span>
|
||||
<input type="text" placeholder="上级推广账号" class="input" :value="parentSalesInfo.parentid" readonly>
|
||||
</div>
|
||||
<div class="rowh he">
|
||||
<span class="name">上级昵称:</span>
|
||||
<input type="text" placeholder="上级昵称" class="input" :value="parentSalesInfo.name" readonly>
|
||||
</div>
|
||||
|
||||
<div class="rowh text-center conkabtn">
|
||||
<a href="javascript:;" class="btn btn-danger closes" @click="unBind()">解绑</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>
|
||||
|
||||
new Vue(
|
||||
{
|
||||
el: "#app",
|
||||
data: {
|
||||
params: {},
|
||||
// 上级代理的信息
|
||||
parentSalesInfo: {},
|
||||
// 查询人的id
|
||||
query_id: ''
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 代理的上级代理信息
|
||||
*/
|
||||
querySales: function () {
|
||||
var el = this;
|
||||
|
||||
try {
|
||||
if(!this.query_id) throw '请输入查询id';
|
||||
} catch (e) {
|
||||
$.alert(e);
|
||||
return;
|
||||
}
|
||||
|
||||
$.api(
|
||||
'agent.agent.myRecommend',
|
||||
{
|
||||
agentid: el.params.agentid,
|
||||
channelid: el.params.channelid,
|
||||
salesid: el.query_id
|
||||
},
|
||||
function (res) {
|
||||
el.parentSalesInfo = res;
|
||||
}, 1
|
||||
);
|
||||
|
||||
},
|
||||
/**
|
||||
* 解绑代理的上级
|
||||
*/
|
||||
unBind: function () {
|
||||
var el = this;
|
||||
|
||||
try {
|
||||
if(!this.query_id) throw '请输入查询id';
|
||||
} catch (e) {
|
||||
$.alert(e);
|
||||
return;
|
||||
}
|
||||
|
||||
$.api(
|
||||
'agent.user.salesUnbind',
|
||||
{
|
||||
agentid: el.params.agentid,
|
||||
channelid: el.params.channelid,
|
||||
salesid: el.query_id
|
||||
},
|
||||
function (res) {
|
||||
el.parentSalesInfo = res;
|
||||
$.msg('解绑成功');
|
||||
}, 1
|
||||
);
|
||||
}
|
||||
},
|
||||
created: function () {
|
||||
|
||||
this.params = $.getQueryObj();
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user