<!--index.wxml-->
<view class="container">
  <!-- <view class="userinfo">
    <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
    <block wx:else>
      <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
      <text class="userinfo-nickname">{{userInfo.nickName}}</text>
    </block>
  </view>
  <view class="usermotto">
    <text class="user-motto">{{motto}}</text>
  </view> -->

  <image class="buyBg" src="../images/buyBg.jpg" style="height:{{swiperHig}}"></image>
  <swiper duration="500" next-margin="70rpx">
    
    <block wx:for="{{content}}" wx:key="*this">
      <swiper-item bindtap="skipPage">
        <view class="botCont">
          <view class="imgView">
            <image src="{{item}}"></image>
          </view>
          <view class="textView">
            <text class="nameText">80抵100</text>
            <text class="timeText">优惠券每次限用一张，不可叠加</text>
            <text class="timeText">(有效期：2020.2.18-2020.12.31）</text>
          </view>
          <view class="buyView">立即购买</view>
        </view>
      </swiper-item>
    </block>
  </swiper>
  
</view>
