Commit 90b8e7b3 authored by 罗超's avatar 罗超

1

parent de57d95a
......@@ -485,13 +485,20 @@ export default {
tradeNO: tradeNO,
success: function (res) {
console.log("success", res);
let obj = {
TradeNo: tradeNO,
OrderNo: item.orderNo,
OrderId: item.orderId,
preferPrice: item.preferPrice,
};
that.payAliCallback(obj);
if (res.resultCode == "9000") {
let obj = {
TradeNo: tradeNO,
OrderNo: item.orderNo,
OrderId: item.orderId,
preferPrice: item.preferPrice,
};
that.payAliCallback(obj);
} else {
uni.showToast({
title: "支付失败",
icon: "none",
});
}
},
fail: function (err) {
console.log("fail:", err);
......
......@@ -801,13 +801,20 @@ export default {
tradeNO: tradeNO,
success: function (res) {
console.log("success", res);
let cbObj = {
TradeNo: tradeNO,
OrderNo: data.OrderNo,
OrderId: data.OrderId,
preferPrice: data.PreferPrice,
};
that.payAliCallback(cbObj);
if (res.resultCode == "9000") {
let cbObj = {
TradeNo: tradeNO,
OrderNo: data.OrderNo,
OrderId: data.OrderId,
preferPrice: data.PreferPrice,
};
that.payAliCallback(cbObj);
} else {
uni.showToast({
title: "支付失败",
icon: "none",
});
}
},
fail: function (err) {
console.log("fail:", err);
......
......@@ -871,13 +871,20 @@ export default {
tradeNO: tradeNO,
success: function (res) {
console.log("success", res);
let obj = {
TradeNo: tradeNO,
OrderNo: that.orderData.model.orderNo,
OrderId: that.orderData.model.orderId,
preferPrice: that.orderData.model.PreferPrice,
};
that.payAliCallback(obj);
if (res.resultCode == "9000") {
let obj = {
TradeNo: tradeNO,
OrderNo: that.orderData.model.orderNo,
OrderId: that.orderData.model.orderId,
preferPrice: that.orderData.model.PreferPrice,
};
that.payAliCallback(obj);
} else {
uni.showToast({
title: "支付失败",
icon: "none",
});
}
},
fail: function (err) {
console.log("fail:", err);
......
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 to comment