Browse Source

[banner详情修改][修改]:banner详情修改

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

+ 3
- 5
pages/bannerdetail/index.wxml View File

@@ -37,7 +37,7 @@
</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-img">
@@ -62,12 +62,10 @@
<view class="coupons1-info-name subtitle sy">剩余: {{item.remainInventory}}</view>
<!-- <text class="coupons-info-price-o"><text class='i'>¥</text>{{item.priceStr}}</text> -->
</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 class="coupons1-border"></view>
</view>
</navigator>
<view class="loading" hidden="{{!searchLoading}}">正在载入更多...</view>
<view class="loading complete" hidden="{{!searchLoadingComplete}}">已加载全部</view>
</view>

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

@@ -113,11 +113,11 @@ Page({
gotodetail: function(e) {
console.log(e);
console.log("姐姐在测试");
console.log(e.currentTarget.dataset.couponChannelId);
console.log(e.currentTarget.dataset.couponchannelid);
console.log("couponChannelId");
wx.navigateTo({
url: `/pages/coupon/detail/index?couponChannelId=${
e.currentTarget.dataset.id
e.currentTarget.dataset.couponchannelid
}&couponId=${e.currentTarget.dataset.couponId}`,
success: function(res) {
// success


+ 3
- 2
pages/rushToBuy/index.wxml View File

@@ -1,6 +1,6 @@
<!-- 限时抢购 查看更多对应的页面 -->
<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">
<view class='flashSaleItem'>
<view class='flashSaleItemTop'>
@@ -22,7 +22,8 @@
<view class='flashSaleItemBottomTop'><text class='remainingTime'>剩余时间:</text><text class='realRemainingTime'>{{day}}天 {{hour}}小时{{minute}}分钟</text></view>
<view class='flashSaleItemBottomBottm'>
<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>


Loading…
Cancel
Save