<!--index.wxml-->
<view class="container">

  <image class="buyBg" src="../images/buyBg.jpg"></image>
  <image bindtap="showRule" class="ruleBtn" src="../images/rule.png"></image>
  <!-- <swiper duration="500" next-margin="70rpx">
    <block wx:for="{{dataList}}" wx:key="*this">
      <swiper-item data-index="{{item.coupon_sell_id}}" bindtap="skipPage"> -->
        <view class="botCont" data-index="{{dataList.coupon_sell_id}}"  bindtap="skipPage">
          <view class="imgView">
            <image src="{{dataList.coupon_img_small}}"></image>
          </view>
          <view class="textView">
            <text class="nameText">{{dataList.coupon_name}}</text>
            <text class="timeText">{{dataList.coupon_condition_desc}}</text>
            <text class="timeText">(有效期：{{dataList.duration}}）</text>
          </view>
          <view class="buyView">立即购买</view>
        </view>
      <!-- </swiper-item>
    </block>
  </swiper> -->
  
  <view class="maskAll" wx:if="{{showMask}}">
    <view class="maskCont">
      <image class="ruleMask" src="../images/ruleMask.png"></image>
      <image bindtap="hiddenRule" class="hiddenIcon" src="../images/hiddenIcon.png"></image>
    </view>
  </view>
</view>
