Commit dc59de0b by agan

去除visa

parent 40537ea8
Showing with 175 additions and 152 deletions
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <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="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-capable" content="yes">
...@@ -95,39 +95,49 @@ ...@@ -95,39 +95,49 @@
width: 2.6rem; width: 2.6rem;
} }
.apple-ul li.molpay img{ .apple-ul li.molpay img {
width: 2.3rem; width: 2.3rem;
} }
.apple-ul li.gash-Point img, .apple-ul li.gash-Point img,
.apple-ul li.gash-member img, .apple-ul li.gash-member img,
.apple-ul li.gash-credit img, .apple-ul li.gash-credit img,
.apple-ul li.gash-phone img { .apple-ul li.gash-phone img {
width: 3.3rem; width: 3.3rem;
} }
.apple-ul li.gash-Point img{
.apple-ul li.gash-Point img {
width: 3rem; width: 3rem;
} }
.apple-ul li.gash-member img{
.apple-ul li.gash-member img {
width: 3.4rem; width: 3.4rem;
} }
.apple-ul li.gash-credit img{
.apple-ul li.gash-credit img {
width: 3.6rem; width: 3.6rem;
} }
.apple-ul li.gash-phone img{
.apple-ul li.gash-phone img {
width: 3.8rem; width: 3.8rem;
} }
.apple-ul li.payatm img{
.apple-ul li.payatm img {
width: 2.786rem; width: 2.786rem;
} }
.apple-ul li.gopay img{
.apple-ul li.gopay img {
width: 4.106rem; width: 4.106rem;
} }
.apple-ul li.alfama img{
.apple-ul li.alfama img {
width: 3.5rem; width: 3.5rem;
} }
.apple-ul li.paywallet img{
.apple-ul li.paywallet img {
width: 6rem; width: 6rem;
} }
.apple-ul li.gash-Point img.en { .apple-ul li.gash-Point img.en {
width: 5.5rem !important; width: 5.5rem !important;
} }
...@@ -147,6 +157,7 @@ ...@@ -147,6 +157,7 @@
.apple-ul li.weipay img.en { .apple-ul li.weipay img.en {
width: 3.5rem; width: 3.5rem;
} }
.userInfo { .userInfo {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -208,39 +219,45 @@ ...@@ -208,39 +219,45 @@
margin-right: 0.066rem; margin-right: 0.066rem;
margin-top: -.05rem; margin-top: -.05rem;
} }
.
.bigRecord{ .bigRecord {
color: #333; color: #333;
font-size: 0.32rem; font-size: 0.32rem;
position: absolute; position: absolute;
right: .3rem; right: .3rem;
top: .2rem; top: .2rem;
} }
.apple-ul li.linepay img{
.apple-ul li.linepay img {
width: 2.4rem; width: 2.4rem;
} }
.apple-ul li.jkopay img{
.apple-ul li.jkopay img {
width: 2.4rem; width: 2.4rem;
} }
.p-w .apple-ul li.wpay{
.p-w .apple-ul li.wpay {
display: none !important; display: none !important;
} }
.ios-select-widget-box header.iosselect-header{
.ios-select-widget-box header.iosselect-header {
background-color: #FFF; background-color: #FFF;
} }
.ios-select-widget-box header.iosselect-header a{
color:#E53985; .ios-select-widget-box header.iosselect-header a {
color: #E53985;
} }
.bigRecord { .bigRecord {
color: #333; color: #333;
font-size: 0.32rem; font-size: 0.32rem;
position: absolute; position: absolute;
right: .3rem; right: .3rem;
top: .2rem; top: .2rem;
} }
.apple-ul li.newvisapay img { .apple-ul li.newvisapay img {
width: 2.4rem; width: 2.4rem;
} }
...@@ -248,13 +265,18 @@ ...@@ -248,13 +265,18 @@
width: auto; width: auto;
height: .6rem; height: .6rem;
} }
.p-w .apple-ul li.jkopay{
.p-w .apple-ul li.jkopay {
display: none !important;
}
/* 暂时屏蔽visa */
.newvisapay{
display: none !important; display: none !important;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="p-w"> <div class="p-w">
<div class='big-zuan-box'> <div class='big-zuan-box'>
<p class="big-money"><img src="../img/smallzuan.png" alt="">--</p> <p class="big-money"><img src="../img/smallzuan.png" alt="">--</p>
...@@ -265,11 +287,11 @@ ...@@ -265,11 +287,11 @@
<ul class="apple-ul"></ul> <ul class="apple-ul"></ul>
</div> </div>
</body> </body>
<script src="../js/iosSelect.js"></script> <script src="../js/iosSelect.js"></script>
<script src="../lib/payLangchange.js?v=20210423203666666666666666"></script> <script src="../lib/payLangchange.js?v=20210423203666666666666666"></script>
<script src="../js/phonepay.js?v=20210304201999999999"></script> <script src="../js/phonepay.js?v=20210304201999999999"></script>
<script> <script>
$('title').text(langList[langType].paytitle); $('title').text(langList[langType].paytitle);
$('.bigRecord').text(langList[langType].payrecord); $('.bigRecord').text(langList[langType].payrecord);
var $url = 'https://www.footseen.com/footseen'; var $url = 'https://www.footseen.com/footseen';
...@@ -303,20 +325,20 @@ ...@@ -303,20 +325,20 @@
var bbb = location.href; var bbb = location.href;
var data = url_get_params(bbb) var data = url_get_params(bbb)
if(data.appversion>=5960){ if (data.appversion >= 5960) {
$('.bigRecord').hide(); $('.bigRecord').hide();
try{ try {
var obj={ var obj = {
"cid": 26, "cid": 26,
"reqCode": new Date().getTime(), "reqCode": new Date().getTime(),
"data": { "data": {
"msg":"左上角上角添加 联系客服", "msg": "左上角上角添加 联系客服",
"type":1, "type": 1,
} }
} }
var obj2=JSON.stringify(obj); var obj2 = JSON.stringify(obj);
appCollaboration(obj2) appCollaboration(obj2)
} catch (err){ } catch (err) {
} }
} }
...@@ -326,7 +348,7 @@ ...@@ -326,7 +348,7 @@
// if(sessionStorage.kkk!='undefined')sessionStorage.uid = data.uid; // if(sessionStorage.kkk!='undefined')sessionStorage.uid = data.uid;
// //t // //t
// sessionStorage.kkk = data.token;//k // sessionStorage.kkk = data.token;//k
sessionStorage.appversion=data.appversion; sessionStorage.appversion = data.appversion;
function url_get_params(url_path) { function url_get_params(url_path) {
var url = url_path; var url = url_path;
var theRequest = new Object(); var theRequest = new Object();
...@@ -339,19 +361,19 @@ ...@@ -339,19 +361,19 @@
} }
return theRequest; return theRequest;
} }
var url=window.location.href; var url = window.location.href;
// var strst = 'http://yabolive.com/archive/recharge.html?uid=1564864&pkg=ios.yabolive&version=100&lang=2'; // var strst = 'http://yabolive.com/archive/recharge.html?uid=1564864&pkg=ios.yabolive&version=100&lang=2';
// console.log(url.split('uid=')[1].split('&')[0]); // console.log(url.split('uid=')[1].split('&')[0]);
var reg = /uid=([0-9]+)/; var reg = /uid=([0-9]+)/;
try{ try {
sessionStorage.uid=url.match(reg)[1]; sessionStorage.uid = url.match(reg)[1];
sessionStorage.bbb=url.match(reg)[1]; sessionStorage.bbb = url.match(reg)[1];
}catch(error){ } catch (error) {
} }
//获取当前用户地区 //获取当前用户地区
if(sessionStorage.appversion != 'undefined') { if (sessionStorage.appversion != 'undefined') {
$(".big-zuan-box").show(); $(".big-zuan-box").show();
$.ajax({ $.ajax({
url: $ip + '/user/getUserInfo.html', url: $ip + '/user/getUserInfo.html',
...@@ -363,7 +385,7 @@ ...@@ -363,7 +385,7 @@
uid: sessionStorage.uid, uid: sessionStorage.uid,
token: sessionStorage.token token: sessionStorage.token
}, },
success: function(msg) { success: function (msg) {
var data = JSON.parse(msg) var data = JSON.parse(msg)
$(".big-money").html('<img src="../img/big-zuan.png" alt="">' + data.data.diamond); $(".big-money").html('<img src="../img/big-zuan.png" alt="">' + data.data.diamond);
...@@ -374,29 +396,29 @@ ...@@ -374,29 +396,29 @@
$('.userInfo').html(str); $('.userInfo').html(str);
} }
}) })
$(".big-zuan-box span").on("click", function() { $(".big-zuan-box span").on("click", function () {
var obj = { var obj = {
"cid":15, "cid": 15,
"reqCode": new Date().getTime(), "reqCode": new Date().getTime(),
"data": { "data": {
"urls": [ "urls": [
{ {
"url":$url+'/Nesting/recording/consum.html'+window.location.search, "url": $url + '/Nesting/recording/consum.html' + window.location.search,
"title":langList[langType].dewconsumTitle, "title": langList[langType].dewconsumTitle,
"rightBtnImageURL":'', "rightBtnImageURL": '',
"rightBtnClickURL":'' "rightBtnClickURL": ''
}, },
{ {
"url":$url+'/Nesting/recording/money.html'+window.location.search, "url": $url + '/Nesting/recording/money.html' + window.location.search,
"title":langList[langType].dewmoneyTitle, "title": langList[langType].dewmoneyTitle,
"rightBtnImageURL":'', "rightBtnImageURL": '',
"rightBtnClickURL":'' "rightBtnClickURL": ''
} }
], ],
"select":1, "select": 1,
"titleColor":"#808080", "titleColor": "#808080",
"titleSelectedColor":"#EA287E", "titleSelectedColor": "#EA287E",
"titleBackground":'#FFFFFF', "titleBackground": '#FFFFFF',
} }
} }
...@@ -409,7 +431,7 @@ ...@@ -409,7 +431,7 @@
getLangRegion('OTHER'); getLangRegion('OTHER');
} }
function getRegion(){ function getRegion() {
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: $ip + "/setting/getCountryTranslation.html", url: $ip + "/setting/getCountryTranslation.html",
...@@ -421,16 +443,16 @@ ...@@ -421,16 +443,16 @@
uid: sessionStorage.uid, uid: sessionStorage.uid,
token: sessionStorage.token token: sessionStorage.token
}, },
success: function(data) { success: function (data) {
var res = JSON.parse(data); var res = JSON.parse(data);
var code = ''; var code = '';
var flag = false; var flag = false;
$('.siteInfo').html('<img src="../img/site.png"/>' + res.countryName).attr('data-id',res.countryCode); $('.siteInfo').html('<img src="../img/site.png"/>' + res.countryName).attr('data-id', res.countryCode);
if(res.countryCode == 'TW' || res.countryCode == 'MY' || res.countryCode == 'ID' || res.countryCode == 'IN') { if (res.countryCode == 'TW' || res.countryCode == 'MY' || res.countryCode == 'ID' || res.countryCode == 'IN') {
code = res.countryCode code = res.countryCode
} else if(!country[res.countryCode]){ } else if (!country[res.countryCode]) {
code = 'OTHER'; code = 'OTHER';
} else { } else {
code = 'WPAY'; code = 'WPAY';
...@@ -441,125 +463,125 @@ ...@@ -441,125 +463,125 @@
}); });
} }
function goPayDetail() { function goPayDetail() {
$(".gash-Point").on("click", function() { $(".gash-Point").on("click", function () {
sessionStorage.pay = "GASHP99PAY"; sessionStorage.pay = "GASHP99PAY";
if(sessionStorage.uid != undefined) window.location.href = "gash-for.html"; if (sessionStorage.uid != undefined) window.location.href = "gash-for.html";
else window.location.href = "login.html"; else window.location.href = "login.html";
sessionStorage.select = 'COPGAM02'; sessionStorage.select = 'COPGAM02';
}) })
$(".gash-member").on("click", function() { $(".gash-member").on("click", function () {
sessionStorage.pay = "GASHP99PAY"; sessionStorage.pay = "GASHP99PAY";
if(sessionStorage.uid != undefined) window.location.href = "gash-for.html"; if (sessionStorage.uid != undefined) window.location.href = "gash-for.html";
else window.location.href = "login.html"; else window.location.href = "login.html";
sessionStorage.select = 'COPGAM09'; sessionStorage.select = 'COPGAM09';
}) })
$(".gash-credit").on("click", function() { $(".gash-credit").on("click", function () {
sessionStorage.pay = "GASHP99PAY"; sessionStorage.pay = "GASHP99PAY";
if(sessionStorage.uid != undefined) window.location.href = "gash-for.html"; if (sessionStorage.uid != undefined) window.location.href = "gash-for.html";
else window.location.href = "login.html"; else window.location.href = "login.html";
sessionStorage.select = 'BNK82201'; sessionStorage.select = 'BNK82201';
}) })
$(".gash-phone").on("click", function() { $(".gash-phone").on("click", function () {
sessionStorage.pay = "GASHP99PAY"; sessionStorage.pay = "GASHP99PAY";
window.location.href = "gash-phone.html"; window.location.href = "gash-phone.html";
// sessionStorage.select='gashPhone'; // sessionStorage.select='gashPhone';
}) })
$(".Paypal").on("click", function() { $(".Paypal").on("click", function () {
sessionStorage.pay = "PAYPALPAY"; sessionStorage.pay = "PAYPALPAY";
if(sessionStorage.uid != undefined) window.location.href = 'payfor-new.html'; if (sessionStorage.uid != undefined) window.location.href = 'payfor-new.html';
else window.location.href = "login.html"; else window.location.href = "login.html";
}) })
$(".alipay").on("click", function() { $(".alipay").on("click", function () {
// sessionStorage.pay = 'TW_ALI_CNY_PAY' // sessionStorage.pay = 'TW_ALI_CNY_PAY'
// if(sessionStorage.uid != undefined)window.location.href ='https://www.firefly.live/footseen/phonepay/paymentAlipay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); // if(sessionStorage.uid != undefined)window.location.href ='https://www.firefly.live/footseen/phonepay/paymentAlipay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr();
// else window.location.href = 'login.html'; // else window.location.href = 'login.html';
sessionStorage.pay = "ALIPAY"; sessionStorage.pay = "ALIPAY";
if(sessionStorage.uid != undefined) window.location.href = "payfor-new.html"; if (sessionStorage.uid != undefined) window.location.href = "payfor-new.html";
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
$(".weipay").on("click", function() { $(".weipay").on("click", function () {
sessionStorage.pay = "WECHATPAY"; sessionStorage.pay = "WECHATPAY";
if(sessionStorage.uid != undefined) window.location.href = 'http://web.yazhaiyabo.com/footseen/wechatpay/payfor-new.html?uid='+sessionStorage.uid+'&token='+sessionStorage.token+'&lang='+sessionStorage.lang+'&pay='+sessionStorage.pay+'&payStatus='+sessionStorage.payStatus+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); if (sessionStorage.uid != undefined) window.location.href = 'http://web.yazhaiyabo.com/footseen/wechatpay/payfor-new.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&payStatus=' + sessionStorage.payStatus + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr();
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
$(".molpay").on("click", function() { $(".molpay").on("click", function () {
sessionStorage.pay = "MOLPAY"; sessionStorage.pay = "MOLPAY";
if(sessionStorage.uid != undefined) window.location.href = "molpay.html"; if (sessionStorage.uid != undefined) window.location.href = "molpay.html";
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
//payatm //payatm
$('.payatm').on('click',function(){ $('.payatm').on('click', function () {
sessionStorage.pay = 'CODAPAY_PAYATM'; sessionStorage.pay = 'CODAPAY_PAYATM';
sessionStorage.payType = '220'; sessionStorage.payType = '220';
if(sessionStorage.uid!=undefined) window.location.href = 'idpay.html'; if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html' else window.location.href = 'login.html'
}) })
//gopay //gopay
$('.gopay').on('click',function(){ $('.gopay').on('click', function () {
sessionStorage.pay = 'CODAPAY_GOPAY'; sessionStorage.pay = 'CODAPAY_GOPAY';
sessionStorage.payType = '227'; sessionStorage.payType = '227';
if(sessionStorage.uid!=undefined) window.location.href = 'idpay.html'; if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html' else window.location.href = 'login.html'
}) })
//alfama //alfama
$('.alfama').on('click',function(){ $('.alfama').on('click', function () {
sessionStorage.pay = 'CODAPAY_ALFAMA'; sessionStorage.pay = 'CODAPAY_ALFAMA';
sessionStorage.payType = '221'; sessionStorage.payType = '221';
if(sessionStorage.uid!=undefined) window.location.href = 'idpay.html'; if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html' else window.location.href = 'login.html'
}) })
//paywallet //paywallet
$('.paywallet').on('click',function(){ $('.paywallet').on('click', function () {
sessionStorage.pay = 'CODAPAY_PAYWALLET'; sessionStorage.pay = 'CODAPAY_PAYWALLET';
sessionStorage.payType = '223'; sessionStorage.payType = '223';
if(sessionStorage.uid!=undefined) window.location.href = 'idpay.html'; if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
//wpay 阿拉伯支付 //wpay 阿拉伯支付
$('.wpay').on('click',function(){ $('.wpay').on('click', function () {
sessionStorage.pay = "WPAY"; sessionStorage.pay = "WPAY";
sessionStorage.gofrom = data.gofrom; sessionStorage.gofrom = data.gofrom;
if(sessionStorage.uid!=undefined)window.location.href = 'wpay.html'; if (sessionStorage.uid != undefined) window.location.href = 'wpay.html';
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
$('.visapay').on('click', function() { $('.visapay').on('click', function () {
sessionStorage.pay = "PAYMENTWALL"; sessionStorage.pay = "PAYMENTWALL";
if(sessionStorage.uid != undefined)window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&pay='+sessionStorage.pay+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr();
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
//linepay //linepay
$('.linepay').on('click',function(){ $('.linepay').on('click', function () {
sessionStorage.pay = 'LINE_PAY'; sessionStorage.pay = 'LINE_PAY';
if(sessionStorage.uid != undefined)window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&pay='+sessionStorage.pay+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr();
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
//taiwanpay //taiwanpay
$('.taiwanpay').on('click',function(){ $('.taiwanpay').on('click', function () {
sessionStorage.pay = 'TW_PAY'; sessionStorage.pay = 'TW_PAY';
if(sessionStorage.uid != undefined)window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&pay='+sessionStorage.pay+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr();
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
//jkopay //jkopay
$('.jkopay').on('click',function(){ $('.jkopay').on('click', function () {
sessionStorage.pay = 'JKO_PAY'; sessionStorage.pay = 'JKO_PAY';
if(sessionStorage.uid != undefined)window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&pay='+sessionStorage.pay+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr();
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
//新visa //新visa
$('.newvisapay').on('click', function() { $('.newvisapay').on('click', function () {
sessionStorage.pay = "GLOCASH_PAY"; sessionStorage.pay = "GLOCASH_PAY";
if(sessionStorage.uid != undefined)window.location.href = 'https://firefly.live/footseen/phonepay/newvisapay.html?uid='+sessionStorage.uid+'&token='+sessionStorage.token+'&lang='+sessionStorage.lang+'&pay='+sessionStorage.pay+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/newvisapay.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr();
else window.location.href = 'login.html'; else window.location.href = 'login.html';
}) })
} }
function getLangRegion(code) { function getLangRegion(code) {
var langStr = ''; var langStr = '';
for(var i = 0; i < payOrder[code].length; i++) { for (var i = 0; i < payOrder[code].length; i++) {
langStr += '<li class="' + payList[payOrder[code][i]].name + '">'; langStr += '<li class="' + payList[payOrder[code][i]].name + '">';
langStr += ' <img src="' + payList[payOrder[code][i]].img + '" alt="">'; langStr += ' <img src="' + payList[payOrder[code][i]].img + '" alt="">';
langStr += ' <span class="glyphicon"></span>'; langStr += ' <span class="glyphicon"></span>';
...@@ -569,47 +591,47 @@ ...@@ -569,47 +591,47 @@
goPayDetail(); goPayDetail();
if(langType != 0) { if (langType != 0) {
$('.weipay img,.gash-Point img,.gash-member img,.gash-credit img,.gash-phone img').addClass('en'); $('.weipay img,.gash-Point img,.gash-member img,.gash-credit img,.gash-phone img').addClass('en');
} }
} }
selectCountry() selectCountry()
function selectCountry(){ function selectCountry() {
var showDom = document.querySelector('.siteInfo');// 绑定一个触发元素 var showDom = document.querySelector('.siteInfo');// 绑定一个触发元素
showDom.addEventListener('click', function () { // 添加监听事件 showDom.addEventListener('click', function () { // 添加监听事件
var val = showDom.dataset['id']; // 获取元素的data-id属性值 var val = showDom.dataset['id']; // 获取元素的data-id属性值
var title = showDom.dataset['value']; // 获取元素的data-value属性值 var title = showDom.dataset['value']; // 获取元素的data-value属性值
var arrList = [ var arrList = [
{'id':'TW', 'value': '台灣'}, { 'id': 'TW', 'value': '台灣' },
{'id':'MY', 'value': 'Malaysia'}, { 'id': 'MY', 'value': 'Malaysia' },
{'id':'ID','value':'Indonisia'}, { 'id': 'ID', 'value': 'Indonisia' },
{'id':'CN','value':'中国'}, { 'id': 'CN', 'value': '中国' },
{'id':'IN','value':'India'}, { 'id': 'IN', 'value': 'India' },
{'id':'VN','value':'Việt nam'}, { 'id': 'VN', 'value': 'Việt nam' },
{'id':'AF','value':'أفغانستان'}, { 'id': 'AF', 'value': 'أفغانستان' },
{'id':'DZ','value':'الجزائر'}, { 'id': 'DZ', 'value': 'الجزائر' },
{'id':'BH','value':'البحرين'}, { 'id': 'BH', 'value': 'البحرين' },
{'id':'TD','value':'تشاد'}, { 'id': 'TD', 'value': 'تشاد' },
{'id':'KM','value':'جزر القمر'}, { 'id': 'KM', 'value': 'جزر القمر' },
{'id':'DJ','value':'جيبوتي'}, { 'id': 'DJ', 'value': 'جيبوتي' },
{'id':'EG','value':'مصر'}, { 'id': 'EG', 'value': 'مصر' },
{'id':'ER','value':'إريتريا'}, { 'id': 'ER', 'value': 'إريتريا' },
{'id':'IQ','value':'العراق'}, { 'id': 'IQ', 'value': 'العراق' },
{'id':'JO','value':'الأردن'}, { 'id': 'JO', 'value': 'الأردن' },
{'id':'KW','value':'الكويت'}, { 'id': 'KW', 'value': 'الكويت' },
{'id':'LB','value':'لبنان'}, { 'id': 'LB', 'value': 'لبنان' },
{'id':'LY','value':'ليبيا'}, { 'id': 'LY', 'value': 'ليبيا' },
{'id':'MR','value':'موريتانيا'}, { 'id': 'MR', 'value': 'موريتانيا' },
{'id':'MA','value':'المغرب'}, { 'id': 'MA', 'value': 'المغرب' },
{'id':'OM','value':'عمان'}, { 'id': 'OM', 'value': 'عمان' },
{'id':'PS','value':'فلسطين'}, { 'id': 'PS', 'value': 'فلسطين' },
{'id':'QA','value':'قطر'}, { 'id': 'QA', 'value': 'قطر' },
{'id':'SA','value':'المملكة العربية السعودية'}, { 'id': 'SA', 'value': 'المملكة العربية السعودية' },
{'id':'SD','value':'سودان'}, { 'id': 'SD', 'value': 'سودان' },
{'id':'TN','value':'تونس'}, { 'id': 'TN', 'value': 'تونس' },
{'id':'AE','value':'الإمارات العربية المتحدة'}, { 'id': 'AE', 'value': 'الإمارات العربية المتحدة' },
{'id':'YE','value':'يمني'}, { 'id': 'YE', 'value': 'يمني' },
{'id':'OTHER','value':'其他'}, { 'id': 'OTHER', 'value': '其他' },
] ]
// 实例化组件 // 实例化组件
var example = new IosSelect(1, // 第一个参数为级联层级,演示为1 var example = new IosSelect(1, // 第一个参数为级联层级,演示为1
...@@ -621,15 +643,15 @@ ...@@ -621,15 +643,15 @@
oneLevelId: val, // 第一级默认值 oneLevelId: val, // 第一级默认值
callback: function (selectOneObj) { // 用户确认选择后的回调函数 callback: function (selectOneObj) { // 用户确认选择后的回调函数
showDom.innerHTML = '<img src="../img/site.png"/>'+selectOneObj.value; showDom.innerHTML = '<img src="../img/site.png"/>' + selectOneObj.value;
showDom.dataset['id'] = selectOneObj.id; showDom.dataset['id'] = selectOneObj.id;
showDom.dataset['value'] = selectOneObj.value; showDom.dataset['value'] = selectOneObj.value;
var countryCode = selectOneObj.id; var countryCode = selectOneObj.id;
var flag = false; var flag = false;
if(selectOneObj.id == 'TW' || selectOneObj.id== 'MY' || selectOneObj.id == 'ID' || selectOneObj.id == 'IN'){ if (selectOneObj.id == 'TW' || selectOneObj.id == 'MY' || selectOneObj.id == 'ID' || selectOneObj.id == 'IN') {
countryCode = selectOneObj.id countryCode = selectOneObj.id
} else if(!country[selectOneObj.id]){ } else if (!country[selectOneObj.id]) {
countryCode = 'OTHER'; countryCode = 'OTHER';
} else { } else {
countryCode = 'WPAY'; countryCode = 'WPAY';
...@@ -650,27 +672,27 @@ ...@@ -650,27 +672,27 @@
} }
var rechargeCid = ''; var rechargeCid = '';
if(sessionStorage.cid == undefined || sessionStorage.cid == 'undefined'){ if (sessionStorage.cid == undefined || sessionStorage.cid == 'undefined') {
rechargeCid = 'cid'; rechargeCid = 'cid';
} }
$.ajax({ $.ajax({
url:$ip+'/stat/toRecharge.html', url: $ip + '/stat/toRecharge.html',
type: "post", type: "post",
data: { data: {
os: "h5", os: "h5",
cid:rechargeCid, cid: rechargeCid,
lang: sessionStorage.lang, lang: sessionStorage.lang,
uid: sessionStorage.uid, uid: sessionStorage.uid,
appversion:sessionStorage.appversion, appversion: sessionStorage.appversion,
driverid:pwd, driverid: pwd,
token:sessionStorage.kkk token: sessionStorage.kkk
}, },
success:function(res){ success: function (res) {
} }
}); });
function getNavigator(){ function getNavigator() {
var sUserAgent = navigator.userAgent.toLowerCase(); var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
...@@ -680,17 +702,17 @@ ...@@ -680,17 +702,17 @@
var bIsAndroid = sUserAgent.match(/android/i) == "android"; var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
if (!(bIsIpad|| bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){ if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) {
return 'pc'; return 'pc';
} }
else if(bIsAndroid){ else if (bIsAndroid) {
return 'android'; return 'android';
}else if(bIsIphoneOs||bIsIpad){ } else if (bIsIphoneOs || bIsIpad) {
return 'ios'; return 'ios';
} }
} }
function appCollaboration(msg){ function appCollaboration(msg) {
var sUserAgent = navigator.userAgent.toLowerCase(); var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
...@@ -700,11 +722,11 @@ ...@@ -700,11 +722,11 @@
var bIsAndroid = sUserAgent.match(/android/i) == "android"; var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
if (!(bIsIpad|| bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){ if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) {
} }
else if(bIsAndroid){ else if (bIsAndroid) {
window.yazhai.appCollaboration(msg); window.yazhai.appCollaboration(msg);
}else if(bIsIphoneOs||bIsIpad){ } else if (bIsIphoneOs || bIsIpad) {
window.webkit.messageHandlers.appCollaboration.postMessage(msg); window.webkit.messageHandlers.appCollaboration.postMessage(msg);
} }
} }
...@@ -712,6 +734,6 @@ ...@@ -712,6 +734,6 @@
function appCallback(msg) { function appCallback(msg) {
console.log(msg); console.log(msg);
} }
</script> </script>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment