Commit 78c2a71d by agan

添加头部

parent 4890a323
<!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">
<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> <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,76 +69,94 @@ ...@@ -39,76 +69,94 @@
$('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');
} }
var bbb = location.href;
var data = url_get_params(bbb)
if (data.os == 'h5') {
$('.mTop').show();
}
$(".loginBtn").on("click", function () { $(".loginBtn").on("click", function () {
if(sessionStorage.pay=="GASHP99PAY"){ if (sessionStorage.pay == "GASHP99PAY") {
window.location.href="gash-for.html"; window.location.href = "gash-for.html" + window.location.search;
}else if(sessionStorage.pay=='MOLPAY'){ } else if (sessionStorage.pay == 'MOLPAY') {
window.location.href="molpay.html"; window.location.href = "molpay.html" + window.location.search;
}else if(sessionStorage.pay=="PAYPALPAY"){ } else if (sessionStorage.pay == "PAYPALPAY") {
window.location.href="payfor.html"; window.location.href = "payfor.html" + window.location.search;
} else if(sessionStorage.pay=="WECHATPAY"){ } else if (sessionStorage.pay == "WECHATPAY") {
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(); 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 if(sessionStorage.pay=='CODAPAY_PAYATM' || sessionStorage.pay == 'CODAPAY_GOPAY' || sessionStorage.pay == 'CODAPAY_ALFAMA' || sessionStorage.pay == 'CODAPAY_PAYWALLET'){ } else if (sessionStorage.pay == 'CODAPAY_PAYATM' || sessionStorage.pay == 'CODAPAY_GOPAY' || sessionStorage.pay == 'CODAPAY_ALFAMA' || sessionStorage.pay == 'CODAPAY_PAYWALLET') {
window.location.href = 'idpay.html'; window.location.href = 'idpay.html' + window.location.search;
} else if(sessionStorage.pay == 'WPAY'){ } else if (sessionStorage.pay == 'WPAY') {
window.location.href = 'wpay.html'; window.location.href = 'wpay.html';
} else if(sessionStorage.pay == 'PAYMENTWALL' || sessionStorage.pay == 'JKO_PAY' || sessionStorage.pay == 'TW_PAY' || sessionStorage.pay == 'LINE_PAY'){ } else if (sessionStorage.pay == 'PAYMENTWALL' || sessionStorage.pay == 'JKO_PAY' || sessionStorage.pay == 'TW_PAY' || sessionStorage.pay == 'LINE_PAY') {
window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&pay='+sessionStorage.pay+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr(); 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 if(sessionStorage.pay == 'TW_ALI_CNY_PAY'){ } 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(); 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'){ } else if (sessionStorage.pay == 'GLOCASH_PAY') {
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(); 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;
} else { } else {
window.location.href="payfor-new.html"; window.location.href = "payfor-new.html" + window.location.search;
} }
}) })
$('.other').on('click',function(){ $('.other').on('click', function () {
$('.mBoxInput').removeClass('hide'); $('.mBoxInput').removeClass('hide');
$('.mBoxInfo,.other,.loginBtn').addClass('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('');
...@@ -117,4 +165,5 @@ ...@@ -117,4 +165,5 @@
}) })
} }
</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