Commit 2ca0ad75 by agan

修改

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