Commit 1d000e8c by 高淑倩

modify: 报错

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