|
...
|
...
|
@@ -186,7 +186,7 @@ Page({ |
|
|
|
})
|
|
|
|
console.log('优惠金额----', price);
|
|
|
|
let val = this.data.inputValue * 1;
|
|
|
|
let actualPrice = val - price.toFixed(2)
|
|
|
|
let actualPrice = (val - price).toFixed(2)
|
|
|
|
price = price.toFixed(2)
|
|
|
|
this.setData({
|
|
|
|
discountPrice: price,
|
|
...
|
...
|
@@ -239,7 +239,17 @@ Page({ |
|
|
|
paySign: res.data.paySign,
|
|
|
|
success(ress) {
|
|
|
|
if (ress.errMsg == 'requestPayment:ok') {
|
|
|
|
// that.writeOff()
|
|
|
|
that.setData({
|
|
|
|
inputValue: '',
|
|
|
|
finalList: [],
|
|
|
|
couponArr: [],
|
|
|
|
discountPrice: '0.00',
|
|
|
|
actualPrice: '',
|
|
|
|
})
|
|
|
|
// 需要延迟获取才能获取到最新的券列表
|
|
|
|
setTimeout(() => {
|
|
|
|
that.getCoupon()
|
|
|
|
}, 8000);
|
|
|
|
console.log('支付成功', ress);
|
|
|
|
return wx.showToast({
|
|
|
|
title: '支付成功',
|
...
|
...
|
|