coupon-detail.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <view class='page'>
  2. <include src='/components/common/common'></include>
  3. <include src='/components/header/header'></include>
  4. <view class='body after-navber'>
  5. <block wx:if='{{ (!(list) || list.length == 0) }}'>
  6. <view class='no-content'>暂无记录</view>
  7. </block>
  8. <block wx:else>
  9. <view style='padding:24rpx 24rpx 0 24rpx;'>
  10. <view class='flex-col flex-y-center detail-head'>
  11. <view style='color:#666666;'>{{list.name}}</view>
  12. <view style='color:#666666;'>{{list.coupon.name}}</view>
  13. <view style='color:#353535;font-weight:bold;font-size:25pt;padding:10rpx 0'>¥{{list.sub_price}}</view>
  14. <view style='color:#353535;fs-b'>{{list.min_price_desc}}</view>
  15. <block wx:if='{{list.is_receive == 0}}'>
  16. <view bindtap='receive' class='flex-x-center detail-bu' data-index='{{list.id}}' style='background:#ff4544;color:#ffffff;'>立即领取</view>
  17. </block>
  18. <block wx:if='{{list.is_receive == 1}}'>
  19. <view class='flex-x-center detail-bu' style='border:1rpx solid #ff4544;background:#ffffff;color:#ff4544;'>已领取</view>
  20. </block>
  21. <block wx:if='{{list.status == 0}}'>
  22. <view class='flex-x-center detail-bu'>未使用</view>
  23. </block>
  24. <block wx:if='{{list.status == 1}}'>
  25. <view class='flex-x-center detail-bu'>已使用</view>
  26. </block>
  27. <block wx:if='{{list.status == 2}}'>
  28. <view class='flex-x-center detail-bu'>已过期</view>
  29. </block>
  30. </view>
  31. <image src='/images/coupon-details.png' style='display:block;height:48rpx;width:100%;'></image>
  32. <view class='detail-prize'>
  33. <view class='detail-name'>有效期</view>
  34. <view class='detail-manual'>
  35. <block wx:if='{{list.expire_type == 2}}'><text>{{list.begin_time}} ~ {{list.end_time}}</text></block>
  36. <block wx:if='{{list.expire_type == 1}}'><text>领取{{list.expire_day}}天内有效</text></block>
  37. </view>
  38. <view class='detail-name'>使用规则</view>
  39. <view class='detail-manual'>
  40. <block wx:if='{{ (list.appoint_type == 1 && (list.cat.length == 0 || list.goods == NULL) ) }}'><text class='user_coupon_font'>全场通用</text></block>
  41. <block wx:if='{{ (list.appoint_type == 2 && (list.goods.length == 0 || list.goods == NULL) ) }}'><text class='user_coupon_font'>全场通用</text></block>
  42. <block wx:if='{{list.appoint_type == NULL}}'><text class='user_coupon_font'>全场通用</text></block>
  43. <block wx:if='{{ (list.appoint_type == 1 && list.cat.length > 0) }}'>
  44. <view class='user_coupon_font' style='overflow: hidden; white-space: nowrap; text-overflow: ellipsis;width:87%;'>
  45. 仅限<block wx:for='{{list.cat}}' wx:for-item='cat' wx:for-index='index' wx:key='id'><text>{{cat.name}}、</text></block>产品使用
  46. </view>
  47. </block>
  48. <block wx:if='{{ (list.appoint_type == 2 && list.goods.length > 0) }}'>
  49. <view bindtap='goodsList' class='user_coupon_font' data-goods_id='{{list.goods}}' data-id='{{list.id}}' style='height:50rpx;'>指定商品使用
  50. <text class="coupon_font_color">点进去查看指定商品</text></view>
  51. </block>
  52. </view>
  53. <block wx:if='{{list.rule}}'>
  54. <view class='detail-name'>使用说明</view>
  55. <view class='detail-manual'>{{list.rule}}</view>
  56. </block>
  57. </view>
  58. </view>
  59. </block>
  60. </view>
  61. <include src='/components/get-coupon/get-coupon.wxml'></include>
  62. <include src='/components/footer/footer'></include>
  63. </view>