C端小程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

76 líneas
3.3 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 class='fenxiang'>
  9. <image class="fenxiang" src='./../../../assets/img/fenxiang.png' mode="widthFix"></image>
  10. <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>
  11. </view>
  12. <view>
  13. <text class='title'>{{data.title}}</text>
  14. <text class="subTitle">{{data.subTitle}}</text>
  15. <view class='salePriceStr clearfix'>
  16. <view class="fl">售价:
  17. <text class="pri01">{{data.salePriceStr}}</text>
  18. <text class="yuan">元</text>
  19. <text class='throgh'>{{data.priceStr}}元</text>
  20. </view>
  21. <text class="restNum fr">剩余<text>{{data.remainInventory}}件</text></text>
  22. </view>
  23. <view class='rest' wx:if="{{data.targetAd==2&&data.endTime!=undefined&&data.type!=5}}">
  24. <text class='txt01'>距结束:</text>
  25. <text class='time'>{{endtime}}</text>
  26. </view>
  27. <view class='rest' wx:if="{{data.validType==2}}">有效期:自领取之日起
  28. <text class='time'>{{validDays}}</text>天内有效</view>
  29. <view class='rest' wx:if="{{data.validType==1}}">有效期:
  30. <text class='time'>{{validStartDate}}至{{validEndDate}}</text>
  31. </view>
  32. <view class='rest' wx:if="{{data.type==5}}">
  33. <text class='time'>当次有效</text>
  34. </view>
  35. <view class='rest' wx:if="{{data.type==1}}">
  36. <text class='txt01'>使用条件:</text>
  37. <text class='time'>满{{data.usePriceStr}}元可用</text>
  38. </view>
  39. <view class='rest'>
  40. <text class='txt01'>限购条件:</text>
  41. <text class='time'>每人{{data.useLimitQuantity}}张</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view class='posi'>
  46. <view class='posi_logo'>
  47. <view>
  48. <image src='{{data.merChantImgUrl}}'></image>
  49. </view>
  50. <view>
  51. <text>{{data.merchantName}}</text>
  52. <text>{{data.addr}}{{data.buildingName}}{{data.floorName}}</text>
  53. </view>
  54. <image bindtap='phone' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" />
  55. </view>
  56. </view>
  57. <view class='notes'>
  58. <view>
  59. <text>购买须知</text>
  60. </view>
  61. <view>
  62. <text><text class='spot'></text>{{data.remark}}</text>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="buy-view app-border-top">
  67. <button bindtap='orderFunc' hover-class='active' class='buy' wx:if="{{data.salePriceStr!=0&&data.remainInventory!=0&&endtime!='活动已结束'}}">
  68. <text class='txt'>{{data.salePriceStr}}元</text>马上购买</button>
  69. <button bindtap='orderFunc' class='buy' wx:if="{{data.salePriceStr==0&&data.remainInventory!=0&&endtime!='活动已结束'}}">免费领取</button>
  70. <button class='buy' wx:if="{{data.remainInventory==0&&endtime!='活动已结束'}}" style="background:#999;color: #fff;">已售罄</button>
  71. <button class='buy' wx:if="{{endtime=='活动已结束'}}" style="background:#999;color: #fff;">活动已结束</button>
  72. </view>
  73. </view>