暂存
This commit is contained in:
@@ -1012,6 +1012,7 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
this.buyingFlag = false
|
||||||
console.log("res at line 598:", res);
|
console.log("res at line 598:", res);
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (res.orderSn == null) {
|
if (res.orderSn == null) {
|
||||||
@@ -1042,7 +1043,6 @@
|
|||||||
});
|
});
|
||||||
console.log(res, "支付支付");
|
console.log(res, "支付支付");
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.buyingFlag = false
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "支付成功",
|
title: "支付成功",
|
||||||
});
|
});
|
||||||
@@ -1062,7 +1062,7 @@
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
console.log("失败失败失败");
|
console.log("失败失败失败");
|
||||||
this.buyingFlag = false
|
// this.buyingFlag = false
|
||||||
// that.$commonJS.showToast('支付是失败')
|
// that.$commonJS.showToast('支付是失败')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("延迟调用 失败提示");
|
console.log("延迟调用 失败提示");
|
||||||
@@ -1091,7 +1091,7 @@
|
|||||||
};
|
};
|
||||||
setWXPay(data1, (res) => {
|
setWXPay(data1, (res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.buyingFlag = false
|
// this.buyingFlag = false
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "支付成功",
|
title: "支付成功",
|
||||||
});
|
});
|
||||||
@@ -1111,7 +1111,7 @@
|
|||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
this.buyingFlag = false
|
// this.buyingFlag = false
|
||||||
console.log(res, "微信支付111111111111111");
|
console.log(res, "微信支付111111111111111");
|
||||||
if (res.data.errMsg.indexOf("User canceled") != -1) {
|
if (res.data.errMsg.indexOf("User canceled") != -1) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -1129,7 +1129,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.payType == 4) {
|
} else if (this.payType == 4) {
|
||||||
this.buyingFlag = false
|
// this.buyingFlag = false
|
||||||
// 天医币支付
|
// 天医币支付
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "购买成功",
|
title: "购买成功",
|
||||||
@@ -1149,6 +1149,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
this.buyingFlag = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user