Commit f1878cb6 authored by 罗超's avatar 罗超

Merge branch 'B2C' of http://gitlab.oytour.com/zk123/jz_travel into B2C

parents a211cc4f 517753eb
...@@ -446,7 +446,7 @@ ...@@ -446,7 +446,7 @@
</view> </view>
<view class="jz_form" style="margin: 40rpx 0; padding: 0"> <view class="jz_form" style="margin: 40rpx 0; padding: 0">
<view class="form-items"> <view class="form-items">
<view class="label"> 在线支付 </view> <view class="label"> 商品总价 </view>
<view class="val f14 regular" style="text-align: right"> <view class="val f14 regular" style="text-align: right">
<text style="margin-right: 30rpx">{{ orderData.model.GuestNum }}</text> <text style="margin-right: 30rpx">{{ orderData.model.GuestNum }}</text>
<text class="red">{{ orderData.model.PreferPrice }}</text> <text class="red">{{ orderData.model.PreferPrice }}</text>
......
...@@ -888,6 +888,7 @@ ...@@ -888,6 +888,7 @@
}, },
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,
...@@ -902,11 +903,21 @@ ...@@ -902,11 +903,21 @@
title: "支付成功", title: "支付成功",
}); });
setTimeout(() => { setTimeout(() => {
// #ifdef MP-DI
uni.redirectTo({ uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" + url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
that.price + price +
"&isFrom=1", "&isFrom=3",
}); });
// #endif
// #ifdef MP-AG
uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
this.price +
"&isFrom=3",
});
// #endif
}, 100); }, 100);
}, },
fail: function(err) { fail: function(err) {
......
...@@ -645,11 +645,20 @@ ...@@ -645,11 +645,20 @@
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.price +
"&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