Commit f4ae71fe31e080a7ab5cceaae9bf1cc59db52c4d

Authored by pengye
1 parent 55270053

免费券支付成功后清空数据,重新获取券列表

... ... @@ -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: '支付成功',
... ...
... ... @@ -577,6 +577,7 @@ export default {
//用户活动列表 不传aid查用户列表 传aid查详情
'App.Activity.ActivityListByOpenid':{
openid:'openid',
cachetime: 0,
},
//点击使用 进优惠券详情时 调这个 创建核销码
'App.Activity.UseCreateQrcode':{
... ...