coupon.wxml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <view class="container">
  2. <scroll-view class="coupon-list" scroll-y="true" scroll-top="{{scrollTop}}">
  3. <view class="item" wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" bindtap="getCoupon" data-index="{{item.id}}">
  4. <view class="tag">{{item.tag}}</view>
  5. <view class="content">
  6. <view class="left">
  7. <view class="discount">{{item.discount}}元</view>
  8. <view class="min"> 满{{item.min}}元使用</view>
  9. </view>
  10. <view class="right">
  11. <view class="name">{{item.name}}</view>
  12. <view class="time" wx:if="{{item.days != 0}}">有效期:{{item.days}}天</view>
  13. <view class="time" wx:else> 有效期:{{item.startTime}} - {{item.endTime}}</view>
  14. </view>
  15. </view>
  16. <view class="condition">
  17. <text class="txt">{{item.desc}}</text>
  18. <image src="{{item.pic}}" class="icon"></image>
  19. </view>
  20. </view>
  21. <view class="page" wx:if="{{showPage}}">
  22. <view class="prev {{ page <= 1 ? 'disabled' : ''}}" bindtap="prevPage">上一页</view>
  23. <view class="next {{ (count / limit) < page ? 'disabled' : ''}}" bindtap="nextPage">下一页</view>
  24. </view>
  25. </scroll-view>
  26. </view>