Commit 1d000e8c by 高淑倩

modify: 报错

parent e58ed150
...@@ -52,14 +52,15 @@ wxService.page({ ...@@ -52,14 +52,15 @@ wxService.page({
// }) // })
// 查询所有生效中的活动 // 查询所有生效中的活动
wxService.get(`/coupon/pointsRedemptionCouponSetting/getAllValid`).then(res => { wxService.get(`/coupon/pointsRedemptionCouponSetting/getAllValid`).then(res => {
const {result,data} = res.data if(res){
if(result == 0){ const {result,data} = res.data
wx.hideLoading() if(result == 0){
this.setData({ wx.hideLoading()
integralCouponList: data.reverse() this.setData({
}) integralCouponList: data.reverse()
})
}
} }
}).finally(() => { }).finally(() => {
wx.hideLoading(); wx.hideLoading();
}) })
......
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