@@ -37,7 +37,7 @@ | |||||
</view> --> | </view> --> | ||||
<!-- 优惠券 --> | <!-- 优惠券 --> | ||||
<navigator wx:for="{{data.coupons}}" wx:key="{{index}}" url="/pages/coupon/detail/index?id={{item.id}}"> | |||||
<navigator wx:for="{{data.coupons}}" wx:key="{{index}}" url="/pages/coupon/detail/index?couponChannelId=iambannercoupon&couponId={{item.couponId}}"> | |||||
<!-- 首页优惠券列表页面 --> | <!-- 首页优惠券列表页面 --> | ||||
<view class="coupons1"> | <view class="coupons1"> | ||||
<view class="coupons1-img"> | <view class="coupons1-img"> | ||||
@@ -62,12 +62,10 @@ | |||||
<view class="coupons1-info-name subtitle sy">剩余: {{item.remainInventory}}</view> | <view class="coupons1-info-name subtitle sy">剩余: {{item.remainInventory}}</view> | ||||
<!-- <text class="coupons-info-price-o"><text class='i'>¥</text>{{item.priceStr}}</text> --> | <!-- <text class="coupons-info-price-o"><text class='i'>¥</text>{{item.priceStr}}</text> --> | ||||
</view> | </view> | ||||
<i-button class="buy" wx:if="{{item.type==4}}" data-date='{{data}}'>领取</i-button> | |||||
<i-button class="buy" wx:elif="{{item.type == 1||item.type == 2||item.type==3||item.type==4}}" data-date='{{data}}'>购买</i-button> | |||||
<i-button class="buy" wx:if="{{item.salePriceStr==0}}" data-date='{{data}}'>领取</i-button> | |||||
<i-button class="buy" wx:elif="{{item.salePriceStr!=0}}" data-date='{{data}}'>购买</i-button> | |||||
</view> | </view> | ||||
<view class="coupons1-border"></view> | <view class="coupons1-border"></view> | ||||
</view> | </view> | ||||
</navigator> | </navigator> | ||||
<view class="loading" hidden="{{!searchLoading}}">正在载入更多...</view> | |||||
<view class="loading complete" hidden="{{!searchLoadingComplete}}">已加载全部</view> | |||||
</view> | </view> |
@@ -113,11 +113,11 @@ Page({ | |||||
gotodetail: function(e) { | gotodetail: function(e) { | ||||
console.log(e); | console.log(e); | ||||
console.log("姐姐在测试"); | console.log("姐姐在测试"); | ||||
console.log(e.currentTarget.dataset.couponChannelId); | |||||
console.log(e.currentTarget.dataset.couponchannelid); | |||||
console.log("couponChannelId"); | console.log("couponChannelId"); | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: `/pages/coupon/detail/index?couponChannelId=${ | url: `/pages/coupon/detail/index?couponChannelId=${ | ||||
e.currentTarget.dataset.id | |||||
e.currentTarget.dataset.couponchannelid | |||||
}&couponId=${e.currentTarget.dataset.couponId}`, | }&couponId=${e.currentTarget.dataset.couponId}`, | ||||
success: function(res) { | success: function(res) { | ||||
// success | // success | ||||
@@ -1,6 +1,6 @@ | |||||
<!-- 限时抢购 查看更多对应的页面 --> | <!-- 限时抢购 查看更多对应的页面 --> | ||||
<view class='flashSale'> | <view class='flashSale'> | ||||
<view wx:for="{{list}}" class='flashSaleItemWrap' data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}" bindtap="gotodetail" | |||||
<view wx:for="{{list}}" class='flashSaleItemWrap' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap="gotodetail" | |||||
wx:key="index"> | wx:key="index"> | ||||
<view class='flashSaleItem'> | <view class='flashSaleItem'> | ||||
<view class='flashSaleItemTop'> | <view class='flashSaleItemTop'> | ||||
@@ -22,7 +22,8 @@ | |||||
<view class='flashSaleItemBottomTop'><text class='remainingTime'>剩余时间:</text><text class='realRemainingTime'>{{day}}天 {{hour}}小时{{minute}}分钟</text></view> | <view class='flashSaleItemBottomTop'><text class='remainingTime'>剩余时间:</text><text class='realRemainingTime'>{{day}}天 {{hour}}小时{{minute}}分钟</text></view> | ||||
<view class='flashSaleItemBottomBottm'> | <view class='flashSaleItemBottomBottm'> | ||||
<view class="view1"><text class="remainingNumber">剩余件数:</text><text class='realnumber'>{{item.remainInventory}}件</text></view> | <view class="view1"><text class="remainingNumber">剩余件数:</text><text class='realnumber'>{{item.remainInventory}}件</text></view> | ||||
<view class='buy'>购买</view> | |||||
<view class='buy' wx:if="{{item.priceStr!=0}}">购买</view> | |||||
<view class='buy' wx:if="{{item.priceStr!=0}}">领取</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||