Commit 2ca0ad75 by agan

修改

parent edafad25
...@@ -70,32 +70,30 @@ ...@@ -70,32 +70,30 @@
$(".gash-for-ul").html(html); $(".gash-for-ul").html(html);
$(".gash-for-ul li").on("click", function () { $(".gash-for-ul li").on("click", function () {
if (flag) { $.ajax({
flag = false; url: _url + "/pay/getPaymentWall.html",
var money = $(this).children("button").children('i').text(); data: {
var rid = $(this).children(".gash-rid").text(); uid: localStorage.uid,
$.ajax({ country: '86',
type: "POST", rid: sessionStorage.rid,
url: $ip + "/pay/getCodaPay.html", amount: sessionStorage.money,
data: { returnUrl: _url4 + '/phonepay/paySuccess.html?lang=' + sessionStorage.lang,
'lang': sessionStorage.lang, failureUrl: _url4 + '/phonepay/payFail.html?lang=' + sessionStorage.lang,
'uid': sessionStorage.uid, firstName: sessionStorage.firstName || '',
'product': "橙钻充值", lastName: sessionStorage.lastName || '',
'country': "86", email: sessionStorage.email || '',
'rid': rid, phone: sessionStorage.phone || '',
'payType': sessionStorage.pay, product: langList[langType].text53,
'paymentType': sessionStorage.payType, payType: sessionStorage.pay,
'payTypeSub': "NAVITE", },
'amount': money * 100, success: function (res) {
}, if (res.code == 1) {
async: true, window.location.href = res.url;
success: function (res) { } else {
console.log(res); layer.msg(res.msg);
var data = JSON.parse(res);
window.location.href = 'https://airtime.codapayments.com/airtime/begin?type=' + sessionStorage.payType + '&txn_id=' + data.result + '&browser_type=mobile-web';
} }
}); }
} })
}) })
} }
......
...@@ -70,32 +70,30 @@ ...@@ -70,32 +70,30 @@
$(".gash-for-ul").html(html); $(".gash-for-ul").html(html);
$(".gash-for-ul li").on("click", function () { $(".gash-for-ul li").on("click", function () {
if (flag) { $.ajax({
flag = false; url: _url + "/pay/getPaymentWall.html",
var money = $(this).children("button").children('i').text(); data: {
var rid = $(this).children(".gash-rid").text(); uid: localStorage.uid,
$.ajax({ country: '86',
type: "POST", rid: sessionStorage.rid,
url: $ip + "/pay/getCodaPay.html", amount: sessionStorage.money,
data: { returnUrl: _url4 + '/phonepay/paySuccess.html?lang=' + sessionStorage.lang,
'lang': sessionStorage.lang, failureUrl: _url4 + '/phonepay/payFail.html?lang=' + sessionStorage.lang,
'uid': sessionStorage.uid, firstName: sessionStorage.firstName || '',
'product': "橙钻充值", lastName: sessionStorage.lastName || '',
'country': "86", email: sessionStorage.email || '',
'rid': rid, phone: sessionStorage.phone || '',
'payType': sessionStorage.pay, product: langList[langType].text53,
'paymentType': sessionStorage.payType, payType: sessionStorage.pay,
'payTypeSub': "NAVITE", },
'amount': money * 100, success: function (res) {
}, if (res.code == 1) {
async: true, window.location.href = res.url;
success: function (res) { } else {
console.log(res); layer.msg(res.msg);
var data = JSON.parse(res);
window.location.href = 'https://airtime.codapayments.com/airtime/begin?type=' + sessionStorage.payType + '&txn_id=' + data.result + '&browser_type=mobile-web';
} }
}); }
} })
}) })
} }
......
...@@ -70,32 +70,30 @@ ...@@ -70,32 +70,30 @@
$(".gash-for-ul").html(html); $(".gash-for-ul").html(html);
$(".gash-for-ul li").on("click", function () { $(".gash-for-ul li").on("click", function () {
if (flag) { $.ajax({
flag = false; url: _url + "/pay/getPaymentWall.html",
var money = $(this).children("button").children('i').text(); data: {
var rid = $(this).children(".gash-rid").text(); uid: localStorage.uid,
$.ajax({ country: '86',
type: "POST", rid: sessionStorage.rid,
url: $ip + "/pay/getCodaPay.html", amount: sessionStorage.money,
data: { returnUrl: _url4 + '/phonepay/paySuccess.html?lang=' + sessionStorage.lang,
'lang': sessionStorage.lang, failureUrl: _url4 + '/phonepay/payFail.html?lang=' + sessionStorage.lang,
'uid': sessionStorage.uid, firstName: sessionStorage.firstName || '',
'product': "橙钻充值", lastName: sessionStorage.lastName || '',
'country': "86", email: sessionStorage.email || '',
'rid': rid, phone: sessionStorage.phone || '',
'payType': sessionStorage.pay, product: langList[langType].text53,
'paymentType': sessionStorage.payType, payType: sessionStorage.pay,
'payTypeSub': "NAVITE", },
'amount': money * 100, success: function (res) {
}, if (res.code == 1) {
async: true, window.location.href = res.url;
success: function (res) { } else {
console.log(res); layer.msg(res.msg);
var data = JSON.parse(res);
window.location.href = 'https://airtime.codapayments.com/airtime/begin?type=' + sessionStorage.payType + '&txn_id=' + data.result + '&browser_type=mobile-web';
} }
}); }
} })
}) })
} }
......
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