添加后台代理代码
This commit is contained in:
159
codes/agent/game/dlweb/api/web2/power_yongjin.html
Normal file
159
codes/agent/game/dlweb/api/web2/power_yongjin.html
Normal file
@@ -0,0 +1,159 @@
|
||||
<!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">
|
||||
</head>
|
||||
<body class="bg_hui">
|
||||
<div class="count_full" id="app" v-show="!isLoading" style="display: none">
|
||||
<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="fengdai">
|
||||
<!-- <div class="rowh he" v-for="i in queryInfo.detail">
|
||||
<span class="name" v-text="i.type_name"></span>
|
||||
<input type="number" placeholder="普通佣金比例(例:1,2)" class="input" autofocus v-model="i.system_commission_rate"><span class="margin-left-5">(%)</span>
|
||||
</div>-->
|
||||
<div class="rowh he">
|
||||
<span class="name">普通场:</span>
|
||||
<input type="number" placeholder="普通佣金比例(例:1,2)" class="input" autofocus v-model="queryInfo.type_id_1"><span class="margin-left-5">(%)</span>
|
||||
</div>
|
||||
<div class="rowh he">
|
||||
<span class="name">金币需房卡:</span>
|
||||
<input type="number" placeholder="请输入比例" class="input" v-model="queryInfo.type_id_2"><span class="margin-left-5">(%)</span>
|
||||
</div>
|
||||
<div class="rowh he">
|
||||
<span class="name">金币不需房卡:</span>
|
||||
<input type="number" placeholder="请输入比例" class="input" v-model="queryInfo.type_id_3"><span class="margin-left-5">(%)</span>
|
||||
</div>
|
||||
<div class="rowh text-center conkabtn">
|
||||
<a href="javascript:;" class="btn btn-danger closes" @click="tokill()">确定</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script src="./libs/jquery.min.js?__HTML_VERSION__=3"></script>
|
||||
<script src="./libs/vue.min.js?__HTML_VERSION__=3"></script>
|
||||
<script src="./js/function.js?__HTML_VERSION__=18"></script>
|
||||
<script src="./libs/layer_mobile/layer.js?__HTML_VERSION__=3"></script>
|
||||
<script src="./components/home-nav.js?__HTML_VERSION__=12"></script>
|
||||
<script>
|
||||
|
||||
|
||||
var vm = new Vue({
|
||||
el:"#app",
|
||||
data:{
|
||||
isLoading: true,
|
||||
myInfo:{},
|
||||
urlParam:{},
|
||||
queryInfo:{
|
||||
queryID:'',
|
||||
type_Id: 001,
|
||||
type_name:'',
|
||||
system_commission_rate:'',
|
||||
user_commission_rate:'',
|
||||
detail: {},
|
||||
}
|
||||
},
|
||||
components: {
|
||||
'home-nav': homeNav
|
||||
},
|
||||
methods:{
|
||||
goHome:function () {
|
||||
window.location.href = 'index.html?' + 'agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid+'&__HTML_VERSION__=3';
|
||||
},
|
||||
/*tokill:function(){
|
||||
var param = {
|
||||
agentid: this.urlParam.agentid,
|
||||
channelid: this.urlParam.channelid,
|
||||
salesid: this.myInfo.salesid,
|
||||
type_id: this.queryInfo.type_Id,
|
||||
};
|
||||
$.api(
|
||||
"agent.agent.getCommisionType",
|
||||
param,
|
||||
function (res){
|
||||
this.queryInfo.detail = res.biz_content;
|
||||
/!*layer.open({
|
||||
content: '确认提交吗?',
|
||||
btn: ['确定', '取消'],
|
||||
yes: function (i) {
|
||||
layer.close(i);
|
||||
$.loading();
|
||||
$.alert('成功提交!');
|
||||
}
|
||||
});*!/
|
||||
}.bind(this)
|
||||
)
|
||||
},*/
|
||||
|
||||
},
|
||||
created:function(){
|
||||
this.urlParam = $.getQueryObj();
|
||||
|
||||
if (this.urlParam.agentid === undefined || this.urlParam.agentid === null || this.urlParam.agentid === '')
|
||||
{
|
||||
$.alert("代理商id不能为空!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.urlParam.channelid === undefined || this.urlParam.channelid === null || this.urlParam.channelid === '')
|
||||
{
|
||||
$.alert("渠道id不能为空!");
|
||||
return;
|
||||
}
|
||||
|
||||
$.getUserInfo(function (r) {
|
||||
this.myInfo = r;
|
||||
}.bind(this));
|
||||
|
||||
var param = {
|
||||
agentid: this.urlParam.agentid,
|
||||
channelid: this.urlParam.channelid,
|
||||
salesid: this.myInfo.salesid,
|
||||
type_id: this.queryInfo.type_Id,
|
||||
};
|
||||
$.api(
|
||||
"agent.agent.getCommisionType",
|
||||
param,
|
||||
function (res){
|
||||
this.queryInfo.detail = res.biz_content;
|
||||
/* layer.open({
|
||||
content: '确认提交吗?',
|
||||
btn: ['确定', '取消'],
|
||||
yes: function (i) {
|
||||
layer.close(i);
|
||||
$.loading();
|
||||
$.alert('成功提交!');
|
||||
}
|
||||
});*/
|
||||
}.bind(this)
|
||||
)
|
||||
|
||||
},
|
||||
mounted: function () {
|
||||
this.isLoading = false;
|
||||
},
|
||||
|
||||
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user