C端小程序
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

131 wiersze
6.8 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/images/share.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='{{clockUrl}}' 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>{{hour}}</text>:
  21. <text>{{min}}</text>:
  22. <text>{{sec}}</text>
  23. </view>
  24. <view wx:if="{{clock!='已经截止'&&data.remainInventory!=0}}" class='times'>
  25. <text>{{hour}}</text>:
  26. <text>{{min}}</text>:
  27. <text>{{sec}}</text>
  28. </view>
  29. </view>
  30. <text class='title'>{{data.title}}<text class="elecard" wx:if="{{data.type==100}}">电子卡</text></text>
  31. <text class="subTitle">{{data.subTitle}}</text>
  32. <view class='salePriceStr clearfix'>
  33. <view class="fl" wx:if="{{data.type!=8}}">售价:
  34. <text class="pri01">{{data.salePriceStr}}</text>
  35. <text class="yuan">元</text>
  36. <text class='throgh' wx:if="{{data.unit==0}}">{{data.priceStr}}元</text>
  37. <text wx:if="{{data.unit==1}}">{{data.priceStr}}小时</text>
  38. </view>
  39. <view class="fl" wx:if="{{data.type==8}}">可砍至
  40. <text class="pri01">{{data.salePriceStr}}</text>元
  41. <text class='throgh'>{{data.priceStr}}元</text>
  42. </view>
  43. <text class="restNum fr">剩余<text>{{data.remainInventory}}件</text></text>
  44. </view>
  45. <view class='rest' wx:if="{{data.validType==2}}">有效期:自领取之日起
  46. <text class='time'>{{validDays}}</text>天内有效</view>
  47. <view class='rest' wx:if="{{data.validType==1}}">有效期:
  48. <text class='time'>{{validStartDate}}至{{validEndDate}}</text>
  49. </view>
  50. <view class='rest' wx:if="{{data.type==5}}">
  51. <text class='time'>当次有效</text>
  52. </view>
  53. <view class='rest' wx:if="{{data.type==1}}">
  54. <text class='txt01'>使用条件:</text>
  55. <text class='time'>满{{data.usePriceStr}}元可用</text>
  56. </view>
  57. <view class='rest'>
  58. <text class='txt01'>限购条件:</text>
  59. <text class='time'>每人{{data.useLimitQuantity}}张</text>
  60. </view>
  61. </view>
  62. </view>
  63. <view class='posi'>
  64. <view class='applyshop'>适用门店</view>
  65. <view class='posi_logo' wx:for="{{data.merchantVoList}}" wx:key="index">
  66. <view>
  67. <image src='{{item.merchantImgUrl}}'></image>
  68. </view>
  69. <view>
  70. <text>{{item.merchantName}}</text>
  71. <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text>
  72. </view>
  73. <image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" />
  74. </view>
  75. </view>
  76. <view class='notes'>
  77. <view>
  78. <text>购买须知</text>
  79. </view>
  80. <view>
  81. <text><text class='spot'></text>{{data.remark}}</text>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="buy-view app-border-top" style="position:fixed;z-index:{{zIndex}};">
  86. <button class='goback' bindtap='goback'><image src='./../../../assets/images/home.png' mode="widthFix"></image></button>
  87. <button bindtap='gotopay' disabled='{{showbutton}}' hover-class='active' class='buy' wx:if="{{data.salePriceStr!=0&&data.remainInventory!=0&&endtime!='活动已结束'}}">
  88. <text class='txt'>{{data.salePriceStr}}元</text>马上购买</button>
  89. <button bindtap='gotopay' disabled='{{showbutton}}' class='buy' wx:if="{{data.salePriceStr==0&&data.remainInventory!=0&&endtime!='活动已结束'}}">免费领取</button>
  90. <button class='buy' disabled='true' wx:if="{{data.remainInventory==0&&endtime!='活动已结束'||data.remainInventory==0&&data.type==8}}">已售罄</button>
  91. <button class='buy' disabled='true' wx:if="{{endtime=='活动已结束'}}">活动已结束</button>
  92. <button class='buy' disabled='true' wx:if="{{total_micro_second<=0}}">活动已结束</button>
  93. </view>
  94. </view>
  95. <view wx:if="{{data.remainInventory!=0&&data.type==8}}" class="btns clearfix" hover-class="none" hover-stop-propagation="false">
  96. <button class="fl" bindtap='gotopay' data-discount='discount1' disabled='{{showbutton}}'>
  97. <text>{{data.priceStr}}元</text>
  98. <text>立即购买</text>
  99. </button>
  100. <button class="fr" bindtap='inviteFriend' disabled='{{showbutton1}}'>
  101. 发起砍价
  102. </button>
  103. </view>
  104. <!-- 问卷调查 -->
  105. <view class="b1" style="opacity:{{opacity}};display: {{display}};" animation="{{queueData}}">
  106. <view id='con' class='con'>
  107. <image class='close' mode='widthFix' src="{{closedUrl}}" bindtap="closeQuestion"></image>
  108. <image class='ques_gou' mode='widthFix' src="{{quesGouUrl}}"></image>
  109. <image class='image' src="{{headbgUrl}}" mode='widthFix'></image>
  110. <image class='img image' src="{{quesBgUrl}}" mode='widthFix'></image>
  111. <view class='question'>
  112. <text class='titles'>{{questionnaire.title}}</text>
  113. <!-- 单选 -->
  114. <radio-group class="radio-group" wx:if="{{questionnaire.flag=='single'}}" data-flags="single" bindchange="formSubmit" data-questionId="{{questionId}}">
  115. <label class="radios" wx:for="{{questionnaire.answers}}" wx:key="{{index}}">
  116. <radio value="{{item.id}}" checked="{{item.checked}}" />{{item.name}}
  117. </label>
  118. </radio-group>
  119. <!-- 多选 -->
  120. <checkbox-group bindchange="checkboxChange" wx:if="{{questionnaire.flag=='multi'}}" bindchange="checkboxChange">
  121. <label class="radio ques" wx:for="{{questionnaire.answers}}" wx:key="index">
  122. <checkbox value="{{item.id}}" />{{item.name}}
  123. </label>
  124. </checkbox-group>
  125. <view class='ques btnss' wx:if="{{questionnaire.flag=='multi'}}" data-flags='multi' bindtap='formSubmit' data-questionId="{{questionId}}">确定</view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>