coupon.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!--pages/order/coupon/coupon.wxml-->
  2. <view class="listBoxs" >
  3. <!-- totalprice<item.full?'opct':'' -->
  4. <view class="itemBoxs" wx:for="{{shopping}}" wx:key="{{index}}">
  5. <view class="top ">
  6. <view class="le flex ju-b">
  7. <view class="tit"><span style="font-size: 24rpx;color: #ff9679;">[{{item.type==1?'免运费券':item.type==2?'满减券':item.type==3?'免单券':''}}]</span>{{item.title}}</view>
  8. <view class="num">
  9. <text class="logo">¥</text>
  10. <text>{{item.money}}</text>
  11. </view>
  12. </view>
  13. <view class="lr flex ju-b">
  14. <view class="time">{{item.use_end_time}}到期</view>
  15. <view class="old">
  16. 满{{item.full}}可用
  17. </view>
  18. </view>
  19. </view>
  20. <view class="line"></view>
  21. <view class="footer flex ju-b">
  22. <view class="le " bindtap="change">
  23. <collapse list="{{[item.desc||'无']}}"></collapse>
  24. </view>
  25. <view class="lr" wx:if="{{totalprice>=item.full&&item.type==2}}" bindtap="gob" data-item="{{item}}">使用</view>
  26. <view class="lr" wx:elif="{{freight>0&&item.type==1}}" bindtap="gob" data-item="{{item}}">使用</view>
  27. <view style="font-size: 24rpx;color: #999;" wx:else>不可使用</view>
  28. </view>
  29. </view>
  30. </view>
  31. <van-empty
  32. wx:if="{{shopping.length == 0}}"
  33. class="custom-image"
  34. image="/image/coupon/no-coupons.png"
  35. description="暂无优惠券"
  36. />
  37. <!-- <view class="footerTips flex ju-b">
  38. <view class="le flex">
  39. <text>优惠券使用说明</text>
  40. <van-icon name="arrow" color="#A5A8AD" size="20rpx" />
  41. </view>
  42. <view class="line"></view>
  43. <view class="lr flex">
  44. <text>查看过期优惠券</text>
  45. <van-icon name="arrow" color="#A5A8AD" size="20rpx" />
  46. </view>
  47. </view> -->
  48. <toast id='toast' icon="/image/icon/tips.png">
  49. </toast>