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';
})
}
......
......@@ -76,27 +76,28 @@
}
.mHead {
width: 10rem;
height: 1rem;
position: relative;
background: #fff;
display: none;
margin: 0 auto;
}
width: 10rem;
height: 1rem;
position: relative;
background: #fff;
display: none;
margin: 0 auto;
}
.closeBtn {
width: 0.64rem;
height: 0.64rem;
padding-left: 0.64rem;
background: url(../img/back.png) no-repeat;
background-size: contain;
position: absolute;
top: 0.18rem;
left: 0.32rem;
font-size: 0.32rem;
line-height: 0.64rem;;
width: 0.64rem;
height: 0.64rem;
padding-left: 0.64rem;
background: url(../img/back.png) no-repeat;
background-size: contain;
position: absolute;
top: 0.18rem;
left: 0.32rem;
font-size: 0.32rem;
line-height: 0.64rem;
;
white-space: nowrap;
}
}
.closeBtn>a {
width: 100%;
......@@ -108,8 +109,9 @@
<body>
<div class="mHead">
<div class="closeBtn"><a class="mClose" href="javascript:window.opener=null;window.open('','_self');window.close();">關閉</a></div>
</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>-->
<!--<p class="apple-top">優惠充值</p>-->
......@@ -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