index.wxml 1.7 KB

12345678910111213141516171819202122232425262728
  1. <view class='coupon-list-window {{coupon.coupon==true?"on":""}}'>
  2. <view class='title'>优惠券<text class='iconfont icon-guanbi' bindtap='close'></text></view>
  3. <view class='coupon-list' wx:if="{{coupon.list.length}}">
  4. <view class='item acea-row row-center-wrapper' wx:for="{{coupon.list}}" bindtap='getCouponUser' data-index='{{index}}' data-id="{{item.id}}" wx:key='index'>
  5. <view class='money {{item.is_use?"moneyGray":""}} acea-row row-column row-center-wrapper'>
  6. <view>¥<text class='num'>{{item.coupon_price}}</text></view>
  7. <view class="pic-num">满{{item.use_min_price}}元可用</view>
  8. </view>
  9. <view class='text'>
  10. <view class='condition line1'>
  11. <span class='line-title {{item.is_use?"gray":""}}' wx:if="{{item.type===0}}">通用劵</span>
  12. <span class='line-title {{item.is_use?"gray":""}}' wx:elif="{{item.type===1}}">品类券</span>
  13. <span class='line-title {{item.is_use?"gray":""}}' wx:else>商品券</span>
  14. <span>{{item.title}}</span>
  15. </view>
  16. <view class='data acea-row row-between-wrapper'>
  17. <view>{{item.start_time ? item.start_time+'-' : ''}}{{item.end_time}}</view>
  18. <view class='bnt gray' wx:if="{{item.is_use}}">{{item.use_title || '已领取'}}</view>
  19. <view class='bnt bg-color' wx:else>{{coupon.statusTile || '立即领取'}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 无优惠券 -->
  25. <view class='pictrue' wx:else><image src='/images/noCoupon.png'></image></view>
  26. </view>
  27. <view class='mask' catchtouchmove="true" hidden='{{coupon.coupon==false}}' bindtap='close'></view>