Commit a460f6631442471c3124c9ce16146ccce7ce5f3e
1 parent
03a94c60
商品详情页促销中的专享礼包点击事件修改
Showing
2 changed files
with
9 additions
and
8 deletions
pages/goods/goodsInfo/goodsInfo.js
| ... | ... | @@ -6551,17 +6551,18 @@ Page({ |
| 6551 | 6551 | // 促销 -> 送礼包 -> 查看详情 |
| 6552 | 6552 | viewLbDetails(e) { |
| 6553 | 6553 | let id = e.currentTarget.dataset.id; // 获取礼包id |
| 6554 | - let url = `/packageA/pages/myGiftDetails/myGiftDetails?btn=0&index=0&id=${id}`; // btn=0 控制跳转到的页面不显示按钮 | |
| 6554 | + let flag = e.currentTarget.dataset.flag; | |
| 6555 | + let url = ''; | |
| 6556 | + if(flag == 1) { // flag =1 控制跳转到专享礼包 | |
| 6557 | + url = `/pages/giftpack/giftpacklist/giftpacklist?lbId=${id}&flag=1`; | |
| 6558 | + } else { | |
| 6559 | + url = `/packageA/pages/myGiftDetails/myGiftDetails?btn=0&index=0&id=${id}`; // btn=0 控制跳转到的页面不显示按钮 | |
| 6560 | + }; | |
| 6555 | 6561 | // console.log('myurl', url); |
| 6556 | 6562 | getApp().goto(url); |
| 6557 | 6563 | }, |
| 6558 | 6564 | |
| 6559 | - viewLbDetails2(e) { | |
| 6560 | - let id = e.currentTarget.dataset.id; // 获取礼包id | |
| 6561 | - let url = `/pages/giftpack/giftpacklist/giftpacklist?lbId=${id}&orderSn=`; // btn=0 控制跳转到的页面不显示按钮 | |
| 6562 | - console.log('myurl', url); | |
| 6563 | - getApp().goto(url); | |
| 6564 | - }, | |
| 6565 | + | |
| 6565 | 6566 | |
| 6566 | 6567 | go_more_ladder: function (e) { |
| 6567 | 6568 | var prom_id = e.currentTarget.dataset.id; | ... | ... |
pages/goods/goodsInfo/goodsInfo.wxml
| ... | ... | @@ -519,7 +519,7 @@ |
| 519 | 519 | <view class="tick lh2 pdr20" wx:if="{{item.couponId>0}}">送{{item.couponMoney}}元优惠券</view> |
| 520 | 520 | <view class="tick ellipsis-1x lh2" wx:if="{{item.gift_id>0}}">送商品{{item.goods_name}}</view> |
| 521 | 521 | <view class="tick ellipsis-1x lh2 details pdr40" wx:if="{{item.lb_id>0}}" data-id="{{item.lb_id}}" bindtap="viewLbDetails">送{{item.lbtitle}}</view> |
| 522 | - <view class="tick ellipsis-1x lh2 details pdr40" wx:if="{{item.zxlb_id>0}}" data-id="{{item.zxlb_id}}" bindtap="viewLbDetails2">送{{item.zxlbtitle}}</view> | |
| 522 | + <view class="tick ellipsis-1x lh2 details pdr40" wx:if="{{item.zxlb_id>0}}" data-id="{{item.zxlb_id}}" data-flag="1" bindtap="viewLbDetails">送{{item.zxlbtitle}}</view> | |
| 523 | 523 | </view> |
| 524 | 524 | </view> |
| 525 | 525 | </view> | ... | ... |