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.

83 lines
3.7 KiB

  1. <view wx:if="{{showPage}}">
  2. <!-- 券的详情页面 -->
  3. <view class='coupons'>
  4. <view class="coupons-body">
  5. <view class='banner'>
  6. <image src='{{data.coverImg}}'></image>
  7. </view>
  8. <view class='coupons_info' style='position:relative;z-index:9'>
  9. <view class='fenxiang'>
  10. <image class="fenxiang" src='./../../../assets/img/fenxiang.png' mode="widthFix"></image>
  11. <button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button>
  12. </view>
  13. <view>
  14. <view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined&&data.type!=5}}">
  15. <view style='text-align:center;display:inline-block;'>
  16. <image class='clock' src='./../../../assets/img/clock.png' mode='widthFix'></image>
  17. <text class="qiang">距结束还剩 :</text>
  18. </view>
  19. <view wx:if="{{clock=='已经截止'||data.remainInventory==0||data.status==1}}" class='times'>
  20. <text>{{day}}</text>天
  21. <text>{{hour}}</text>:
  22. <text>{{min}}</text>:
  23. <text>{{sec}}</text>
  24. </view>
  25. <view wx:if="{{clock!='已经截止'&&data.remainInventory!=0}}" class='times'>
  26. <text>{{day}}</text>天
  27. <text>{{hour}}</text>:
  28. <text>{{min}}</text>:
  29. <text>{{sec}}</text>
  30. </view>
  31. </view>
  32. <text class='title'>{{data.title}}</text>
  33. <text class="subTitle">{{data.subTitle}}</text>
  34. <view class='salePriceStr clearfix'>
  35. <view class="fl">售价:
  36. <text class="pri01">{{data.salePriceStr}}</text>
  37. <text class="yuan">元</text>
  38. <text class='throgh' wx:if="{{data.unit==0}}">{{data.priceStr}}元</text>
  39. <text wx:if="{{data.unit==1}}">{{data.priceStr}}小时</text>
  40. </view>
  41. <text class="restNum fr">剩余<text>{{data.remainInventory}}件</text></text>
  42. </view>
  43. <view class='rest' wx:if="{{data.validType==2}}">有效期:自领取之日起
  44. <text class='time'>{{validDays}}</text>天内有效</view>
  45. <view class='rest' wx:if="{{data.validType==1}}">有效期:
  46. <text class='time'>{{validStartDate}}至{{validEndDate}}</text>
  47. </view>
  48. <view class='rest' wx:if="{{data.type==5}}">
  49. <text class='time'>当次有效</text>
  50. </view>
  51. <view class='rest' wx:if="{{data.type==1}}">
  52. <text class='txt01'>使用条件:</text>
  53. <text class='time'>满{{data.usePriceStr}}元可用</text>
  54. </view>
  55. <view class='rest'>
  56. <text class='txt01'>限购条件:</text>
  57. <text class='time'>每人{{data.useLimitQuantity}}张</text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class='posi'>
  62. <view class='posi_logo' wx:for="{{data.merchantVoList}}" wx:key="index">
  63. <view>
  64. <image src='{{item.merchantImgUrl}}'></image>
  65. </view>
  66. <view>
  67. <text>{{item.merchantName}}</text>
  68. <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text>
  69. </view>
  70. <image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" />
  71. </view>
  72. </view>
  73. <view class='notes'>
  74. <view>
  75. <text>购买须知</text>
  76. </view>
  77. <view>
  78. <text><text class='spot'></text>{{data.remark}}</text>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>