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.

51 lines
2.0 KiB

  1. <!-- 券的详情页面 -->
  2. <view class='coupons'>
  3. <view class="coupons-body">
  4. <view class='banner'>
  5. <image src='{{data.coverImg}}'></image>
  6. </view>
  7. <view class='coupons_info'>
  8. <view>
  9. <text>{{data.title}}<text>限购{{data.useLimitQuantity}}件</text></text>
  10. <text wx:if="{{data.endTime!=undefined&&data.endTime>=0&&data.type!=5}}">剩余时间:<text>{{endtime}}</text></text>
  11. <text wx:if="{{data.endTime!=undefined&&0>=data.endTime&&data.type!=5}}">剩余时间:<text>即将到期</text></text>
  12. <text wx:if="{{data.type==5}}"><text>当次有效</text></text>
  13. <text>剩余件数:<text>{{data.remainInventory}}件</text></text>
  14. </view>
  15. <view>
  16. <text>¥{{data.salePriceStr}}</text>
  17. <text>¥{{data.priceStr}}</text>
  18. </view>
  19. </view>
  20. <view class='posi'>
  21. <view class='posi_logo'>
  22. <view>
  23. <image src='{{data.merChantImgUrl}}'></image>
  24. </view>
  25. <view>
  26. <text>{{data.merchantName}}</text>
  27. <text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text>
  28. </view>
  29. <image bindtap='phone' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" />
  30. </view>
  31. <!-- <view>
  32. <text>更多适用门店</text>
  33. <text class='iconfont icon-right'></text>
  34. </view> -->
  35. </view>
  36. <view class='notes'>
  37. <view>
  38. <text>购买须知</text>
  39. </view>
  40. <view>
  41. <text><text class='spot'></text>{{data.remark}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="buy-view app-border-top">
  46. <button bindtap='orderFunc' class='buy' wx:if="{{data.salePriceStr!=0&&data.remainInventory!=0}}">立即支付</button>
  47. <button bindtap='orderFunc' class='buy' wx:elif="{{data.salePriceStr==0&&data.remainInventory!=0}}">免费领取</button>
  48. <button class='buy' wx:elif="{{data.remainInventory==0}}" style="background:#999;color: #fff;">已售罄</button>
  49. </view>
  50. </view>