coupon.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view class="container">
  2. <!-- 顶部选项卡 -->
  3. <view class="swiper-tab dis-flex box-align-center flex-y-center">
  4. <view class="swiper-tab-item {{ dataType === 'not_use' ? 'on' : ''}}" data-current="not_use" bindtap="swichNav">未使用</view>
  5. <view class="swiper-tab-item {{ dataType === 'is_use' ? 'on' : ''}}" data-current="is_use" bindtap="swichNav">已使用</view>
  6. <view class="swiper-tab-item {{ dataType === 'is_expire' ? 'on' : ''}}" data-current="is_expire" bindtap="swichNav">已过期</view>
  7. </view>
  8. <scroll-view scroll-y="{{ true }}" style="height: {{swiperHeight}}px;">
  9. <view class="coupon-list" wx:if="{{ list.length }}">
  10. <view class="coupon-item" wx:for="{{ list }}" wx:key="this">
  11. <view class="item-wrapper color__{{ item.state.value ? item.color.text : 'gray' }}">
  12. <view class="coupon-type">{{ item.coupon_type.text }}</view>
  13. <view class="tip dis-flex flex-dir-column flex-x-center">
  14. <view wx:if="{{ item.coupon_type.value == 10 }}">
  15. <text class="f-30">¥</text>
  16. <text class="money">{{ item.reduce_price }}</text>
  17. </view>
  18. <text class="money" wx:if="{{ item.coupon_type.value == 20 }}">{{ item.discount }}折</text>
  19. <text class="pay-line">满{{ item.min_price }}元可用</text>
  20. </view>
  21. <view class="split-line"></view>
  22. <view class="content dis-flex flex-dir-column flex-x-between">
  23. <view class="title">{{ item.name }}</view>
  24. <view class="bottom dis-flex flex-y-center">
  25. <view class="time flex-box">
  26. <text class="f-24">{{ item.start_time.text }}~{{ item.end_time.text }}</text>
  27. </view>
  28. <view class="state">
  29. <text class="f-24">{{ item.state.text }}</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="yoshop-notcont" wx:elif="{{ notcont }}">
  37. <text class="iconfont icon-wushuju"></text>
  38. <text class="cont">亲,暂无优惠券哦</text>
  39. </view>
  40. </scroll-view>
  41. </view>