payLangchangeCn.js
9.09 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
var langList = [
//中文
{
'gash1':'../img/pay/gash1.png',
'gash2':'../img/pay/gash2.png',
'gash3':'../img/pay/gash3.png',
'gash4':'../img/pay/gash4.png',
'alipay':'../img/pay/alipay.png',
'weipay':'../img/pay/weipay.png',
'molpay':'../img/pay/mol.png',
'payatm':'../img/pay/payatm.png',
'gopay':'../img/pay/gopay.png',
'alfama':'../img/pay/alfama.png',
'paywallet':'../img/pay/wallet.png',
'visapay':'../img/pay/visa.png',
'wpay':'../img/pay/wpay.png',
'linepay':'../img/pay/linepay.png',
'taiwanpay':'../img/pay/taiwanpay.png',
'jkopay':'../img/pay/jkopay.png',
'cherry':'樱花儲值',
'paytitle':'寶石儲值',
'payrecord':'儲值記錄',
'submit':'賬號確認',
'next':'下一步',
'ques':'*如果出現儲值問題,請聯繫客服',
'fire':'Foot Seen賬號有誤',
'account':'請確認您的賬號',
'wallet':'錢包儲值',
'card':'點卡儲值',
'mol':'摩爾點卡儲值參考列表',
'select':'請選擇充值金額',
'delay':'請留意充值情況,可能會延遲3-5分鐘',
'return':'點擊返回',
'title':'信用卡使用信息',
'titleName':'*僅在第一次信用卡支付時填寫',
'firstName':'姓',
'enterFirstName':'請輸入姓',
'lastName':'名',
'enterLastName':'請輸入名',
'tel':'電話號碼',
'enterTel':'格式:国家区号+号码,例如886123456789',
'email':'郵箱地址',
'enterEmail':'請輸入郵箱',
'submitName':'提交',
'msg1':'請填寫姓',
'msg2':'請填寫名',
'msg3':'請填寫電話號碼',
'msg4':'請填寫郵箱',
'msg5':'請填寫正確的郵箱',
'login1':'暱稱',
'login2':'請輸入您的賬號,點擊確認',
'login3':'paypal服务正在维护,请使用其他支付方式',
'login4':'Foot Seen暱稱',
'login5':'確認',
'login6':'需儲值的賬戶',
'login7':'請核對信息',
'login8':'為其他Foot Seen ID儲值',
'wpay1':'溫馨提示:付款前請安裝WPAY軟體。',
'visatitle':'賬戶儲值',
'fail1':'儲值失敗,請聯繫客服',
},
//英文
{
'gash1':'../img/pay/gash1_en.png',
'gash2':'../img/pay/gash2_en.png',
'gash3':'../img/pay/gash3_en.png',
'gash4':'../img/pay/gash4_en.png',
'alipay':'../img/pay/alipayen.png',
'weipay':'../img/pay/weipayen.png',
'molpay':'../img/pay/mol.png',
'payatm':'../img/pay/payatm.png',
'gopay':'../img/pay/gopay.png',
'alfama':'../img/pay/alfama.png',
'paywallet':'../img/pay/wallet.png',
'visapay':'../img/pay/visa.png',
'wpay':'../img/pay/wpay.png',
'linepay':'../img/pay/linepay.png',
'taiwanpay':'../img/pay/taiwanpay.png',
'jkopay':'../img/pay/jkopay.png',
'cherry':'Top-Up Cherry',
'paytitle':'Top-Up GEMs',
'payrecord':'Record',
'submit':'Account confirm',
'next':'Next step',
'ques':'*If encounter top-up problems,please contact the customer service',
'fire':'Foot Seen account Error',
'account':'Please confirm your account',
'wallet':'Wallet Top-up',
'card':'Point Card Top-up',
'mol':'MOL Point Card top-up referring list',
'select':'Please select top-up item',
'delay':'Please pay attention to top-up status,it may delay 3-5 minutes',
'return':'Click to return',
'title':'Credit card user information',
'titleName':'*Only required for the first time by policy',
'firstName':'First name',
'enterFirstName':'Please fill in first name',
'lastName':'Last name',
'enterLastName':'Please fill in last name',
'tel':'Phone Num',
'enterTel':'Registered credit card phone num,eg:8861234567',
'email':'Email address',
'enterEmail':'Please fill in email address',
'submitName':'Submit',
'msg1':'Please fill in first name',
'msg2':'Please fill in last name',
'msg3':'Please fill in phone Num',
'msg4':'Please fill in email address',
'msg5':'Please fill in right email address',
'login1':'Nickname',
'login2':'Input your account ID',
'login3':'Paypal service is being maintained,please use other payment method',
'login4':'Foot Seen nickname',
'login5':'Confirm',
'login6':'Top-up account',
'login7':'Please double check the details',
'login8':'Top-up for other account',
'wpay1':'Reminder:Please make sure you have downloaded "Wpay" application before you pay .',
'visatitle':'TOP-UP',
'fail1':'Stored value failed, please contact customer service',
},
{
'gash1':'../img/pay/gash1_en.png',
'gash2':'../img/pay/gash2_en.png',
'gash3':'../img/pay/gash3_en.png',
'gash4':'../img/pay/gash4_en.png',
'alipay':'../img/pay/alipayen.png',
'weipay':'../img/pay/weipayen.png',
'molpay':'../img/pay/mol.png',
'payatm':'../img/pay/payatm.png',
'gopay':'../img/pay/gopay.png',
'alfama':'../img/pay/alfama.png',
'paywallet':'../img/pay/wallet.png',
'visapay':'../img/pay/visa.png',
'wpay':'../img/pay/wpay.png',
'linepay':'../img/pay/linepay.png',
'taiwanpay':'../img/pay/taiwanpay.png',
'jkopay':'../img/pay/jkopay.png',
'cherry':'شحن Cherry',
'paytitle':'شحن GEMs',
'payrecord':'سجل الشحن',
'submit':'تأكيد حسابك',
'next':'خطوة تالية',
'ques':'اذا توجد أي مشكلة في الشحن، تتصل بخدمة العملاء',
'fire':'خطأ في حساب Foot Seen',
'account':'يرجى تأكد من حسابك',
'wallet':'شحن المحفظة',
'card':'شحن Point Card',
'mol':'تفاصيل الشحن لبطاقة MOL Point',
'select':'يرجى اختيار مبلغ الشحن',
'delay':'يرجى متابعة عملية الشحن، ربما تأخير 3-5 دقائق',
'return':'انقر على الإعادة',
'title':'معلومات المستخدم لبطاقة الائتمان',
'titleName':'* مطلوب فقط لأول مرة عن طريق السياسة',
'firstName':'الاسم الأول',
'enterFirstName':'يرجى الادخال الاسم الأول',
'lastName':'باقي الاسم',
'enterLastName':'يرجى الادخال باقي الاسم',
'tel':'رقم الهاتف',
'enterTel':'شكل: رمز البلد + الرقم، مثلا 8861234567',
'email':'البريد الإلكتروني',
'enterEmail':'يرجى الادخال البريد الإلكتروني',
'submitName':'تقدم',
'msg1':'يرجى الادخال الاسم الأول',
'msg2':'يرجى الادخال باقي الاسم',
'msg3':'يرجى الادخال رقم الهاتف',
'msg4':'يرجى الادخال البريد الإلكتروني',
'msg5':'يرجى الادخال البريد الإلكتروني الصحيح',
'login1':'اسم المستخدم',
'login2':'يرجى إدخال Foot Seen ID',
'login3':'يرجي اختار طريق الشحن الأخر بسبب توقف خدمة Paypal',
'login4':'اسم المستخدم',
'login5':'تأكيد حسابك',
'login6':'الحساب الذي تقوم بالشحن',
'login7':'يرجى مراجعة المعلومات',
'login8':'عادة شحن الحساب الآخر',
'wpay1':'ملاخظة: يرجى تثبيت تطبيق “WPAY” قبل أن تقوم بالشحن',
'visatitle':'TOP-UP',
'fail1':'Stored value failed, please contact customer service',
}
]
var langType = 0;
var langCon = getRequest().lang;
if(langCon==undefined || langCon == 'undefined'){
langCon = sessionStorage.lang;
}
//当没有语言参数时 默认为繁体
if(langCon==undefined || langCon == 'undefined'){
langCon = 2;
}
sessionStorage.lang = langCon;
//var $ip = "http://ceshi.yabolive.tv/web";
var $ip = "https://webserver.yabolive.net";
var cdn = 'https://zhibocdn.yabolive.net/comm';
var cidStr = '';
//getRequest().cidStr 判断是否是从H5跳转过来
if(sessionStorage.cidStr == undefined || sessionStorage.cidStr == 'undefined'){
if(getRequest().cidStr == undefined){
cidStr = 'h5_footseenhy';
} else {
cidStr = getRequest().cidStr;
}
sessionStorage.cidStr = cidStr;
}
$.ajaxSetup({
global: false,
type: 'POST',
data: {
os: getNavigatorStr(),
cid: sessionStorage.cidStr,
lang: sessionStorage.lang,
}
})
if(langCon == 0 || langCon == 2){
langType = 0;
} else if(langCon==7){
langType = 2;
} else {
langType = 1;
}
//獲取url參數
function getRequest() {
var url = location.href;
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;
}
function getNavigatorStr(){
var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
var bIsMidp = sUserAgent.match(/midp/i) == "midp";
var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
if (!(bIsIpad|| bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){
return 'PC';
}
else if(bIsAndroid){
return 'android';
}else if(bIsIphoneOs||bIsIpad){
return 'IOS';
} else {
return 'other';
}
}