Commit beb3003b539dfb9354e67bc1c80649dfe8cf406c

Authored by pengye
1 parent 62a4ed9b

券详情领取后显示券有效期2

... ... @@ -190,7 +190,7 @@ Page({
this.writeOff()
}else{
this.myToast.showToast('领取成功', 2000)
this.getCoupon()
this.getCoupon('1')
}
} else {
this.myToast.showToast(res.msg, 2000)
... ... @@ -488,7 +488,7 @@ Page({
this.setData({
resultCoupon: res.data.length > 0 && res.data[0].is_type == '3' ? '1' : '0',
})
if(i) this.getDetail(res.data[0].cdate,activity_id);
if(i) this.getDetail(res.data.length > 0?res.data[0].cdate:'',activity_id);
}
})
},
... ...