index.html
7.49 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title>附加功能</title>
<link rel="stylesheet" href="css/weui.min.css">
<script type="text/javascript" src="js/fsize.js" ></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
<h2 class="title">附加功能</h2>
<div class="box">
<div class="cont">
<a href="javascript:clearcache()">
<img class="svg" src="img/clear.svg" alt="">
<span>清理用户缓存</span>
</a>
</div>
<div class="cont">
<a href="livetime.html">
<img class="svg" src="img/time.svg" alt="">
<span>时长查询</span>
</a>
</div>
<div class="cont">
<a href="wxkiting.html">
<img class="svg" src="img/wxkiting.svg" alt="">
<span>小券提现</span>
</a>
</div>
<div class="cont">
<a href="gatheringInfo.html">
<img class="svg" src="img/gatheringInfo.svg" alt="">
<span>收款账户信息</span>
</a>
</div>
<div class="clearfix"></div>
</div>
<div class="weui_dialog_alert dialog-box" id="tips">
<div class="weui_mask"></div>
<div class="weui_dialog">
<div class="weui_dialog_hd"><strong class="weui_dialog_title">提示</strong></div>
<div class="weui_dialog_bd"><span id="a-msg"></span></div>
<div class="weui_dialog_ft">
<a href="#" class="weui_btn_dialog primary" id="ok">确定</a>
</div>
</div>
</div>
</div>
<div class="weui_dialog_confirm dialog-box">
<div class="weui_mask"></div>
<div class="weui_dialog">
<div class="weui_dialog_hd"><strong class="weui_dialog_title">温馨提示</strong></div>
<div class="weui_dialog_bd" id="c-msg">
</div>
<div class="weui_dialog_ft">
<a href="#" class="weui_btn_dialog default" id="cancel">取消</a>
<a href="#" class="weui_btn_dialog primary" id="confirm">确定</a>
</div>
</div>
</div>
<style type="text/css">
/*初始化 reset*/
@charset "utf-8";
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,input,button,textarea,select,p,span,font,em,i,b,strong,button{margin:0;padding:0;}
body{margin:0;font-family:-apple-system,"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体"; background:#fff; overflow:visible; color:#333333;}
html, body { height: 100%;}
input,select{font-size:12px;line-height:16px; border:0 none; vertical-align:middle;}
button{ border:0 none;}
.clear{clear:both;padding:0px;margin:0px;}
img{border:0;}
a {outline: none;}
a:focus { outline:0; }
input,button,select,textarea{outline:none}
ul,li{list-style-type:none;_list-style:outside;}
a{ text-decoration:none; color:#333;}
/* new clearfix清除浮动 */
.clearfix:after {visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;}
.clearfix { display: block;zoom:1 }
* html .clearfix {height: 1%; zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
html[xmlns] .clearfix { display: block; zoom:1}
h1,h2,h3,h4,h5,h6{font-weight: normal}
/*这一句是用来解决在安卓上的点击出现篮框问题*/
body{ -webkit-tap-highlight-color:rgba(0,0,0,0); }
/*下面是解决ios上去除微信点击蓝色边框 */
a:focus,input:focus,p:focus,div:focus{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-modify:read-only;}
button{cursor: pointer;outline:none;}
input[type=number] {-moz-appearance:textfield;}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button {-webkit-appearance: none;margin: 0;}
::-webkit-scrollbar{display:none;}
/*版芯*/
/*初始化结束*/
.title {
height: 0.9rem;
line-height: 1rem;
background: #fff;
border-bottom: 1px solid #f1f1f1;
border-top: 5px solid #eee;
text-indent: 0.4rem;
font-size: 0.45rem;
color: #666;
}
.cont {
width: 3.333333rem;
height: 2.6rem;
text-align: center;
font-size: 0.4rem;
float: left;
box-sizing: border-box;
border-bottom: 1px solid #f1f1f1;
border-right: 1px solid #f1f1f1;
background: #fff;
}
.cont .svg {
display: block;
width: 30%;
margin: 0 auto;
margin-top: 0.2rem;
margin-bottom: 0.2rem;
}
.cont:nth-child(3n) {
border-right: 0;
}
.dialog-box {
display: none;
}
</style>
<script type="text/javascript">
// var all = $(".box").children().length;
// var rowCount = parseInt(all / 3);
// var lastRowCount = all - (rowCount * 3);
// if (lastRowCount == 0) {
// lastRowCount = 3;
// }
// for (var i = lastRowCount; i > 0; i--) {
// $(".box .cont").eq(all-i).css("borderBottom", "0");
// }
</script>
<script type="text/javascript">
var bbb=location.href;
var data= url_get_params(bbb)
if(data!=null){
sessionStorage.kkk=data.token; //t
sessionStorage.bbb=data.uid; //u
sessionStorage.surroun=data.ddd;
}else{
dialog(1,"数据错误,请重新进入");
sessionStorage.clear();
}
function url_get_params(url_path){
var url = url_path;
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(url.indexOf("?")+1);
strs = str.split("&");
for(var i = 0; i < strs.length; i ++) {
theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
}
}else{
return null;
}
return theRequest;
}
function getUserInfo(){
$.ajax({
url: "https://pay.ishuaji.cn/user/auth/"+sessionStorage.bbb+"/"+sessionStorage.kkk,
dataType: "json",
type: "POST",
success: function(data) {
if(data.code==1){
var face=data.face;
var nickname=data.nickname;
sessionStorage.face = face;
sessionStorage.nickname = nickname;
}else{
dialog(1,data.msg);
}
},
error: function() {
dialog(1,"服务器无响应,请稍后重试");
}
});
}
function clearcache(){
$.ajax({
url: "https://pay.ishuaji.cn/user/clearcache/"+sessionStorage.bbb,
dataType: "json",
type: "POST",
success: function(data) {
if(data.code==1){
dialog(3,"清理成功");
}else{
dialog(3,data.msg);
}
},
error: function() {
dialog(3,"服务器无响应,请稍后重试");
}
});
}
function dialog(type,msg){
if(type==1){
$("#a-msg").html(msg);
$("#tips").show();
$("#ok").hide();
}
if(type==2){
$("#c-msg").html(msg);
$(".weui_dialog_confirm").show();
$("#cancel").click(function(){
$(".dialog-box").hide();
$("#cancel").unbind("click");
});
$("#confirm").click(function(){
$(".dialog-box").hide();
$("#confirm").unbind("click");
});
}
if(type==3){
$("#a-msg").html(msg);
$("#tips").show();
$("#ok").click(function(){
$(".dialog-box").hide();
});
}
}
if(sessionStorage.bbb!=null&&typeof(sessionStorage.bbb) != 'undefined'&&sessionStorage.kkk!=null&&typeof(sessionStorage.kkk) != 'undefined'){
getUserInfo();
}
</script>
</body>
</html>