Showing
2 changed files
with
6 additions
and
6 deletions
| @@ -923,7 +923,7 @@ Page({ | @@ -923,7 +923,7 @@ Page({ | ||
| 923 | // 付款 | 923 | // 付款 |
| 924 | confirmPayment: util.throttle(function () { | 924 | confirmPayment: util.throttle(function () { |
| 925 | let that = this; | 925 | let that = this; |
| 926 | - let actualPrice = this.data.actualPrice | 926 | + let soothPrice = this.data.soothPrice |
| 927 | wx.showLoading({ | 927 | wx.showLoading({ |
| 928 | title: '支付中', | 928 | title: '支付中', |
| 929 | }) | 929 | }) |
| @@ -931,7 +931,7 @@ Page({ | @@ -931,7 +931,7 @@ Page({ | ||
| 931 | console.log('核销所勾选的券传参', str); | 931 | console.log('核销所勾选的券传参', str); |
| 932 | let params = { | 932 | let params = { |
| 933 | sellerid: this.data.seller.sid, | 933 | sellerid: this.data.seller.sid, |
| 934 | - price: actualPrice, | 934 | + price: soothPrice, |
| 935 | } | 935 | } |
| 936 | if (this.data.consumeDiscount) { | 936 | if (this.data.consumeDiscount) { |
| 937 | params.consume = this.data.consumeDiscount; | 937 | params.consume = this.data.consumeDiscount; |
| @@ -970,7 +970,7 @@ Page({ | @@ -970,7 +970,7 @@ Page({ | ||
| 970 | }) | 970 | }) |
| 971 | } | 971 | } |
| 972 | if (res.ret == '200') { | 972 | if (res.ret == '200') { |
| 973 | - that.deductBalance(actualPrice, res.data.id) | 973 | + that.deductBalance(soothPrice, res.data.id) |
| 974 | } | 974 | } |
| 975 | }) | 975 | }) |
| 976 | return false | 976 | return false |
| @@ -996,8 +996,8 @@ Page({ | @@ -996,8 +996,8 @@ Page({ | ||
| 996 | success(ress) { | 996 | success(ress) { |
| 997 | wx.hideLoading() | 997 | wx.hideLoading() |
| 998 | if (ress.errMsg == 'requestPayment:ok') { | 998 | if (ress.errMsg == 'requestPayment:ok') { |
| 999 | - that.giftCouponsFun(actualPrice,res.data.orderid) //送券 | ||
| 1000 | - that.giftConsumeFun(actualPrice, res.data.orderid) //送消费金 | 999 | + that.giftCouponsFun(soothPrice,res.data.orderid) //送券 |
| 1000 | + that.giftConsumeFun(soothPrice, res.data.orderid) //送消费金 | ||
| 1001 | setTimeout(() => { | 1001 | setTimeout(() => { |
| 1002 | console.log('2送券金额----', that.data.totalPrice); | 1002 | console.log('2送券金额----', that.data.totalPrice); |
| 1003 | console.log('2送消费金----', that.data.totalConsumePrice); | 1003 | console.log('2送消费金----', that.data.totalConsumePrice); |
| @@ -1597,6 +1597,7 @@ Page({ | @@ -1597,6 +1597,7 @@ Page({ | ||
| 1597 | * 生命周期函数--监听页面显示 | 1597 | * 生命周期函数--监听页面显示 |
| 1598 | */ | 1598 | */ |
| 1599 | onShow() { | 1599 | onShow() { |
| 1600 | + this.payFail() | ||
| 1600 | this.getCheckUserHavePhone() | 1601 | this.getCheckUserHavePhone() |
| 1601 | this.getFreeMealConfigFun() | 1602 | this.getFreeMealConfigFun() |
| 1602 | }, | 1603 | }, |
-
Please register or login to post a comment