index.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--
  2. - Copyright (C) 2018-2019
  3. - All rights reserved, Designed By www.joolun.com
  4. - 注意:
  5. - 本软件为www.joolun.com开发研制,项目使用请保留此说明
  6. -->
  7. <view class="flex bg-white radius text-white main" wx:if="{{couponUserInfo.type == '1'}}">
  8. <view class="flex-twice padding-sm radius t1-r">
  9. <view class="flex">
  10. <view class="flex-sub text-xxl text-bold text-price overflow-1">{{couponUserInfo.reduceAmount}}</view>
  11. <view class="flex-twice">
  12. <view class="text-sm overflow-1">{{couponUserInfo.name}}</view>
  13. <view class="text-xs overflow-1">订单满{{couponUserInfo.premiseAmount}}元可使用</view>
  14. <view class="text-xs">
  15. {{couponUserInfo.suitType == '1' ? '全部商品可用' : couponUserInfo.suitType == '2' ? '指定商品可用' : couponUserInfo.suitType == '3' ? '指定商品不可用' : ''}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="text-xs">有效期至{{couponUserInfo.validEndTime}}</view>
  20. </view>
  21. <view class="flex-sub padding-sm radius text-center t1-l">
  22. <view class="padding-sm">代金券</view>
  23. <navigator hover-class='none' url='/pages/goods/goods-list/index?couponUserId={{couponUserInfo.id}}' class="cu-btn bg-white sm" wx:if="{{toUse && couponUserInfo.status == '0'}}">前去使用</navigator>
  24. <view class="padding-xs" wx:if="{{couponUserInfo.status == '1'}}">已使用</view>
  25. <view class="padding-xs" wx:if="{{couponUserInfo.status == '2'}}">已过期</view>
  26. </view>
  27. </view>
  28. <view class="flex bg-white radius text-white main" wx:if="{{couponUserInfo.type == '2'}}">
  29. <view class="flex-twice padding-sm radius t2-r">
  30. <view class="flex">
  31. <view class="flex-sub text-xxl text-bold overflow-1">{{couponUserInfo.discount}}<text class="text-sm">折</text></view>
  32. <view class="flex-twice">
  33. <view class="text-sm overflow-1">{{couponUserInfo.name}}</view>
  34. <view class="text-xs overflow-1">订单满{{couponUserInfo.premiseAmount}}元可使用</view>
  35. <view class="text-xs">
  36. {{couponUserInfo.suitType == '1' ? '全部商品可用' : couponUserInfo.suitType == '2' ? '指定商品可用' : couponUserInfo.suitType == '3' ? '指定商品不可用' : ''}}
  37. </view>
  38. </view>
  39. </view>
  40. <view class="text-xs">有效期至{{couponUserInfo.validEndTime}}</view>
  41. </view>
  42. <view class="flex-sub padding-sm radius text-center t2-l">
  43. <view class="padding-sm">折扣券</view>
  44. <navigator hover-class='none' url='/pages/goods/goods-list/index?couponUserId={{couponUserInfo.id}}' class="cu-btn bg-white sm" wx:if="{{toUse && couponUserInfo.status == '0'}}">前去使用</navigator>
  45. <view class="padding-xs" wx:if="{{couponUserInfo.status == '1'}}">已使用</view>
  46. <view class="padding-xs" wx:if="{{couponUserInfo.status == '2'}}">已过期</view>
  47. </view>
  48. </view>