paypalDraw.html
9.26 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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<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="https://app.ixiulive.com/static/css/reset.css">
<link rel="stylesheet" href="../../layer-v3.1.0/layer/theme/default/layer.css">
<link rel="stylesheet" href="css/paypal.css" />
<script type="text/javascript" src="../../lib/fsize.js"></script>
<style>
.mMain {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
.layui-layer-ico {
display: none !important;
}
.mainPic {
width: 8.987rem;
height: 2.773rem;
overflow: hidden;
margin: 0.2rem auto;
}
.mainPic img {
width: 100%;
}
.bank-btn {
position: absolute;
bottom: 0.893rem;
left: 0.773rem;
}
</style>
</head>
<body style="background:#fff;">
<div class="mMain">
<div class="mainPic">
<img src="./img/bigCard3.png" alt="">
</div>
<div class="mBox">
<div class="inputBox">
<p>提現賬戶</p>
<input class="mIpt mIpt1" type="text" placeholder="輸入您的Paypal郵箱地址" />
</div>
</div>
<div class="paypalReg">注冊流程</div>
<div class="noPaypal"></div>
<div class="mBtn"></div>
</div>
<!--確認信息彈窗-->
<div class="mask2 hide">
<div class="mask2Info">
<p></p>
<p class="check cardaddr ellipsis"></p>
<p class="check"></p>
</div>
<div class="mask2Btn">
<span></span>
<span></span>
</div>
</div>
<!--提現設置成功彈窗-->
<div class="mask mask5 hide">
<p class="mask5Title"></p>
<div class="mask5Btn"></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/langchange.js?v=2023021402"></script>
<script type="text/javascript" src="https://app.ixiulive.com/static/js/webAppComm.js?v=202406121801"></script>
<script>
$(function () {
var flag1 = true;
var flag2 = true;
var flag3 = true;
//多語言
$("title").text("綁定Paypal")
$('.mBtn').html(langList[langType].draw36);
$('.mIpt1').attr('placeholder', langList[langType].paypal2);
// 7400后
if ($firefly.urlData.appversion >= 7400) {
tellCliIcon();
$firefly.changeTitle2();
function tellCliIcon() {
let mInfos = [ //第一级 右上角展示的Icon
{
"imgUrl": 'https://app.ixiulive.com/static/app/img/fusi/kf.png',
"explain": '客服',
"webFunc": "$firefly.goCustomerService()",
},
{
//第二级 更多中的内容
"imgUrl": 'https://app.ixiulive.com/static/app/img/more2.png?v=202304191549', // ...的icon
"explain": "更多",// ...的cid
"webFunc": "openExtra()"
}
]
$firefly.showIcons(mInfos);
}
function openExtra() {
let infos = [
[{
"fontStyle": {
"highLight": false // 是否高亮
},
"explain": $firefly.langList[$firefly.langType].lang2,
"webFunc": "$firefly.refreshWeb()",
}],
[{
"fontStyle": {
"highLight": false // 是否高亮
},
"explain": $firefly.langList[$firefly.langType].lang3,
"webFunc": "$firefly.goCustomerService()",
},
{
"fontStyle": {
"highLight": false // 是否高亮
},
"explain": $firefly.langList[$firefly.langType].lang6,
"webFunc": "$firefly.closeWebView()",
}]
]
$firefly.openExtra(infos);
}
}
$('.maskDesc').html(langList[langType].draw41);
$('.maskDesc').html(langList[langType].draw41);
$('.maskDesc').html(langList[langType].draw41);
$('.mask2Info p').eq(0).html(langList[langType].newDraw4);
$('.mask2Info p').eq(4).html(langList[langType].newDraw5);
$('.inputBox p').eq(0).html(langList[langType].newDraw10)
$('.inputBox p').eq(0).html(langList[langType].newDraw10)
$('.paypalReg').html(langList[langType].newDraw34)
if (langType == 0) {
$('.noPaypal').html(`未有PayPal賬號? <a href="https://www.paypal.com/">去注冊></a>`)
} else {
$('.noPaypal').html(`no PayPal account? <a href="https://www.paypal.com/">go to register ></a>`)
}
$('.mask2Btn span:eq(0)').html(langList[langType].draw12);
$('.mask2Btn span:eq(1)').html(langList[langType].draw8);
$('.mask5Btn').html(langList[langType].draw15);
$('.mask5Title').html(langList[langType].draw16);
$('.mask5Btn').on('click', function () {
layer.closeAll();
})
$(".mIpt1").on("keyup", function () {
mEmail = $(".mIpt1").val();
if (mEmail) {
$('.mBtn').addClass('able');
} else {
$('.mBtn').removeClass('able');
}
})
var data = getRequest();
if (sessionStorage.bbb == undefined || sessionStorage.bbb == "undefined") {
sessionStorage.bbb = data.uid;
sessionStorage.lang = data.lang;
sessionStorage.kkk = data.token;
}
//綁定paypal
$('.mBtn').on('click', function () {
//賬號名稱
var mEmail = $('.mIpt1').val().replace(/\s/g, "");
if (!mEmail && mEmail.length == 0) {
layer.msg('請輸入你的paypal');
return false;
}
if (!flag2) return;
flag2 = false;
$('.cardaddr').html('Paypal:<span>' + mEmail + '</span>');
setTimeout(function () {
layer.open({
type: 1,
title: false,
shadeClose: true,
shade: .4,
area: ['7.2rem', ''],
closeBtn: 0,
content: $('.mask2'),
end: function () {
flag2 = true;
}
})
}, 500)
})
//绑定paypal
$('.mask2Btn span:eq(1)').on('click', function () {
if (!flag3) return;
flag3 = false;
$.ajax({
url: $ip + '/withdraw/paypalbinding.html',
type: "post",
data: {
os: "WEB",
cid: "web_gw",
lang: 2,
uid: sessionStorage.bbb,
token: sessionStorage.kkk,
cardaddr: $('.mIpt1').val()
},
success: function (msg) {
var data = JSON.parse(msg);
console.log(data);
if (data.code == 1) {
layer.closeAll();
layer.open({
type: 1,
title: false,
shadeClose: true,
shade: .4,
area: ['7.2rem', ''],
closeBtn: 0,
content: $('.mask5'),
end: function () {
// window.location.href = "http://yazhai://_closeweb";
window.location.href = "./index.html" + location.search;
}
})
} else if (data.code = -70007) {
if (sessionStorage.lang == 1 || sessionStorage.lang == 7) layer.msg("The paypal account has been bound, please re-enter a new one")
else layer.msg("該郵箱已經被綁定過,請重新輸入")
setTimeout(function () {
layer.closeAll()
}, 2000)
} else {
layer.msg(data.msg);
}
}
})
})
$('.mask2Btn span:eq(0)').on('click', function () {
layer.closeAll();
})
})
</script>
</html>