Commit f90082f3 by 高淑倩

modify: 积分兑换优惠券

parent 6808e8d1
...@@ -77,16 +77,15 @@ Component({ ...@@ -77,16 +77,15 @@ Component({
} }
wxService.post(`/coupon/pointsRedemptionCouponSetting/exchange`, this.data.exchangeId).then(res => { wxService.post(`/coupon/pointsRedemptionCouponSetting/exchange`, this.data.exchangeId).then(res => {
if(res){ if(res){
if(res.result == 0){ if(res.data.result == 0){
wx.hideLoading() wx.hideLoading()
wx.showToast({ wx.showToast({
title: '兑换成功', title: '兑换成功',
icon: 'success' icon: 'success'
},()=>{ })
this.setData({ this.setData({
isExchange: false isExchange: false
}) })
})
} }
} else { } else {
this.setData({ this.setData({
......
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