<!-- banner活动详情页面 -->
<view class='coupons'>
  <view class="coupons-body">
    <view class='banner'>
      <image src='{{data.coverImg}}'></image>
    </view>
    <!-- <image class="orbg" src='./../../assets/img/orbg.png' mode="widthFix"></image> -->
    <view class='act'  bindtap='gotoactdetail'>
      <text class='txt001'>{{data.title}}</text>
      <text class='txt002'>{{data.subTitle}}</text>
      <view class="proct">
        <text>活动说明</text>
        <text>{{data.detail}}</text>
        <image class="jian" src='../../assets/img/jian.png' mode="widthFix"></image>        
      </view>
    </view>
    <view class='notes' style='display:none;'>
      <view>
        <text>活动详情</text>
      </view>
      <view>
        <text><text class='spot'></text>{{data.detail}}</text>
      </view>
    </view>
  </view>
  <!-- <view class="buy-view app-border-top">
    <button bindtap='orderFunc' class='buy'>立即购买</button>
  </view> -->

  <view class='contain clearfix'>
    <!-- 优惠券 -->
    <navigator wx:for="{{data.coupons}}" wx:key="{{index}}" url="/pages/coupon/detail/index?couponChannelId={{item.id}}&couponId={{item.couponId}}">
      <!-- 首页优惠券列表页面 -->
      <view class="coupons1">
        <view class="coupons1-img">
          <image src="{{item.coverImg}}"></image>
        </view>
        <view class="coupons1-info">
          <view class="coupons1-info-name tit">{{item.title}}</view>
          <view class="coupons1-info-name subtitle">{{item.subTitle}}</view>
          <view class="coupons1-info-price-p">
            <text class="i">￥</text>{{item.salePriceStr}}
            <view class="coupons-info-manjian" style="margin-top:10rpx;" wx:if="{{data.type == 1}}">
              满￥{{item.usePriceStr}}可用
            </view>
            <view class="coupons-info-manjian" wx:elif="{{data.type == 2||data.type == 3||data.type==4||data.type==5}}">
              仅限本店使用
            </view>
          </view>
        </view>
            <!-- <view class="coupons1-info-name subtitle sy">剩余{{item.remainInventory}}</view> -->
        
        <view class="coupons1-btn">
          <!-- 优惠券价格 -->
          <i-button class="buy" hover-class='active'  wx:if="{{item.salePriceStr==0}}" data-date='{{data}}'>免费领</i-button>
          <i-button class="buy" hover-class='active' wx:elif="{{item.salePriceStr!=0}}" data-date='{{data}}'>马上购</i-button>
        </view>
        <!-- <view class="coupons1-border"></view> -->
      </view>
    </navigator>
  </view>
</view>