Commit 78c2a71d by agan

添加头部

parent 4890a323
...@@ -274,10 +274,37 @@ ...@@ -274,10 +274,37 @@
/* .newvisapay{ /* .newvisapay{
display: none !important; display: none !important;
} */ } */
.mHead {
width: 10rem;
height: 1rem;
position: relative;
background: #fff;
display: none;
}
.closeBtn {
width: 0.64rem;
height: 0.64rem;
background: url(../img/back.png) no-repeat;
background-size: contain;
position: absolute;
top: 0.18rem;
left: 0.32rem;
}
.closeBtn>a {
width: 100%;
height: 100%;
display: block;
}
</style> </style>
</head> </head>
<body> <body>
<div class="mHead">
<div class="closeBtn"><a href="javascript:window.opener=null;window.open('','_self');window.close();"></a></div>
</div>
<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>
...@@ -388,6 +415,9 @@ ...@@ -388,6 +415,9 @@
// //t // //t
// sessionStorage.kkk = data.token;//k // sessionStorage.kkk = data.token;//k
sessionStorage.appversion = data.appversion; sessionStorage.appversion = data.appversion;
if (data.os == 'h5') {
$('.mHead').show();
}
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();
...@@ -504,32 +534,32 @@ ...@@ -504,32 +534,32 @@
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" + window.location.search;
else window.location.href = "login.html"; else window.location.href = "login.html" + window.location.search;
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" + window.location.search;
else window.location.href = "login.html"; else window.location.href = "login.html" + window.location.search;
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" + window.location.search;
else window.location.href = "login.html"; else window.location.href = "login.html" + window.location.search;
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" + window.location.search;
// 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' + window.location.search;
else window.location.href = "login.html"; else window.location.href = "login.html" + window.location.search;
}) })
$(".alipay").on("click", function () { $(".alipay").on("click", function () {
...@@ -537,84 +567,84 @@ ...@@ -537,84 +567,84 @@
// 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" + window.location.search;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
$(".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() + '&os=' + data.os;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
$(".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" + window.location.search;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
//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' + window.location.search;
else window.location.href = 'login.html' else window.location.href = 'login.html' + window.location.search
}) })
//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' + window.location.search;
else window.location.href = 'login.html' else window.location.href = 'login.html' + window.location.search
}) })
//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' + window.location.search;
else window.location.href = 'login.html' else window.location.href = 'login.html' + window.location.search
}) })
//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' + window.location.search;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
//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' + window.location.search;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
$('.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() + '&os=' + data.os;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
//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() + '&os=' + data.os;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
//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() + '&os=' + data.os;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
//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() + '&os=' + data.os;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
//新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() + '&os=' + data.os;
else window.location.href = 'login.html'; else window.location.href = 'login.html' + window.location.search;
}) })
} }
......
<!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">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection"> <meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no"> <meta name="wap-font-scale" content="no">
<script src="../lib/fsize.js"></script> <script src="../lib/fsize.js"></script>
<link rel="stylesheet" href="../layer-v3.1.0/layer/theme/default/layer.css"/> <link rel="stylesheet" href="../layer-v3.1.0/layer/theme/default/layer.css" />
<link rel="stylesheet" href="../css/base.css"> <link rel="stylesheet" href="../css/base.css">
<link rel="stylesheet" href="../css/login.css"> <link rel="stylesheet" href="../css/login.css">
<title></title> <style>
.mTop {
width: 10rem;
height: 1rem;
background: #f6f6f6;
display: none;
}
.closeBtn {
width: 0.64rem;
height: 0.64rem;
background: url(../img/back.png) no-repeat;
background-size: contain;
position: absolute;
top: 0.18rem;
left: 0.32rem;
}
.closeBtn>a {
width: 100%;
height: 100%;
display: block;
}
</style>
<title></title>
</head> </head>
<body> <body>
<div class="main"> <div class="main">
<div class="mTop">
<div class="closeBtn"><a href="javascript:window.opener=null;window.open('','_self');window.close();"></a>
</div>
</div>
<div class="mHead"> <div class="mHead">
<p></p> <p></p>
<p></p> <p></p>
</div> </div>
<div class="mBox"> <div class="mBox">
<div class="mBoxInput"> <div class="mBoxInput">
<input type="tel" pattern="[0-9]*"/> <input type="tel" pattern="[0-9]*" />
<div class="mBoxSubmit" onclick="submit();"></div> <div class="mBoxSubmit" onclick="submit();"></div>
</div> </div>
<div class="mBoxInfo hide"></div> <div class="mBoxInfo hide"></div>
...@@ -39,82 +69,101 @@ ...@@ -39,82 +69,101 @@
$('title').html(langList[langType].paytitle); $('title').html(langList[langType].paytitle);
$('.mHead p').eq(0).html(langList[langType].login6); $('.mHead p').eq(0).html(langList[langType].login6);
$('.mHead p').eq(1).html(langList[langType].login7); $('.mHead p').eq(1).html(langList[langType].login7);
$('.mBoxInput input').attr('placeholder',langList[langType].login2) $('.mBoxInput input').attr('placeholder', langList[langType].login2)
$('.mBoxSubmit').html(langList[langType].login5) $('.mBoxSubmit').html(langList[langType].login5)
$('.other').html(langList[langType].login8); $('.other').html(langList[langType].login8);
$('.loginBtn').html(langList[langType].next); $('.loginBtn').html(langList[langType].next);
$('.tips').html(langList[langType].ques); $('.tips').html(langList[langType].ques);
$(function(){ $(function () {
if(langType== 2){ if (langType == 2) {
$('body').addClass('L_Ar'); $('body').addClass('L_Ar');
} }
$(".loginBtn").on("click", function () { var bbb = location.href;
if(sessionStorage.pay=="GASHP99PAY"){ var data = url_get_params(bbb)
window.location.href="gash-for.html"; if (data.os == 'h5') {
}else if(sessionStorage.pay=='MOLPAY'){ $('.mTop').show();
window.location.href="molpay.html"; }
}else if(sessionStorage.pay=="PAYPALPAY"){ $(".loginBtn").on("click", function () {
window.location.href="payfor.html"; if (sessionStorage.pay == "GASHP99PAY") {
} else if(sessionStorage.pay=="WECHATPAY"){ window.location.href = "gash-for.html" + window.location.search;
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 if (sessionStorage.pay == 'MOLPAY') {
}else if(sessionStorage.pay=='CODAPAY_PAYATM' || sessionStorage.pay == 'CODAPAY_GOPAY' || sessionStorage.pay == 'CODAPAY_ALFAMA' || sessionStorage.pay == 'CODAPAY_PAYWALLET'){ window.location.href = "molpay.html" + window.location.search;
window.location.href = 'idpay.html'; } else if (sessionStorage.pay == "PAYPALPAY") {
} else if(sessionStorage.pay == 'WPAY'){ window.location.href = "payfor.html" + window.location.search;
window.location.href = 'wpay.html'; } else if (sessionStorage.pay == "WECHATPAY") {
} else if(sessionStorage.pay == 'PAYMENTWALL' || sessionStorage.pay == 'JKO_PAY' || sessionStorage.pay == 'TW_PAY' || sessionStorage.pay == 'LINE_PAY'){ 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() + '&os=' + data.os;
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 if (sessionStorage.pay == 'CODAPAY_PAYATM' || sessionStorage.pay == 'CODAPAY_GOPAY' || sessionStorage.pay == 'CODAPAY_ALFAMA' || sessionStorage.pay == 'CODAPAY_PAYWALLET') {
} else if(sessionStorage.pay == 'TW_ALI_CNY_PAY'){ window.location.href = 'idpay.html' + window.location.search;
window.location.href ='https://www.firefly.live/footseen/phonepay/paymentAlipay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); } else if (sessionStorage.pay == 'WPAY') {
} else if(sessionStorage.pay == 'GLOCASH_PAY'){ window.location.href = 'wpay.html';
window.location.href =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 if (sessionStorage.pay == 'PAYMENTWALL' || sessionStorage.pay == 'JKO_PAY' || sessionStorage.pay == 'TW_PAY' || sessionStorage.pay == 'LINE_PAY') {
} else { window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr() + '&os=' + data.os;
window.location.href="payfor-new.html"; } else if (sessionStorage.pay == 'TW_ALI_CNY_PAY') {
} window.location.href = 'https://www.firefly.live/footseen/phonepay/paymentAlipay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + getNavigatorStr() + '&os=' + data.os;
}) } else if (sessionStorage.pay == 'GLOCASH_PAY') {
$('.other').on('click',function(){ window.location.href = 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() + '&os=' + data.os;
$('.mBoxInput').removeClass('hide'); } else {
$('.mBoxInfo,.other,.loginBtn').addClass('hide'); window.location.href = "payfor-new.html" + window.location.search;
}) }
})
$('.other').on('click', function () {
$('.mBoxInput').removeClass('hide');
$('.mBoxInfo,.other,.loginBtn').addClass('hide');
})
}) })
function submit(){
if(!flag)return false; function url_get_params(url_path) {
var url = url_path;
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 submit() {
if (!flag) return false;
flag = false; flag = false;
var footUid = $('.mBoxInput input').val(); var footUid = $('.mBoxInput input').val();
$.ajax({ $.ajax({
url:$ip+'/user/getUser.html', url: $ip + '/user/getUser.html',
dataType: "json", dataType: "json",
type: "post", type: "post",
data:{ data: {
'cid':"web_gw", 'cid': "web_gw",
'os':"WEB", 'os': "WEB",
'lang':sessionStorage.lang, 'lang': sessionStorage.lang,
'vest':0, 'vest': 0,
'uid':footUid 'uid': footUid
}, },
error:function(msg){ error: function (msg) {
flag = true; flag = true;
console.log('error'); console.log('error');
}, },
success:function(res){ success: function (res) {
flag = true; flag = true;
if(res.code == 1){ if (res.code == 1) {
$('.mBoxInput input').val(''); $('.mBoxInput input').val('');
var str = ''; var str = '';
str += '<img src="'+cdn+res.data.faceimg+'?x-oss-process=image/resize,w_80">'; str += '<img src="' + cdn + res.data.faceimg + '?x-oss-process=image/resize,w_80">';
str += '<div class="mBoxInfoDetail">'; str += '<div class="mBoxInfoDetail">';
str += ' <p>'+res.data.nickName+'</p>'; str += ' <p>' + res.data.nickName + '</p>';
str += ' <p>ID:'+res.data.uid+'</p>'; str += ' <p>ID:' + res.data.uid + '</p>';
str += '</div>'; str += '</div>';
$('.mBoxInfo').html(str); $('.mBoxInfo').html(str);
$('.mBoxInput').addClass('hide'); $('.mBoxInput').addClass('hide');
$('.mBoxInfo,.other,.loginBtn').removeClass('hide'); $('.mBoxInfo,.other,.loginBtn').removeClass('hide');
sessionStorage.uid=res.data.uid; sessionStorage.uid = res.data.uid;
} else { } else {
layer.msg(langList[langType].account); layer.msg(langList[langType].account);
$('.mBoxInput input').val(''); $('.mBoxInput input').val('');
} }
} }
}) })
} }
</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