C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 line
1.4 KiB

  1. <navigator url="/pages/coupon/detail/index?id={{data.id}}">
  2. <!-- 首页优惠券列表页面 -->
  3. <view class="coupons">
  4. <view class="coupons-img">
  5. <image src="{{data.coverImg}}"></image>
  6. </view>
  7. <view class="coupons-info">
  8. <view class="coupons-info-name">{{data.title}}</view>
  9. <view class="coupons-info-name subtitle ">{{data.subTitle}}</view>
  10. <view class="coupons-info-manjian" style="margin-top:10rpx;" wx:if="{{data.type == 1}}">
  11. 满¥{{data.usePriceStr}}可用
  12. </view>
  13. <view class="coupons-info-manjian" wx:elif="{{data.type == 2||data.type == 3||data.type==4||data.type==5}}">
  14. 仅限本店使用
  15. </view>
  16. </view>
  17. <view class="coupons-btn">
  18. <!-- 优惠券价格 -->
  19. <view class="coupons-info-price">
  20. <text class="coupons-info-price-p">¥{{data.salePrice/100}}</text>
  21. <text class="coupons-info-price-o">¥{{data.price/100}}</text>
  22. </view>
  23. <i-button i-class="coupons-btn-gm" wx:if="{{data.type==4}}" data-date='{{data}}'>领取</i-button>
  24. <i-button i-class="coupons-btn-gm" wx:elif="{{data.type == 1||data.type == 2||data.type==3||data.type==4}}" data-date='{{data}}'>购买</i-button>
  25. </view>
  26. <view class="coupons-border"></view>
  27. </view>
  28. </navigator>
  29. <view class="loading" hidden="{{!searchLoading}}">正在载入更多...</view>
  30. <view class="loading complete" hidden="{{!searchLoadingComplete}}">已加载全部</view>