Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -190,7 +190,7 @@ Page({ | @@ -190,7 +190,7 @@ Page({ | ||
| 190 | this.writeOff() | 190 | this.writeOff() |
| 191 | }else{ | 191 | }else{ |
| 192 | this.myToast.showToast('领取成功', 2000) | 192 | this.myToast.showToast('领取成功', 2000) |
| 193 | - this.getCoupon() | 193 | + this.getCoupon('1') |
| 194 | } | 194 | } |
| 195 | } else { | 195 | } else { |
| 196 | this.myToast.showToast(res.msg, 2000) | 196 | this.myToast.showToast(res.msg, 2000) |
| @@ -488,7 +488,7 @@ Page({ | @@ -488,7 +488,7 @@ Page({ | ||
| 488 | this.setData({ | 488 | this.setData({ |
| 489 | resultCoupon: res.data.length > 0 && res.data[0].is_type == '3' ? '1' : '0', | 489 | resultCoupon: res.data.length > 0 && res.data[0].is_type == '3' ? '1' : '0', |
| 490 | }) | 490 | }) |
| 491 | - if(i) this.getDetail(res.data[0].cdate,activity_id); | 491 | + if(i) this.getDetail(res.data.length > 0?res.data[0].cdate:'',activity_id); |
| 492 | } | 492 | } |
| 493 | }) | 493 | }) |
| 494 | }, | 494 | }, |
-
Please register or login to post a comment