-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcjpaiming.html
124 lines (117 loc) · 4.53 KB
/
cjpaiming.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>采集量排名</title>
<script src="js/mui.min.js"></script>
<link href="css/mui.min.css" rel="stylesheet" />
<link href="css/app.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="css/mui.picker.min.css" />
<link href="css/mui.picker.css" rel="stylesheet" />
<link href="css/mui.poppicker.css" rel="stylesheet" />
<script type="text/javascript" charset="utf-8">
mui.init();
</script>
<style type="text/css">
.title_hea{background: #108FCF;color: #FFFFFF;text-align: left;padding: 8px 10px;border-radius: 5px 5px 0 0 ;}
.rank-tit{text-align: center;}
div b{font-size: 1.625rem;color: #f00;}
.font_b{font-size: 1.225rem;color: #08c;}
.font_c{font-size: 1.225rem;color: #f90;}
</style>
</head>
<body class="mui-plus mui-statusbar mui-statusbar-offset">
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">采集量排名</h1>
</header>
<div class="warp-cont">
<div class="rank-list">
<div class="title_hea">辖区排名</div>
<div class="rank-tit">
<div>辖区 <b id="x_all_person">*</b>人参与排名</div>
</div>
<div class="rank-lt">
<div>所在辖区7日排名<span class="mui-pull-right font_b" id="x_qi_rank">*</span></div>
<div class="rank-line">|</div>
<div>所在辖区总排名<span class="mui-pull-right font_b" id="x_all_rank">*</span></div>
</div>
</div>
<div class="rank-list" >
<div class="title_hea" style="background: #F0AD4E;">全市排名</div>
<div class="rank-tit">
<div>全市<b id="q_all_person">*</b>人参加排名</div>
</div>
<div class="rank-lt">
<div>全市7日排名<span class="mui-pull-right font_c" id="q_qi_rank">*</span></div>
<div class="rank-line">|</div>
<div>全市总排名<span class="mui-pull-right font_c" id="q_all_rank">*</span></div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript" src="js/mui.min.js"></script>
<script type="text/javascript" src="js/mui.view.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/applogin.js" ></script>
<script src="js/watermark.js" type="text/javascript"></script>
<script type="text/javascript">
mui.init();
//排名接口
function cjlpm(){
mui.ajax(base_url+"phone/userDetail/rankinguser?guid="+new Date().getTime(),{
dataType:'json',//服务器返回json格式数据
type:'post',//HTTP请求类型
timeout:10000,//超时时间设置为10秒
headers:{
'Content-Type':'application/x-www-form-urlencoded' //此处如果使用application/json 会遇到post发送参数失败的问题
,'user_id_token':app.getUser().userid
,'id':"14"
},
data:{
"id":app.getUser().userid
},
success:function(data){
if(data.code=='200'){
// console.log(JSON.stringify(data));
data = data.data;
document.getElementById('x_all_person').innerHTML = data.xq.xqrs;//全市人数
document.getElementById('x_all_rank').innerHTML = data.xq.finalDays;
document.getElementById('x_qi_rank').innerHTML = data.xq.sevenDays;
document.getElementById('q_all_person').innerHTML = data.qs.qsrs;//辖区人数
document.getElementById('q_all_rank').innerHTML = data.qs.finalDays;
document.getElementById('q_qi_rank').innerHTML = data.qs.sevenDays;
/*setTimeout(function() {
initImgPreview();
}, 300);*/
}else{
mui.alert(data.message);
}
}
})
}
/*mui.post(base_url+"userDetail/rankinguser?guid="+new Date().getTime(),{
"id":app.getUser().userid
,'user_id_token':app.getUser().userid
,'urlName':"采集量排名"
},function(data){
console.log(JSON.stringify(data));
if(data.code=='200'){
// console.log(JSON.stringify(data));
data = data.data;
document.getElementById('x_all_person').innerHTML = data.xq.xqrs;//全市人数
document.getElementById('x_all_rank').innerHTML = data.xq.finalDays;
document.getElementById('x_qi_rank').innerHTML = data.xq.sevenDays;
document.getElementById('q_all_person').innerHTML = data.qs.qsrs;//辖区人数
document.getElementById('q_all_rank').innerHTML = data.qs.finalDays;
document.getElementById('q_qi_rank').innerHTML = data.qs.sevenDays;
/*setTimeout(function() {
initImgPreview();
}, 300);
}else{
mui.alert(data.message);
}
});*/
</script>