Commit 78c2a71d by agan

添加头部

parent 4890a323
......@@ -274,10 +274,37 @@
/* .newvisapay{
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>
</head>
<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='big-zuan-box'>
<p class="big-money"><img src="../img/smallzuan.png" alt="">--</p>
......@@ -388,6 +415,9 @@
// //t
// sessionStorage.kkk = data.token;//k
sessionStorage.appversion = data.appversion;
if (data.os == 'h5') {
$('.mHead').show();
}
function url_get_params(url_path) {
var url = url_path;
var theRequest = new Object();
......@@ -504,32 +534,32 @@
function goPayDetail() {
$(".gash-Point").on("click", function () {
sessionStorage.pay = "GASHP99PAY";
if (sessionStorage.uid != undefined) window.location.href = "gash-for.html";
else window.location.href = "login.html";
if (sessionStorage.uid != undefined) window.location.href = "gash-for.html" + window.location.search;
else window.location.href = "login.html" + window.location.search;
sessionStorage.select = 'COPGAM02';
})
$(".gash-member").on("click", function () {
sessionStorage.pay = "GASHP99PAY";
if (sessionStorage.uid != undefined) window.location.href = "gash-for.html";
else window.location.href = "login.html";
if (sessionStorage.uid != undefined) window.location.href = "gash-for.html" + window.location.search;
else window.location.href = "login.html" + window.location.search;
sessionStorage.select = 'COPGAM09';
})
$(".gash-credit").on("click", function () {
sessionStorage.pay = "GASHP99PAY";
if (sessionStorage.uid != undefined) window.location.href = "gash-for.html";
else window.location.href = "login.html";
if (sessionStorage.uid != undefined) window.location.href = "gash-for.html" + window.location.search;
else window.location.href = "login.html" + window.location.search;
sessionStorage.select = 'BNK82201';
})
$(".gash-phone").on("click", function () {
sessionStorage.pay = "GASHP99PAY";
window.location.href = "gash-phone.html";
window.location.href = "gash-phone.html" + window.location.search;
// sessionStorage.select='gashPhone';
})
$(".Paypal").on("click", function () {
sessionStorage.pay = "PAYPALPAY";
if (sessionStorage.uid != undefined) window.location.href = 'payfor-new.html';
else window.location.href = "login.html";
if (sessionStorage.uid != undefined) window.location.href = 'payfor-new.html' + window.location.search;
else window.location.href = "login.html" + window.location.search;
})
$(".alipay").on("click", function () {
......@@ -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();
// else window.location.href = 'login.html';
sessionStorage.pay = "ALIPAY";
if (sessionStorage.uid != undefined) window.location.href = "payfor-new.html";
else window.location.href = 'login.html';
if (sessionStorage.uid != undefined) window.location.href = "payfor-new.html" + window.location.search;
else window.location.href = 'login.html' + window.location.search;
})
$(".weipay").on("click", function () {
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();
else window.location.href = 'login.html';
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' + window.location.search;
})
$(".molpay").on("click", function () {
sessionStorage.pay = "MOLPAY";
if (sessionStorage.uid != undefined) window.location.href = "molpay.html";
else window.location.href = 'login.html';
if (sessionStorage.uid != undefined) window.location.href = "molpay.html" + window.location.search;
else window.location.href = 'login.html' + window.location.search;
})
//payatm
$('.payatm').on('click', function () {
sessionStorage.pay = 'CODAPAY_PAYATM';
sessionStorage.payType = '220';
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html'
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
else window.location.href = 'login.html' + window.location.search
})
//gopay
$('.gopay').on('click', function () {
sessionStorage.pay = 'CODAPAY_GOPAY';
sessionStorage.payType = '227';
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html'
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
else window.location.href = 'login.html' + window.location.search
})
//alfama
$('.alfama').on('click', function () {
sessionStorage.pay = 'CODAPAY_ALFAMA';
sessionStorage.payType = '221';
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html'
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
else window.location.href = 'login.html' + window.location.search
})
//paywallet
$('.paywallet').on('click', function () {
sessionStorage.pay = 'CODAPAY_PAYWALLET';
sessionStorage.payType = '223';
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html';
else window.location.href = 'login.html';
if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
else window.location.href = 'login.html' + window.location.search;
})
//wpay 阿拉伯支付
$('.wpay').on('click', function () {
sessionStorage.pay = "WPAY";
sessionStorage.gofrom = data.gofrom;
if (sessionStorage.uid != undefined) window.location.href = 'wpay.html';
else window.location.href = 'login.html';
if (sessionStorage.uid != undefined) window.location.href = 'wpay.html' + window.location.search;
else window.location.href = 'login.html' + window.location.search;
})
$('.visapay').on('click', function () {
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();
else window.location.href = 'login.html';
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' + window.location.search;
})
//linepay
$('.linepay').on('click', function () {
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();
else window.location.href = 'login.html';
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' + window.location.search;
})
//taiwanpay
$('.taiwanpay').on('click', function () {
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();
else window.location.href = 'login.html';
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' + window.location.search;
})
//jkopay
$('.jkopay').on('click', function () {
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();
else window.location.href = 'login.html';
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' + window.location.search;
})
//新visa
$('.newvisapay').on('click', function () {
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();
else window.location.href = 'login.html';
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' + window.location.search;
})
}
......
<!DOCTYPE html>
<html lang="en">
<head>
<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-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<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/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>
</head>
<body>
<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">
<p></p>
<p></p>
</div>
<div class="mBox">
<div class="mBoxInput">
<input type="tel" pattern="[0-9]*"/>
<input type="tel" pattern="[0-9]*" />
<div class="mBoxSubmit" onclick="submit();"></div>
</div>
<div class="mBoxInfo hide"></div>
......@@ -39,76 +69,94 @@
$('title').html(langList[langType].paytitle);
$('.mHead p').eq(0).html(langList[langType].login6);
$('.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)
$('.other').html(langList[langType].login8);
$('.loginBtn').html(langList[langType].next);
$('.tips').html(langList[langType].ques);
$(function(){
if(langType== 2){
$(function () {
if (langType == 2) {
$('body').addClass('L_Ar');
}
var bbb = location.href;
var data = url_get_params(bbb)
if (data.os == 'h5') {
$('.mTop').show();
}
$(".loginBtn").on("click", function () {
if(sessionStorage.pay=="GASHP99PAY"){
window.location.href="gash-for.html";
}else if(sessionStorage.pay=='MOLPAY'){
window.location.href="molpay.html";
}else if(sessionStorage.pay=="PAYPALPAY"){
window.location.href="payfor.html";
} 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();
}else if(sessionStorage.pay=='CODAPAY_PAYATM' || sessionStorage.pay == 'CODAPAY_GOPAY' || sessionStorage.pay == 'CODAPAY_ALFAMA' || sessionStorage.pay == 'CODAPAY_PAYWALLET'){
window.location.href = 'idpay.html';
} else if(sessionStorage.pay == 'WPAY'){
if (sessionStorage.pay == "GASHP99PAY") {
window.location.href = "gash-for.html" + window.location.search;
} else if (sessionStorage.pay == 'MOLPAY') {
window.location.href = "molpay.html" + window.location.search;
} else if (sessionStorage.pay == "PAYPALPAY") {
window.location.href = "payfor.html" + window.location.search;
} 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() + '&os=' + data.os;
} 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.search;
} else if (sessionStorage.pay == 'WPAY') {
window.location.href = 'wpay.html';
} 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();
} 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();
} 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();
} 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() + '&os=' + data.os;
} 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') {
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 {
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');
$('.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;
var footUid = $('.mBoxInput input').val();
$.ajax({
url:$ip+'/user/getUser.html',
url: $ip + '/user/getUser.html',
dataType: "json",
type: "post",
data:{
'cid':"web_gw",
'os':"WEB",
'lang':sessionStorage.lang,
'vest':0,
'uid':footUid
data: {
'cid': "web_gw",
'os': "WEB",
'lang': sessionStorage.lang,
'vest': 0,
'uid': footUid
},
error:function(msg){
error: function (msg) {
flag = true;
console.log('error');
},
success:function(res){
success: function (res) {
flag = true;
if(res.code == 1){
if (res.code == 1) {
$('.mBoxInput input').val('');
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 += ' <p>'+res.data.nickName+'</p>';
str += ' <p>ID:'+res.data.uid+'</p>';
str += ' <p>' + res.data.nickName + '</p>';
str += ' <p>ID:' + res.data.uid + '</p>';
str += '</div>';
$('.mBoxInfo').html(str);
$('.mBoxInput').addClass('hide');
$('.mBoxInfo,.other,.loginBtn').removeClass('hide');
sessionStorage.uid=res.data.uid;
sessionStorage.uid = res.data.uid;
} else {
layer.msg(langList[langType].account);
$('.mBoxInput input').val('');
......@@ -117,4 +165,5 @@
})
}
</script>
</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