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

136 lines
4.5 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"><!--expires出现在http-equiv属性中使用content属性表示页面缓存的过期时间-->
<link rel="stylesheet" href="./libs/bootstrap/bootstrap.min.css?__HTML_VERSION__=3">
<link rel="stylesheet" type="text/css" href="css/style.css?__HTML_VERSION__=6">
<style>
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th{line-height: 30px;}
.lbtable thead tr th, .lbtable tbody tr td {
text-align: left;
}
</style>
</head>
<body class="bg_hui">
<div class="count_full fons-14" 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>
<a href="javascript:;" class="home-sy" @click="goHome()"><span></span>首页</a>
</header>
<div style="width: 100%;height: 45px;display: block;"></div>
<h4 class="text-center" style="margin-top: 0px;color: red;">昨日速览</h4>
<!--<h4 class="text-center" style="margin-top: 0px;color: red;">昨日速览</h4>-->
<section class="buju">
<table class="table table-striped lbtable">
<thead>
<tr>
<th>指标</th>
<th>昨日</th>
<th>当月</th>
</tr>
</thead>
<tbody>
<tr v-for="item in reportList">
<td v-text="item.report_caption"></td>
<td v-text="item.yesterday"></td>
<td v-text="item.currmonth"></td>
</tr>
</tbody>
</table>
</section>
<!--<home-nav></home-nav>-->
</div>
<script src="./libs/jquery.min.js?__HTML_VERSION__=3"></script>
<script type="text/javascript" src="./libs/vue.min.js?__HTML_VERSION__=3"></script>
<script type="text/javascript" src="./js/function.js?__HTML_VERSION__=18"></script>
<script type="text/javascript" src="./components/home-nav.js?__HTML_VERSION__=12"></script>
<script type="text/javascript">
var vm = new Vue({
el:'#app',
data:{
isLoading: true,
myInfo:{},
urlParam:{},
reportList:{}
},
components: {
'home-nav': homeNav
},
methods:{
goHome:function () {
window.location.href = 'index.html?' + 'agentid=' + this.urlParam.agentid + '&channelid=' + this.urlParam.channelid+'&__HTML_VERSION__=3';
}
},
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;
var alldata = 0;
if(parseInt(r.global_power) === 1) {
alldata = 1;
} else {
alldata = 0;
}
$.api(
'statistics.report.querybatch',
{
agentid: this.urlParam.agentid,
channelid:this.urlParam.channelid,
needdata:1,
salesid:this.myInfo.salesid,
alldata:alldata
},
function (res){
this.reportList = res;
}.bind(this)
)
}.bind(this));
},
mounted: function () {
this.isLoading = false;
}
});
</script>
</body>
</html>