|
...
|
...
|
@@ -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);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
...
|
...
|
|