Commit 53575541 by libai

测试

parent 5cdb833e
Showing with 38 additions and 7 deletions
...@@ -193,6 +193,19 @@ try{ ...@@ -193,6 +193,19 @@ try{
sessionStorage.pay = $(this).children("i").text() sessionStorage.pay = $(this).children("i").text()
}) })
$(".pay-btn").on("click", function () { $(".pay-btn").on("click", function () {
$.ajax({
url:'https://zhibo.lvdou66.com/account/client/idcard/auth/check.html',
type: "post",
data:{
uid:sessionStorage.bbb,
token:sessionStorage.kkk,
pkg:sessionStorage.pkg
},
success:function(msg){
var data=JSON.parse(msg);
if(data.code==1){
if(data.authcode==1){
if (moneyBl && payBl) { if (moneyBl && payBl) {
if (sessionStorage.pay == "alipay") { if (sessionStorage.pay == "alipay") {
if (payOk) { if (payOk) {
...@@ -208,40 +221,58 @@ try{ ...@@ -208,40 +221,58 @@ try{
'os':sessionStorage.os 'os':sessionStorage.os
}, },
success: function (msg) { success: function (msg) {
console.log(msg); if(msg.code==1){
var html = []; var html = [];
payOk = true payOk = true
html += msg.html; html += msg.html;
$(".alipay").html(html); $(".alipay").html(html);
}else{
alert(msg.msg)
}
} }
}) })
} }
} else if (sessionStorage.pay == "weipay") { }
else if (sessionStorage.pay == "weipay") {
if (payOk) { if (payOk) {
$.ajax({ $.ajax({
url: $ip+"/order/h5/wechat.html", url: $ip + "/order/h5/wechat.html",
dataType: "json", dataType: "json",
type: "post", type: "post",
data: { data: {
'uid': sessionStorage.bbb, 'uid': sessionStorage.bbb,
'amount': amount, 'amount': amount,
'pkg':'h5', 'pkg':sessionStorage.pkg,
'cid':sessionStorage.cid, 'cid':sessionStorage.cid,
'os':sessionStorage.os 'os':sessionStorage.os
}, },
success: function (msg) { success: function (msg) {
console.log(msg); if(msg.code==1){
payOk = true; payOk = true;
window.location.href=msg.result.payInfo.url; window.location.href = msg.result.payInfo.url;
}else{
alert(msg.msg)
}
} }
}) })
} }
}
} }
} }
else if(data.authcode==0){
window.location.href='https://activity.ishuaji.cn/eggplant/verification/index.html?uid='+sessionStorage.bbb+'&token='+sessionStorage.kkk+'&pkg='+sessionStorage.pkg+'&back='+location.href+''
}
else if(data.authcode==-1){
$(".pay-btn").text("未成年人禁止充值消费").css("background","#999999").css("color","#fff")
return
}
}
}
})
}) })
$(".taobao-Pay").on("click", function () { $(".taobao-Pay").on("click", function () {
......
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