Commit 29c24cb6 by agan

xg

parent 935996f7
......@@ -699,7 +699,7 @@
$('.ilivepay').on('click', function () {
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';
})
}
......
......@@ -94,7 +94,8 @@
top: 0.18rem;
left: 0.32rem;
font-size: 0.32rem;
line-height: 0.64rem;;
line-height: 0.64rem;
;
white-space: nowrap;
}
......@@ -108,7 +109,8 @@
<body>
<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"
href="javascript:window.opener=null;window.open('','_self');window.close();">關閉</a></div>
</div>
<div class="p-w alipay">
<!--<div>-->
......@@ -347,6 +349,32 @@
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 {
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