| @@ -69,6 +69,17 @@ Page({ | |||||
| }); | }); | ||||
| }) | }) | ||||
| }, | }, | ||||
| gotoDetail:function(e){ | |||||
| if (e.currentTarget.dataset.type == 9){ | |||||
| wx.navigateTo({ | |||||
| url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${e.currentTarget.dataset.couponchannelid}`, | |||||
| }) | |||||
| }else{ | |||||
| wx.navigateTo({ | |||||
| url: `/pages/coupon/detail/index?couponChannelId=${e.currentTarget.dataset.couponchannelid}&couponId=${e.currentTarget.dataset.couponid}`, | |||||
| }) | |||||
| } | |||||
| }, | |||||
| gotoactdetail:function(){ | gotoactdetail:function(){ | ||||
| let that = this; | let that = this; | ||||
| console.log(that.data.data.detail) | console.log(that.data.data.detail) | ||||
| @@ -16,7 +16,7 @@ | |||||
| <view class='contain clearfix'> | <view class='contain clearfix'> | ||||
| <!-- 优惠券 --> | <!-- 优惠券 --> | ||||
| <navigator wx:for="{{data.couponList}}" wx:key="{{index}}" url="/pages/coupon/detail/index?couponChannelId={{item.id}}&couponId={{item.couponId}}"> | |||||
| <navigator wx:for="{{data.couponList}}" wx:key="{{index}}" data-couponId='{{item.couponId}}' data-type='{{item.type}}' data-couponChannelId='{{item.id}}' bindtap='gotoDetail'> | |||||
| <!-- 首页优惠券列表页面 --> | <!-- 首页优惠券列表页面 --> | ||||
| <view class="coupons1"> | <view class="coupons1"> | ||||
| <view class="coupons1-img"> | <view class="coupons1-img"> | ||||