添加后台代理代码

This commit is contained in:
2026-03-15 01:27:05 +08:00
parent 11f9ac4dc1
commit ea08c9366a
5254 changed files with 721042 additions and 0 deletions

View File

@@ -0,0 +1,238 @@
<!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="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">
<link rel="stylesheet" href="js/datetimepicker/bootstrap-datetimepicker.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" style="display: block;">
<div class="rowh he">
<span class="name">玩家ID</span>
<input type="number" placeholder="请输入玩家ID" class="input" autofocus="" v-model="queryInfo.queryID">
<button id="getShortNum" class="btn btn-blue chaxun" @click="queryPlayer()">查询</button>
</div>
<div class="rowh he">
<span class="name">短号:</span>
<input type="number" placeholder="1至99999且唯一" class="input" value="" v-model="queryInfo.shortNum">
</div>
<div class="rowh he">
<span class="name">房间数:</span>
<input type="number" placeholder="范围0-5" class="input" value="" v-model="queryInfo.roomNum">
</div>
<div class="rowh he">
<span class="name">收款码:</span>
<input type="text" placeholder="收款码" class="input" value="" v-model="queryInfo.collectionCode">
</div>
<div class="rowh he" style="height:auto">
<span class="name">说明一:</span>
<!--<textarea placeholder="说明一:" rows="2" class="form-control text-block" v-model="queryInfo.desOne"></textarea>-->
<input type="text" class="input" v-model="queryInfo.desOne">
</div>
<div class="rowh he" style="height: auto">
<span class="name">说明二:</span>
<!--<textarea placeholder="说明二:" rows="2" class="form-control text-block" v-model="queryInfo.desTwo"></textarea>-->
<input type="text" class="input" v-model="queryInfo.desTwo">
</div>
<div class="rowh he" style="height: auto">
<span class="name">下限:</span>
<input type="number" class="input" v-model="queryInfo.lower_limit">
</div>
<div class="rowh he" style="height: auto">
<span class="name" style="vertical-align: top;">公告:</span>
<textarea class="input" v-model="queryInfo.announcement"
style="width: 62%; resize: none; line-height: 1.2;"></textarea>
</div>
<div class="rowh text-center conkabtn" style="margin: 10px 0px 40px 0;height:90px">
<button id="setShortNum" class="btn btn-danger closes" style="margin-bottom: 20px;" @click="submitShortNum()">
确定
</button>
<button class="btn btn-info closes" style="margin-bottom: 20px;" @click="goWinnerInfo()">
大赢家信息
</button>
</div>
</div>
<div class="ck_jiru" v-show="winnerInfo[0]">
<h4 class="text-center">昨日房间内玩家获得大赢家情况</h4>
<table class="ckjr_table">
<tbody>
<tr>
<th>玩家ID</th>
<th>大赢家次数</th>
<th>大赢家累计得分</th>
</tr>
<tr v-for="item in winnerInfo">
<td class="text-center">
{{item.player_id}}
</td>
<td>
{{item.winner_count}}
</td>
<td>
{{item.winner_score}}
</td>
</tr>
</tbody>
</table>
</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="js/datetimepicker/bootstrap-datetimepicker.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: '',
shortNum: '',
roomNum: '',
collectionCode: '',
desOne: '',
desTwo: '',
lower_limit: '',
announcement: ''
},
winnerInfo: []
},
components: {
'home-nav': homeNav
},
methods: {
goHome: function () {
window.location.href = 'index.html?agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid;
},
goWinnerInfo: function () {
window.location.href = 'winner_record.html?agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid;
},
queryPlayer: function () {
if (this.queryInfo.queryID === null || this.queryInfo.queryID === '') {
$.alert("请输入正确的玩家id!");
return;
}
// 置空大赢家信息
this.winnerInfo = [];
$.api(
'agent.agent.getShortNum',
{
agentid: this.urlParam.agentid,
channelid: this.urlParam.channelid,
salesid: this.myInfo.salesid,
playerid: this.queryInfo.queryID
},
function (res) {
if (res.short_str) {
this.queryInfo.shortNum = res.short_str;
this.queryInfo.roomNum = res.max_room;
this.queryInfo.desOne = res.des_one;
this.queryInfo.desTwo = res.des_two;
this.queryInfo.collectionCode = res.collection_code;
this.queryInfo.lower_limit = res.lower_limit;
this.queryInfo.announcement = res.announcement;
if (res.winner_info)
this.winnerInfo = res.winner_info;
} else
$.alert("未查询到该玩家的短号信息");
}.bind(this), 1
);
},
submitShortNum: function () {
if (this.queryInfo.queryID === null || this.queryInfo.queryID === '') {
$.alert("请输入正确的玩家id!");
return;
}
if (this.queryInfo.shortNum < 0 || this.queryInfo.shortNum > 99999) {
$.alert("请输入正确的短号!");
return;
}
if (this.queryInfo.roomNum < 0) {
$.alert("请输入正确的房间数!");
return;
}
if (this.queryInfo.announcement.length && this.queryInfo.announcement.length > 350) {
$.alert('公告的长度不能超过350个字');
return;
}
$.api(
'agent.agent.shortNum',
{
agentid: this.urlParam.agentid,
channelid: this.urlParam.channelid,
salesid: this.myInfo.salesid,
playerid: this.queryInfo.queryID,
roomnum: this.queryInfo.roomNum,
collectioncode: this.queryInfo.collectionCode,
desone: this.queryInfo.desOne,
destwo: this.queryInfo.desTwo,
shortnum: this.queryInfo.shortNum,
lower_limit: this.queryInfo.lower_limit,
announcement: this.queryInfo.announcement
},
function () {
$.alert("设置成功!");
}.bind(this), 1
);
}
},
created: function () {
this.urlParam = $.getQueryObj();
$.getUserInfo(function (r) {
this.myInfo = r;
this.isLoading = false;
}.bind(this));
}
})
</script>
</body>
</html>