index.html
2.8 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
<!DOCTYPE html>
<html lang="en">
<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">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/index.css">
<script src="lib/fsize.js"></script>
<title>兌換黃金螢火蟲</title>
</head>
<body>
<div style="width: 10rem;" class="bg">
<div style="height: 0.3rem;"></div>
<div class="last-content">
<div class="last-box">
<img class="why" src="images/why.png" alt="">
<p class="last-num"></p>
</div>
</div>
<div style="text-align: center;">
<button style="margin-top: 0.6rem;" class="last-exc-btn">兌換</button>
</div>
<div style="text-align: center;position: relative;">
<button class="last-exc-con"></button>
<div class="zhan">轉讓</div>
</div>
</div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script>
// $ip="http://ceshi.yabolive.tv/web";
$ip = "https://webserver.yabolive.net";
cdn="https://zhibocdn.yabolive.net/comm/"
if(sessionStorage.bbb==undefined){
var bbb = location.href;
var data = url_get_params(bbb)
sessionStorage.kkk = data.method; //t
if(data.method==undefined){
sessionStorage.kkk=data.token;
}
sessionStorage.bbb = data.uid; //u
}
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]);
}
}
return theRequest;
}
$.ajax({
url:$ip+"/user/getUserInfo.html",
data:{
uid:sessionStorage.bbb,
token:sessionStorage.kkk,
'cid':"web_gw",
'os':"WEB",
'lang':2,
'vest':0,
},
dataType:"json",
type:"post",
error: function (msg) {
console.log('请求出错');
},
success: function (msg) {
// var data=JSON.parse(msg);
console.log(msg)
$(".last-num").text(msg.data.firefly);
}
})
$(".zhan").on("click", function () {
window.location.href="Conversion.html";
})
$(".last-exc-btn").on("click", function () {
window.location.href="exchange.html";
})
</script>
</html>