Commit 29c24cb6 by agan

xg

parent 935996f7
...@@ -699,7 +699,7 @@ ...@@ -699,7 +699,7 @@
$('.ilivepay').on('click', function () { $('.ilivepay').on('click', function () {
sessionStorage.pay = 'ILIVEPAY'; sessionStorage.pay = 'ILIVEPAY';
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=' + mOsStr + '&os=' + data.os; 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';
}) })
} }
......
...@@ -76,27 +76,28 @@ ...@@ -76,27 +76,28 @@
} }
.mHead { .mHead {
width: 10rem; width: 10rem;
height: 1rem; height: 1rem;
position: relative; position: relative;
background: #fff; background: #fff;
display: none; display: none;
margin: 0 auto; margin: 0 auto;
} }
.closeBtn { .closeBtn {
width: 0.64rem; width: 0.64rem;
height: 0.64rem; height: 0.64rem;
padding-left: 0.64rem; padding-left: 0.64rem;
background: url(../img/back.png) no-repeat; background: url(../img/back.png) no-repeat;
background-size: contain; background-size: contain;
position: absolute; position: absolute;
top: 0.18rem; top: 0.18rem;
left: 0.32rem; left: 0.32rem;
font-size: 0.32rem; font-size: 0.32rem;
line-height: 0.64rem;; line-height: 0.64rem;
;
white-space: nowrap; white-space: nowrap;
} }
.closeBtn>a { .closeBtn>a {
width: 100%; width: 100%;
...@@ -108,8 +109,9 @@ ...@@ -108,8 +109,9 @@
<body> <body>
<div class="mHead"> <div class="mHead">
<div class="closeBtn"><a class="mClose" href="javascript:window.opener=null;window.open('','_self');window.close();">關閉</a></div> <div class="closeBtn"><a class="mClose"
</div> href="javascript:window.opener=null;window.open('','_self');window.close();">關閉</a></div>
</div>
<div class="p-w alipay"> <div class="p-w alipay">
<!--<div>--> <!--<div>-->
<!--<p class="apple-top">優惠充值</p>--> <!--<p class="apple-top">優惠充值</p>-->
...@@ -347,6 +349,32 @@ ...@@ -347,6 +349,32 @@
window.location.href = data.payInfo.url; window.location.href = data.payInfo.url;
} }
}) })
} else if (sessionStorage.pay == 'ILIVEPAY') {
$.ajax({
url: _url + "/pay/toIlivepay",
type: "post",
data: {
uid: localStorage.uid,
country: '86',
rid: sessionStorage.rid,
amount: money * 100,
returnUrl: 'https://www.footseen.com/footseen/phonepay/paySuccess.html?lang=' + sessionStorage.lang,
failureUrl: 'https://www.footseen.com/phonepay/payFail.html?lang=' + sessionStorage.lang,
firstName: sessionStorage.firstName || '',
lastName: sessionStorage.lastName || '',
email: sessionStorage.email || '',
phone: sessionStorage.phone || '',
product: "H5寶石儲值",
payType: sessionStorage.pay,
},
success: function (res) {
if (res.code == 1) {
window.location.href = res.url;
} else {
layer.msg(res.msg);
}
}
})
} }
} else { } else {
layer.msg(langList[langType].select); layer.msg(langList[langType].select);
......
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