C端小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

31 行
1.5 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 class="coupons-info-name subtitle ">剩余库存: {{data.remainInventory}}</view>
  17. </view>
  18. <view class="coupons-btn">
  19. <!-- 优惠券价格 -->
  20. <view class="coupons-info-price">
  21. <text class="coupons-info-price-p">¥{{data.salePriceStr}}</text>
  22. <text class="coupons-info-price-o">¥{{data.priceStr}}</text>
  23. </view>
  24. <i-button i-class="coupons-btn-gm" wx:if="{{data.type==4}}" data-date='{{data}}'>领取</i-button>
  25. <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>
  26. </view>
  27. <view class="coupons-border"></view>
  28. </view>
  29. </navigator>
  30. <view class="loading" hidden="{{!searchLoading}}">正在载入更多...</view>
  31. <view class="loading complete" hidden="{{!searchLoadingComplete}}">已加载全部</view>