Browse Source

[限时抢购详情][修改]:限时抢购的详情id

tags/2.2.4
meo 6 years ago
parent
commit
3c83d98755
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      pages/index/rushToBuy/index.js
  2. +1
    -1
      pages/index/rushToBuy/index.wxml

+ 2
- 1
pages/index/rushToBuy/index.js View File

@@ -41,7 +41,8 @@ Component({
wx.navigateTo({ wx.navigateTo({
url: `/pages/coupon/detail/index?id=${ url: `/pages/coupon/detail/index?id=${
e.currentTarget.dataset.id e.currentTarget.dataset.id
}&couponId=${e.currentTarget.dataset.couponId}`
}&couponId=${e.currentTarget.dataset.couponId}
}&targetAd=${e.currentTarget.dataset.targetad}`
}); });
} }
}, },


+ 1
- 1
pages/index/rushToBuy/index.wxml View File

@@ -2,7 +2,7 @@
<view class="index-rushToBuy-title">限时抢购<text bindtap="gotomore">查看更多></text></view> <view class="index-rushToBuy-title">限时抢购<text bindtap="gotomore">查看更多></text></view>
<scroll-view scroll-x class="index-scroll-view"> <scroll-view scroll-x class="index-scroll-view">
<view class="commodity" wx:for="{{list}}" wx:key="unique"> <view class="commodity" wx:for="{{list}}" wx:key="unique">
<view bindtap="gotodetail" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}">
<view bindtap="gotodetail" data-id="{{item.id}}" data-targetAd="{{item.targetAd}}">
<image class="commodity-img" src="{{item.coverImg}}" /> <image class="commodity-img" src="{{item.coverImg}}" />
<view class="commodity-info"> <view class="commodity-info">
<view class="commodity-info-name">{{item.title}}</view> <view class="commodity-info-name">{{item.title}}</view>


Loading…
Cancel
Save