myCoupon.wxml 2.3 KB

<div class="ruleregister" wx:if="{{ruleshow}}" bindtap="hideruleshow">
    <div class="ruleregisterwrap">
      <view class='ruletitle'>使用规则</view>
          <view class="ruleitem" wx:for="{{rulecontent}}" wx:key="">{{index+1}}、{{item}}</view>
    </div>
</div>

<!-- 我的优惠卷页面 -->
<view class='warp_head'>
  <view class="warp_name {{currTab==0?'active':''}}" data-current="0" bindtap='clickTab'><text></text>未使用</view>
  <view class="warp_name {{currTab==1?'active':''}}" data-current="1" bindtap='clickTab'><text></text>已使用</view>
  <view class="warp_name {{currTab==2?'active':''}}" data-current="2" bindtap='clickTab'><text></text>已过期</view>
</view>
<!-- begin:未使用 -->
<view wx:if="{{currTab==0}}">


  <view class="nodata" wx:if="{{couponlist.length==0}}">这里空空如也,去别的地方逛逛吧</view>

  <block wx:else>
  <view class='coupon_box' wx:for="{{couponlist}}" wx:key='' >
    <view class='coupon_pic'><image src='http://bronet.ibaby88.cn/eicon09@2x.png'></image></view>
    <view class='coupon_txt'>{{item.title}}</view>
    <view class='coupon_date'wx:if="{{item.over_time!=99999999999}}">有效期:{{item.over_time}}</view>

    <view class="rule" data-logid="{{item.logId}}" bindtap="userule">使用规则>></view>
  </view>
  </block>
</view>
<!-- begin:已使用 -->
<view wx:if="{{currTab==1}}">

 <view class="nodata" wx:if="{{couponlist.length==0}}">这里空空如也,去别的地方逛逛吧</view>

 <block wx:else>
  <view class='coupon_box' wx:for="{{couponlist}}" wx:key=''>
    <view class='coupon_pic'><image src='http://bronet.ibaby88.cn/yishyong@2x.png'></image></view>
    <view class='coupon_txt'>{{item.title}}</view>
    <view class='coupon_date' wx:if="{{item.over_time!=99999999999}}">有效期:{{item.over_time}}</view>
  </view>

  </block>
</view>
<!-- begin:已过期 -->
<view wx:if="{{currTab==2}}">
 <view class="nodata" wx:if="{{couponlist.length==0}}">这里空空如也,去别的地方逛逛吧</view>
  <block wx:else>
  <view class='coupon_box' wx:for="{{couponlist}}" wx:key=''>
    <view class='coupon_pic'><image src='http://bronet.ibaby88.cn/eicon11@2x.png'></image></view>
    <view class='coupon_txt'>{{item.title}}</view>
    <view class='coupon_date' wx:if="{{item.over_time!=99999999999}}">有效期:{{item.over_time}}</view>
  </view>
  </block>

</view>