Commit beb3003b539dfb9354e67bc1c80649dfe8cf406c

Authored by pengye
1 parent 62a4ed9b

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

@@ -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 },