Files
youlegames/codes/agent/game/dlweb/api/web2/power_daiguanxi.html
2026-03-15 01:27:05 +08:00

154 lines
5.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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" 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">
<span class="name">代 理 ID</span>
<input type="text" placeholder="请输入代理ID" class="input" autofocus v-model="queryInfo.queryID">
<a href="javascript:;" class="btn btn-blue chaxun" @click="querySale()">查询</a>
</div>
<div class="rowh he checkbox margin-left-30">
<label for="thrid">
<input id="thrid" type="radio" name="salesChildsType" value="0" checked="" v-model="queryInfo.queryType"> 子代理
</label>
<label for="fouth">
<input id="fouth" type="radio" name="salesChildsType" value="1" v-model="queryInfo.queryType"> 绑定的玩家
</label>
</div>
</div>
<table class="ckjr_table">
<tbody id="loading_card">
<template v-if="queryInfo.queryType == '0'">
<tr v-for="item in queryInfo.salesChilds">
<td class="text-center">
<img :src="item.avatar" class="header">
</td>
<td>
<p v-text="item.id"></p>
<p v-text="item.nickname"></p>
<p>电话:<span v-text="item.tel"></span></p>
<p>微信:<span v-text="item.wechat"></span></p>
</td>
<td>
<p>房卡数:<span v-text="item.roomcard"></span></p>
<p>{{lang.starName}}数:<span v-text="item.star"></span></p>
</td>
</tr>
</template>
<template v-if="queryInfo.queryType == '1'">
<tr v-for="item in queryInfo.bindPlayer">
<td class="text-center">
<img :src="item.avatar" class="header">
</td>
<td>
<p v-text="item.id"></p>
<p v-text="item.nickname"></p>
</td>
<td>
<p>房卡数:<span v-text="item.roomcard"></span></p>
<p>{{lang.starName}}数:<span v-text="item.star"></span></p>
</td>
</tr>
</template>
</tbody>
</table>
</section>
</div>
<script src="./libs/jquery.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="./lang/lang.js?__HTML_VERSION__=14"></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",
data: {
isLoading: true,
lang: {},
myInfo: {},
urlParam: {},
queryInfo: {
queryType: 0, //0、查询子代理1、查询绑定的玩家
queryID: '',
saleName: '',
salesChilds: {},
bindPlayer: {}
}
},
components: {
'home-nav': homeNav
},
methods: {
goHome: function () {
window.location.href = 'index.html?agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid+'&__HTML_VERSION__=3';
},
querySale: function () {
if (this.queryInfo.queryID === null || this.queryInfo.queryID === '') {
$.alert("请输入正确的玩家id!");
return;
}
var param = {
agentid: this.urlParam.agentid,
channelid: this.urlParam.channelid,
queryid: this.queryInfo.queryID,
salesid: this.myInfo.salesid,
type: this.queryInfo.queryType
};
$.api(
'agent.agent.salesChilds',
param,
function (res) {
if (this.queryInfo.queryType === 0) {
this.queryInfo.salesChilds = res.detail;
}
else if (this.queryInfo.queryType === 1) {
this.queryInfo.bindPlayer = res.detail;
}
}.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));
}
})
</script>
</body>
</html>