cherrlangchange.js
3.01 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
var langList = [
//中文
{
'gash1':'img/gash1.png',
'gash2':'img/gash2.png',
'gash3':'img/gash3.png',
'gash4':'img/gash4.png',
'alipay':'img/alipay.png',
'weipay':'img/weipay.png',
'cherry':'樱花儲值',
'submit':'賬號確認',
'next':'下一步',
'ques':'*如果出現儲值問題,請聯繫客服',
'fire':'FireFly賬號有誤',
'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':'請填寫正確的郵箱'
},
//英文
{
'gash1':'img/gash1_en.png',
'gash2':'img/gash2_en.png',
'gash3':'img/gash3_en.png',
'gash4':'img/gash4_en.png',
'alipay':'img/alipayen.png',
'weipay':'img/weipayen.png',
'cherry':'Top-Up Cherry',
'submit':'Account confirm',
'next':'Next step',
'ques':'*If encounter top-up problems,please contact the customer service',
'fire':'FireFly 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'
}
]
var langType = 0;
var langCon = sessionStorage.lang;
//当没有语言参数时 默认为繁体
if(langCon==undefined || langCon == 'undefined'){
langCon = 2;
}
if(langCon == 0 || langCon == 2){
langType = 0;
} 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;
}