Commit e5dc601a authored by 罗超's avatar 罗超

1

parent 110fbd31
......@@ -838,7 +838,6 @@ export default {
data.CoverImg = this.currentPriceInfo.CoverImg;
let myData = JSON.stringify(data);
this.orderData = encodeURIComponent(myData);
console.log(841, data);
this.querenAli(data);
OrderId;
} else {
......@@ -868,15 +867,7 @@ export default {
(res) => {
this.orderInfo = JSON.parse(res.data);
if (res.data) {
let cbObj = {
TradeNo: res.data,
OrderNo: data.OrderNo,
OrderId: data.OrderId,
preferPrice: data.PreferPrice,
};
console.log(891, cbObj);
that.payAliCallback(cbObj);
// this.PayAli(res.data, data);
that.PayAli(res.data, data);
} else {
uni.showToast({
title: "获取交易号失败",
......@@ -899,7 +890,6 @@ export default {
OrderId: data.OrderId,
preferPrice: data.PreferPrice,
};
console.log(893, cbObj);
that.payAliCallback(cbObj);
} else if (res.resultCode == "6001") {
uni.showToast({
......@@ -917,7 +907,7 @@ export default {
});
},
payAliCallback(obj) {
console.log("919", obj);
console.log(893, Obj);
this.request2(
{
url: "/api/AliPay/ALiPayCallBackDmcNotify",
......@@ -933,7 +923,7 @@ export default {
(res) => {
console.log("cb", res);
uni.redirectTo({
url: "/pages/jiuzhai/paysuccess",
url: "/pages/jiuzhai/paysuccess?PreferPrice=" + obj.PreferPrice,
});
// setTimeout(() => {
// uni.redirectTo({
......@@ -943,9 +933,13 @@ export default {
},
(err) => {
console.log("cb2", err);
uni.redirectTo({
url: "/pages/jiuzhai/paysuccess",
uni.showToast({
title: "支付失败",
icon: "none",
});
// uni.redirectTo({
// url: "/pages/jiuzhai/paysuccess?PreferPrice=" + obj.PreferPrice,
// });
}
);
},
......
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