Commit 105858c4 authored by youjie's avatar youjie

no message

parent f1878cb6
...@@ -888,7 +888,6 @@ ...@@ -888,7 +888,6 @@
}, },
goPayHandler(OrderNo) { goPayHandler(OrderNo) {
let that = this; let that = this;
var price = (this.price-this.currentCoupon.discountMoney).toFixed(2)
uni.requestPayment({ uni.requestPayment({
provider: "wxpay", provider: "wxpay",
timeStamp: this.orderInfo.timeStamp, timeStamp: this.orderInfo.timeStamp,
...@@ -903,20 +902,11 @@ ...@@ -903,20 +902,11 @@
title: "支付成功", title: "支付成功",
}); });
setTimeout(() => { setTimeout(() => {
// #ifdef MP-DI
uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
price +
"&isFrom=3",
});
// #endif
// #ifdef MP-AG
uni.redirectTo({ uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" + url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
this.price + (that.price-that.currentCoupon.discountMoney).toFixed(2)+
"&isFrom=3", "&isFrom=3",
}); });
// #endif
}, 100); }, 100);
}, },
......
...@@ -645,20 +645,11 @@ ...@@ -645,20 +645,11 @@
title: "支付成功", title: "支付成功",
}); });
setTimeout(() => { setTimeout(() => {
// #ifdef MP-DI
uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
that.orderData.model.DueInMoney +
"&isFrom=3",
});
// #endif
// #ifdef MP-AG
uni.redirectTo({ uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" + url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
that.price + ((that.orderData.OrderModel.TotalPrice -that.orderData.OrderModel.DiscountMoney).toFixed(2)) +
"&isFrom=3", "&isFrom=3",
}); });
// #endif
}, 100); }, 100);
}, },
fail: function(err) { fail: function(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