C端小程序
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

253 rindas
14 KiB

  1. <navbar back home text="{{barTitle}}" background='#fff'></navbar>
  2. <view wx:if="{{showPage}}">
  3. <view style="height:{{navigationBarHeight}} "></view>
  4. <!-- 券的详情页面 -->
  5. <view class='coupons'>
  6. <view class="coupons-body">
  7. <view wx:if="{{coverPicture.length>0}}" class="banner">
  8. <swiper class="index-slide swiper-box" bindchange="swiperChange" indicator-dots="true" circular="false" current="{{swiperCurrent}}">
  9. <block wx:for="{{coverPicture}}" wx:key="unique">
  10. <swiper-item>
  11. <image data-data="{{item}}" src="{{item}}" class="index-slide-image" />
  12. </swiper-item>
  13. </block>
  14. </swiper>
  15. <!-- <view class="dots">
  16. <block wx:for="{{coverPicture}}" wx:key="unique">
  17. <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
  18. </block>
  19. </view> -->
  20. </view>
  21. <view class='coupons_info' style='position:relative;z-index:9'>
  22. <view class='fenxiang' wx:if="{{data.type!=50&&data.type!=51}}" bindtap='showshare' wx:if="{{data.sendType!=3}}">
  23. <image src='{{fenxiang}}' mode="widthFix"></image>
  24. <text class='gift'>分享</text>
  25. </view>
  26. <view>
  27. <view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined||data.type==10}}">
  28. <view style='text-align:center;display:inline-block;'>
  29. <image class='clock' src='{{clockUrl}}' mode='widthFix' wx:if="{{data.type!=10}}"></image>
  30. <image class='clock' src='{{yushouUrl}}' mode='widthFix' wx:if="{{data.type==10}}"></image>
  31. <text class="qiang" wx:if="{{data.activityStatus!=0}}">距结束 :</text>
  32. <text class="qiang" wx:if="{{data.activityStatus==0}}">距开始 :</text>
  33. </view>
  34. <view wx:if="{{clock=='00'||data.status==1}}" class='times'>
  35. 已经结束
  36. </view>
  37. <view wx:if="{{clock!='00'}}" class='times'>
  38. <view style="display:inline-block;" wx:if="{{day!=0}}">
  39. <text>{{day}}</text>天:
  40. </view>
  41. <text>{{hour}}</text>:
  42. <text>{{min}}</text>:
  43. <text>{{sec}}</text>
  44. </view>
  45. </view>
  46. <text class='title'>{{data.title}}<text class="elecard" wx:if="{{data.type==100}}">电子卡</text></text>
  47. <text class="subTitle">{{data.subTitle}}</text>
  48. <!-- 预购 -->
  49. <view class="moneyBox" wx:if="{{data.type==10}}">
  50. <view class="earnest">定金:</view>
  51. <view class="earnestNum">¥ {{salePriceStr}}</view>
  52. <view class="final">尾款抵扣:</view>
  53. <view class="earnestNum">¥ {{priceStr}}</view>
  54. </view>
  55. <view class="pickFinal_Box" wx:if="{{data.type==10}}">
  56. <view class="earnest">提货尾款:</view>
  57. <view class="earnestNum">¥ {{tailPriceStr}}</view>
  58. <view class="original">{{origPriceStr}}</view>
  59. </view>
  60. <view class="earnestTime time" wx:if="{{data.type==10}}"> 预购时间:{{soldStartTime}}至{{soldEndTime}}</view>
  61. <view class="finalTime time" wx:if="{{data.type==10}}">提货时间:{{validStartDate}}至{{validEndDate}}</view>
  62. <!-- 预售 -->
  63. <view class='salePriceStr clearfix' wx:if="{{data.type!=10}}">
  64. <text class='rmb'>¥</text>
  65. <view class="fl" wx:if="{{data.type!=8}}">
  66. <text class="pri01" wx:if="{{data.type!=50&&data.type!=51}}">{{data.salePriceStr}}</text>
  67. <view class="pri01" wx:if="{{data.type==50||data.type==51}}">{{data.creditPrice}}
  68. <text class='jifen'>积分</text>
  69. </view>
  70. <!-- <text class="yuan" wx:if="{{data.type!=50&&data.type!=51}}">元</text> -->
  71. <text class='throgh' wx:if="{{data.unit==0&&data.type!=50&&data.type!=51}}">{{data.priceStr}}元</text>
  72. <text wx:if="{{data.unit==1&&data.type!=50&&data.type!=51}}">{{data.priceStr}}小时</text>
  73. <text class='rest' wx:if="{{data.autoRefund == 1}}">
  74. <text class='time refound'><text class="use">过期不退款</text></text>
  75. </text>
  76. </view>
  77. <view class="fl" wx:if="{{data.type==8}}">
  78. <!-- <text class="pri01 pri01Hr">¥</text> -->
  79. <text class="pri01">{{data.salePriceStr}}</text>
  80. <text class='presslimit' wx:if="{{data.type==8}}"><text>{{data.pressLimitNum+'人可砍至底价'}}</text></text>
  81. <text class='throgh'>{{data.priceStr}}元</text>
  82. <text class='rest' wx:if="{{data.autoRefund == 1}}">
  83. <text class='time refound'><text class="use">过期不退款</text></text>
  84. </text>
  85. </view>
  86. </view>
  87. <view class='rest' wx:if="{{data.validType==2}}">自领取之日起
  88. <text class='time'>{{validDays}}</text>天内有效
  89. <text class="use">(请在有效期内使用)</text>
  90. </view>
  91. <view class='rest' wx:if="{{data.validType==1&&data.type!=10}}">
  92. <text class='time'>{{validStartDate}}至{{validEndDate}}</text>
  93. </view>
  94. <view class='rest' wx:if="{{data.type==5}}">
  95. <text class='time'>当次有效</text>
  96. </view>
  97. <view class='rest' wx:if="{{data.type==1}}">
  98. <text class='txt01'>使用条件:</text>
  99. <text class='time'>满{{data.usePriceStr}}元可用</text>
  100. </view>
  101. <view class='rest' wx:if="{{data.sendType!=3}}">
  102. <!-- <text class='txt01'>限购条件:</text> -->
  103. <view class='quan'></view>
  104. <text class='time'>限购{{data.useLimitQuantity}}张</text>
  105. <text class='timess' wx:if='{{limitCondition==1}}'>(仅限新用户活动)</text>
  106. <text class='timess' wx:if='{{limitCondition==2&&(minLimit||minLimit==0)&&maxLimit}}'>({{minLimit}}-{{maxLimit}}成长值)</text>
  107. <text class='timess' wx:if='{{limitCondition==2&&minLimit&&!maxLimit}}'>(大于{{minLimit}}成长值)</text>
  108. <text class="restNum fr">剩余<text>{{data.remainInventory}}张</text></text>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 适用门店 -->
  113. <store merchantVoList="{{merchantVoList}}" wx:if="{{data.type!=12}}"></store>
  114. <!-- 券包子券样式 -->
  115. <!-- <view class="childText">购买须知</view> -->
  116. <view class="childBox">
  117. <view class="childItem" wx:for="{{data.giftCouponList}}" bindtap="gochild" data-id="{{item.id}}" wx:key="index">
  118. <image class="childImg" mode='widthFix' src="{{item.coverImg}}"></image>
  119. <view class="childName">{{item.title}}</view>
  120. <view class="childMoney">¥{{item.priceStr}}</view>
  121. </view>
  122. </view>
  123. <view class='notes'>
  124. <view>
  125. <text>购买须知</text>
  126. </view>
  127. <view wx:if="{{data.contentType==0}}">
  128. <text><text class='spot'></text>{{data.remark}}</text>
  129. </view>
  130. <view wx:if="{{data.contentType==1}}">
  131. <rich-text nodes="{{curHtml}}"></rich-text>
  132. </view>
  133. </view>
  134. <view wx:if="{{couponList.length!=0}}" style="color: #333;letter-spacing: 0;font-size: 30rpx;height: 70rpx;line-height: 70rpx;margin-left: 35rpx;">其他活动</view>
  135. <view class='couponsL clearfix'>
  136. <c-coupons wx:if="{{couponList.length!=0}}" wx:for="{{couponList}}" from="fromMerchant" paramAtoB="{{loading}}" wx:key="unique" data="{{item}}" list="{{couponList}}" />
  137. </view>
  138. <view class='detailImg' wx:if="{{detailPicture.length>0}}">
  139. <image wx:for="{{detailPicture}}" wx:key="index" wx:for-item="item" src='{{item}}' mode='widthFix'></image>
  140. </view>
  141. </view>
  142. <form bindsubmit="gotopay" data-type='{{data.type}}' report-submit='true'>
  143. <view class="buy-view app-border-top" style="position:fixed;z-index:{{zIndex}};">
  144. <button class='goback' bindtap='goback'>
  145. <image src='{{homeSelectedO}}' mode="widthFix"></image>
  146. <text class='btnTxt'>首页</text>
  147. </button>
  148. <button form-type="submit" disabled='{{showbutton}}' hover-class='active' class='buy' wx:if="{{data.type!=11&&data.type!=8&&data.type!=50&&data.type!=51&&data.salePriceStr!=0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">
  149. <text class='txt'>{{data.salePriceStr}}元</text>马上购买</button>
  150. <button wx:if="{{data.type==11}}" bindtap="gohome" data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="2" class="home">配送到家
  151. </button>
  152. <button wx:if="{{data.type==11}}" bindtap="gohome" data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="1" class="arrive">到店购买
  153. </button>
  154. <button form-type="submit" disabled='{{showbutton}}' class='buy' wx:if="{{data.type!=8&&data.type!=50&&data.type!=51&&data.salePriceStr==0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">免费领取</button>
  155. <button form-type="submit" disabled='{{showbutton}}' class='buy' wx:if="{{data.type==51&&data.remainInventory!=0||data.type==50&&data.remainInventory!=0}}">马上兑换</button>
  156. <button class='buy buyHr' disabled='true' wx:if="{{data.sendType!=3&&(data.remainInventory==0&&endtime!='活动已结束'||data.remainInventory==0&&data.type==8)}}">已售罄</button>
  157. <button class='buy' disabled='true' wx:if="{{data.remainInventory==0&&data.type==50||data.remainInventory==0&&data.type==51}}">已兑完</button>
  158. <button class='buy' disabled='true' wx:if="{{endtime=='活动已结束'&&data.activityStatus!=0}}">活动已结束</button>
  159. <button class='buy' disabled='true' wx:if="{{total_micro_second<=0&&data.activityStatus!=0}}">活动已结束</button>
  160. <button id='noBuy' disabled='true' wx:if="{{data.activityStatus==0}}">活动未开始</button>
  161. </view>
  162. </form>
  163. </view>
  164. <view wx:if="{{data.remainInventory!=0&&data.type==8}}" class="btns clearfix" hover-class="none" hover-stop-propagation="false">
  165. <button class='goback' bindtap='goback'>
  166. <image src='{{homeSelectedO}}' mode="widthFix"></image>
  167. <text class='btnTxt'>首页</text>
  168. </button>
  169. <form bindsubmit="gotopay" report-submit='true' class="fl">
  170. <button form-type="submit" style='background:transparent;color:#fff;' data-discount='discount1' disabled='{{showbutton}}'>
  171. <text>¥{{data.priceStr}}</text>
  172. <text>立即购买</text>
  173. </button>
  174. </form>
  175. <form bindsubmit="inviteFriend" report-submit='true' class="fr">
  176. <button form-type="submit" style='background:{{!showbutton1?"transparent":"#ccc"}};color:#fff;font-size:32rpx;line-height:94rpx;border-radius:60rpx;' disabled='{{showbutton1}}'>
  177. 发起砍价
  178. </button>
  179. </form>
  180. </view>
  181. <!-- 问卷调查 -->
  182. <view class="b1" style="opacity:{{opacity}};display: {{display}};position: fixed;top:{{navigationBarHeight}};bottom: 0px;left: 0px;right: 0px;background: rgba(0, 0, 0, 0.8);overflow: hidden;z-index: 13;" animation="{{queueData}}">
  183. <view id='con' class='con'>
  184. <image class='wmclose' mode='widthFix' src="{{closedUrl}}" bindtap="closeQuestion"></image>
  185. <image class='ques_gou' mode='widthFix' src="{{quesGouUrl}}"></image>
  186. <image class='image' src="{{headbgUrl}}" mode='widthFix'></image>
  187. <image class='img image' src="{{quesBgUrl}}" mode='widthFix'></image>
  188. <view class='question'>
  189. <text class='titles'>{{questionnaire.title}}</text>
  190. <!-- 单选 -->
  191. <radio-group class="radio-group" wx:if="{{questionnaire.flag=='single'}}" data-flags="single" bindchange="formSubmit" data-questionId="{{questionId}}">
  192. <label class="radios" wx:for="{{questionnaire.answers}}" wx:key="index">
  193. <radio value="{{item.id}}" checked="{{item.checked}}" />{{item.name}}
  194. </label>
  195. </radio-group>
  196. <!-- 多选 -->
  197. <checkbox-group bindchange="checkboxChange" wx:if="{{questionnaire.flag=='multi'}}" bindchange="checkboxChange">
  198. <label class="radio ques" wx:for="{{questionnaire.answers}}" wx:key="index">
  199. <checkbox value="{{item.id}}" />{{item.name}}
  200. </label>
  201. </checkbox-group>
  202. <view class='ques btnss' wx:if="{{questionnaire.flag=='multi'}}" data-flags='multi' bindtap='formSubmit' data-questionId="{{questionId}}">确定</view>
  203. </view>
  204. </view>
  205. </view>
  206. <!-- 卡转赠领取弹出框 -->
  207. <view class='shaddow' wx:if='{{showCardOffer}}'></view>
  208. <view class='alert-box' wx:if='{{showCardOffer}}'>
  209. <view class='user-img'>
  210. <image src='{{cardData.avatarUrl}}'></image>
  211. </view>
  212. <view class='close' bindtap='closeAlert'>
  213. <image src='{{close02}}'></image>
  214. </view>
  215. <view class='a-title' wx:if='{{!isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
  216. <view class='a-title' wx:if='{{!isSamePeople&&!isReceived}}'>{{cardData.userName+'送您一张消费卡'}}</view>
  217. <view class='a-title' wx:if='{{isSamePeople&&!isReceived}}'>等待好友领取</view>
  218. <view class='a-title' wx:if='{{isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
  219. <view class='a-img'>
  220. <image src='{{cardData.coverImg}}'></image>
  221. <view class='a-received' wx:if="{{isReceived}}">{{statusText}}</view>
  222. </view>
  223. <button type="primary" wx:if='{{!isSamePeople&&!isReceived}}' disabled='{{receivedDisabled}}' class='support-tansfer' bindtap='checkPhoneStatus'>领取</button>
  224. <button type="primary" wx:if='{{isSamePeople||isReceived}}' class='support-tansfer' bindtap='closeAlert'>关闭</button>
  225. </view>
  226. <!-- 分享弹框 -->
  227. <!-- <c-shareposter bind:myevent="" class="business" couponChannelId="{{data.id}}" wx:if="{{isshowposter}}"/> -->
  228. <!-- 分享弹框 -->
  229. <view class='modal' wx:if="{{isshowposter}}" bindtap='hidemodal'>
  230. <view class='modal-content'>
  231. <view>
  232. <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>
  233. <image src='./../../../assets/images/wechat.png' mode='aspectFit'></image>
  234. <text>微信好友</text>
  235. </view>
  236. <view bindtap='showPoster'>
  237. <image src='./../../../assets/images/picture.png' mode='aspectFit'></image>
  238. <text>生成海报</text>
  239. </view>
  240. </view>
  241. </view>
  242. </view>