添加后台代理代码
This commit is contained in:
177
codes/agent/game/dlweb/api/web2/power_tj_wanshui.html
Normal file
177
codes/agent/game/dlweb/api/web2/power_tj_wanshui.html
Normal file
@@ -0,0 +1,177 @@
|
||||
<!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" id="fengwan">
|
||||
<div class="rowh he" style="border-bottom: 1px solid #e5e5e5;">
|
||||
<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="player_record">查询</a>
|
||||
</div>
|
||||
<div class="rowh he">
|
||||
<div class="ck_jiru">
|
||||
<div class="cha_time">
|
||||
<div style="width: 100%;text-align: center;">
|
||||
<input type="text" id="form_datetime_start" class="form_datetime_start shijian_input" placeholder="选择开始时间"
|
||||
readonly>
|
||||
<input type="text" id="form_datetime_end" class="form_datetime_end shijian_input" placeholder="选择截止时间"
|
||||
readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chongka" v-if="false">
|
||||
<div class="rowh he checkbox">
|
||||
<label for="thrid">
|
||||
<input id="thrid" type="radio" name="playerRecordType" value="0" v-model="queryInfo.type" checked> 房卡
|
||||
</label>
|
||||
<label for="fouth">
|
||||
<input id="fouth" type="radio" name="playerRecordType" value="1" v-model="queryInfo.type"> {{lang.starName}}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="ckjr_table">
|
||||
<tbody>
|
||||
<tr v-for="x in dailiDetail">
|
||||
<td class="text-center">
|
||||
<img :src="x.avatar" class="header">
|
||||
</td>
|
||||
<td>
|
||||
<p v-text="x.salesid"></p>
|
||||
<p v-text="x.nickname"></p>
|
||||
<template v-if="queryInfo.type === '0'">
|
||||
<p>电话:<span v-text="x.tel"></span></p>
|
||||
<p>微信:<span v-text="x.wechat"></span></p>
|
||||
</template>
|
||||
</td>
|
||||
<td>
|
||||
<p>数量:<span v-text="x.amount"></span></p>
|
||||
<p>时间:<span v-text="x.time.substr(5,11)"></span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</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="./lang/lang.js?__HTML_VERSION__=14"></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",
|
||||
components: {
|
||||
'home-nav': homeNav
|
||||
},
|
||||
data: {
|
||||
isLoading: true,
|
||||
lang: {},
|
||||
myInfo: {},
|
||||
urlParam: {},
|
||||
queryInfo: {
|
||||
queryID: '',
|
||||
type: 0
|
||||
},
|
||||
dailiDetail: {}
|
||||
},
|
||||
methods: {
|
||||
goHome: function () {
|
||||
window.location.href = 'index.html?agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid+'&__HTML_VERSION__=3';
|
||||
},
|
||||
player_record: function () {
|
||||
|
||||
var begTime = $("#form_datetime_start").val();
|
||||
|
||||
var endTime = $("#form_datetime_end").val();
|
||||
|
||||
var param = {
|
||||
agentid: this.urlParam.agentid,
|
||||
channelid: this.urlParam.channelid,
|
||||
salesid: this.myInfo.salesid,
|
||||
playerid: this.queryInfo.queryID,
|
||||
begintime: begTime,
|
||||
endtime: endTime,
|
||||
type: this.queryInfo.type
|
||||
};
|
||||
$.api(
|
||||
'agent.agent.playerCardStarRecord',
|
||||
param,
|
||||
function (res) {
|
||||
if(res.record.length>0)
|
||||
this.dailiDetail = res.record;
|
||||
else
|
||||
$.alert('暂无记录');
|
||||
}.bind(this), 1
|
||||
)
|
||||
|
||||
}
|
||||
},
|
||||
created: function () {
|
||||
this.urlParam = $.getQueryObj();
|
||||
this.lang = lang[this.urlParam.agentid] ? lang[this.urlParam.agentid] : lang.default;
|
||||
|
||||
$.getUserInfo(function (r) {
|
||||
this.myInfo = r;
|
||||
this.isLoading = false;
|
||||
}.bind(this));
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/*时间选择*/
|
||||
$(".form_datetime_start").datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
weekStart: 1,
|
||||
autoclose: true,
|
||||
startView: 2,
|
||||
minView: 2,
|
||||
forceParse: false,
|
||||
language: 'zh-CN',
|
||||
todayBtn: true
|
||||
});
|
||||
$(".form_datetime_end").datetimepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
weekStart: 1,
|
||||
autoclose: true,
|
||||
startView: 2,
|
||||
minView: 2,
|
||||
forceParse: false,
|
||||
language: 'zh-CN',
|
||||
todayBtn: true
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user