index2.html
6.78 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
<!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">
<title></title>
<script src="lib/fsize.js"></script>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/daily.css">
<link rel="stylesheet" href="css/index.css?v=2023080703">
<link rel="stylesheet" href="css/liMarquee.css">
<style>
.layui-layer-shade {
opacity: 0.7 !important;
}
.yourclass5 {
border-radius: 0rem !important;
background: rgba(0, 0, 0, 0) !important;
}
.yourclass5 .layui-layer-content {
border-radius: 0rem !important;
}
</style>
</head>
<body style="background:rgba(0,0,0,0)">
<div class="bg2">
<div class="tips-text">寶石*105</div>
<ul class="ul-tips clearfix">
<li>VIP<br>*3天</li>
<li>銀木馬座駕<br>*5天</li>
<li>only gift<br>*1</li>
<li>撩一撩<br>*1</li>
</ul>
<div data-pid="" data-id="" class="btn">儲值: <span></span></div>
</div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script>
<script src="lib/default.js?v='2023080401'"></script>
<script>
$(function(){
// layer.msg(location.search)
if(sessionStorage.lang!=2){
$(".bg2").addClass("bg2-en")
$(".tips-text").text('Gems*105')
$(".ul-tips li").eq(0).html("VIP<br>*3day")
$(".ul-tips li").eq(1).html("Silver Horse<br>*5day")
$(".ul-tips li").eq(2).html("only gift<br>*1")
$(".ul-tips li").eq(3).html("Flirt<br>*1")
$(".ul-tips").css("margin-top","2.65rem")
$(".btn").html("Charge:<span></span>")
$(".btn").css("margin-top","0.2rem")
}
$.ajax({
url:$ip+'/firstcharge/getGiftInfo',
data:{
appname:sessionStorage.appname,
pkg:sessionStorage.pkg
},
success:function(data){
console.log('获取首充信息',data)
check()
if(data.state==0){
$(".btn").attr("data-pid",data.chargeInfo.pid)
$(".btn").attr("data-id",data.chargeInfo.id)
$(".btn span").text(data.chargeInfo.currency+data.chargeInfo.price)
$(".btn").unbind("click").on("click",function(){
console.log($(this).attr('data-pid'),$(this).attr('data-id'))
var obj = {
"cid":27,
"reqCode": new Date().getTime(),
"data": {
"msg": "直接唤起 苹果支付 和 google支付",
"chargeInfo": data.chargeInfo,
"pid":$(this).attr('data-pid'),
"packageid":$(this).attr('data-id'),
"succeedAlert":{
"title":"储值成功",
"msg":"快去領取大禮包吧",
"jumpTitle":"去储值",
"jumpUrl":$url+'/activeFt/newCharge/index2.html'+location.search,
}
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
}
else if(data.state==1){
if(sessionStorage.lang==2)$(".btn").text("領取")
else $(".btn").text("Receive")
$(".btn").unbind("click").on("click",function(){
getGift()
})
}
else if(data.state==2){
if(sessionStorage.lang==2)$(".btn").text("已領取")
else $(".btn").text("Received")
$(".btn").unbind("click")
}
}
})
setInterval(function() {
giftInfo()
}, 5000);
function giftInfo(){
$.ajax({
url:$ip+'/firstcharge/getGiftInfo',
data:{
appname:sessionStorage.appname,
pkg:sessionStorage.pkg
},
success:function(data){
console.log('获取首充信息',data)
if(data.state==0){
$(".btn").unbind("click").on("click",function(){
var obj = {
"cid":27,
"reqCode": new Date().getTime(),
"data": {
"msg": "直接唤起 苹果支付 和 google支付",
"pid":$(this).attr('data-pid'),
"packageid":$(this).attr('data-id'),
"chargeInfo": data.chargeInfo,
"succeedAlert":{
"title":"储值成功",
"msg":"快去領取大禮包吧",
"jumpTitle":"去储值",
"jumpUrl":$url+'/activeFt/newCharge/index2.html'+location.search,
}
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
}
else if(data.state==1){
if(sessionStorage.lang==2)$(".btn").text("領取")
else $(".btn").text("Receive")
$(".btn").unbind("click").on("click",function(){
getGift()
})
}else if(data.state==2){
if(sessionStorage.lang==2)$(".btn").text("已領取")
else $(".btn").text("Received")
$(".btn").unbind("click")
}
}
})
}
function check(){
$.ajax({
url:$ip+'/firstcharge/chargeBeforeCheck',
type:'post',
data:{
pageID:sessionStorage.pageID,
appname:sessionStorage.appname,
pkg:sessionStorage.pkg
},
success:function(data){
console.log("充值前检查",data)
}
})
}
function getGift(){
$.ajax({
url:$ip+'/firstcharge/receive',
type:'post',
data:{
pageID:sessionStorage.pageID
},
success:function(data){
console.log("领取奖励",data)
if(data.code==1){
if(sessionStorage.lang==2)$(".btn").text("已領取")
else $(".btn").text("received")
$(".btn").unbind("click")
}
}
})
}
})
</script>
</html>