C端小程序
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

276 satır
16 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" style="{{mouldConfig.swiperDetailsH}}">
  8. <swiper class="index-slide swiper-box" style="{{mouldConfig.swiperDetailsH}}" 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" style="{{mouldConfig.swiperDetailsH}}" />
  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}}">{{priceAndStockObj.salePrice/100}}</text>
  67. <view class="pri01" wx:if="{{data.type==50||data.type==51}}">{{priceAndStockObj.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}}">{{priceAndStockObj.price/100}}元</text>
  72. <text wx:if="{{data.unit==1&&data.type!=50&&data.type!=51}}">{{priceAndStockObj.price/100}}小时</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">{{priceAndStockObj.salePrice/100}}</text>
  80. <text class='presslimit' wx:if="{{data.type==8}}"><text>{{data.pressLimitNum+'人可砍至底价'}}</text></text>
  81. <text class='throgh'>{{priceAndStockObj.price/100}}元</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 && soldStartTime}}">
  92. <text class='time'>售卖期:{{soldStartTime}} 至 {{soldEndTime}}</text>
  93. </view>
  94. <view class='rest' wx:if="{{data.validType==1&&data.type!=10}}">
  95. <text class='time'>使用期:{{validStartDate}} 至 {{validEndDate}}</text>
  96. </view>
  97. <view class='rest' wx:if="{{data.type==5}}">
  98. <text class='time'>当次有效</text>
  99. </view>
  100. <view class='rest' wx:if="{{data.type==1}}">
  101. <text class='txt01'>使用条件:</text>
  102. <text class='time'>满{{data.usePriceStr}}元可用</text>
  103. </view>
  104. <view class='rest' wx:if="{{data.sendType!=3}}">
  105. <!-- <text class='txt01'>限购条件:</text> -->
  106. <view class='quan'></view>
  107. <text class='time'>限购{{data.useLimitQuantity}}张</text>
  108. <text class='timess' wx:if='{{limitCondition==1}}'>(仅限新用户活动)</text>
  109. <text class='timess' wx:if='{{limitCondition==2&&(minLimit||minLimit==0)&&maxLimit}}'>({{minLimit}}-{{maxLimit}}成长值)</text>
  110. <text class='timess' wx:if='{{limitCondition==2&&minLimit&&!maxLimit}}'>(大于{{minLimit}}成长值)</text>
  111. <text class="restNum fr">
  112. <text style="margin-right: 25rpx;" wx:if="{{priceAndStockObj.selledCount||priceAndStockObj.selledCount==0}}">已售<text>{{priceAndStockObj.selledCount}}张</text></text>
  113. <text>剩余<text>{{priceAndStockObj.remainInventory}}张</text></text>
  114. </text>
  115. </view>
  116. </view>
  117. </view>
  118. <!-- 适用门店 -->
  119. <!-- <store merchantVoList="{{merchantVoList}}" wx:if="{{data.type!=12}}"></store> -->
  120. <shop wx:if="{{mallList.length>0}}" mallList="{{mallList}}"></shop>
  121. <!-- 券包子券样式 -->
  122. <!-- <view class="childText">购买须知</view> -->
  123. <view class="childBox">
  124. <view class="childItem" wx:for="{{data.giftCouponList}}" bindtap="gochild" data-id="{{item.id}}" wx:key="index">
  125. <image class="childImg" mode='aspectFill' src="{{item.coverImg}}"></image>
  126. <view class="childName">{{item.title}}</view>
  127. <view class="childMoney">¥{{item.priceStr}}</view>
  128. </view>
  129. </view>
  130. <view class='notes'>
  131. <view>
  132. <text>购买须知</text>
  133. </view>
  134. <view wx:if="{{data.contentType==0}}">
  135. <text><text class='spot'></text>{{data.remark}}</text>
  136. </view>
  137. <view wx:if="{{data.contentType==1}}">
  138. <rich-text nodes="{{curHtml}}"></rich-text>
  139. </view>
  140. <view wx:if="{{!data.contentType&&data.contentType!=0}}">
  141. <text><text class='spot'></text>{{data.remark}}</text>
  142. </view>
  143. </view>
  144. <view wx:if="{{couponList.length!=0}}" style="color: #333;letter-spacing: 0;font-size: 30rpx;height: 70rpx;line-height: 70rpx;margin-left: 35rpx;">其他活动</view>
  145. <view class='couponsL clearfix'>
  146. <c-coupons wx:if="{{couponList.length!=0}}" wx:for="{{couponList}}" from="fromMerchant" paramAtoB="{{loading}}" wx:key="unique" data="{{item}}" list="{{couponList}}" />
  147. </view>
  148. <view class='detailImg' wx:if="{{detailPicture.length>0}}">
  149. <image wx:for="{{detailPicture}}" wx:key="index" wx:for-item="item" src='{{item}}' mode='widthFix'></image>
  150. </view>
  151. </view>
  152. <form bindsubmit="gotopay" data-type='{{data.type}}' report-submit='true'>
  153. <view class="buy-view app-border-top" style="position:fixed;z-index:{{zIndex}};">
  154. <button class='goback' bindtap='goback'>
  155. <image src='{{homeSelectedO}}' mode="widthFix"></image>
  156. <text class='btnTxt'>首页</text>
  157. </button>
  158. <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 && priceAndStockObj.salePrice/100!=0 && priceAndStockObj.remainInventory!=0 && endtime!='活动已结束' && data.activityStatus!=0}}">
  159. <text class='txt'>{{priceAndStockObj.salePrice/100}}元</text>马上购买
  160. </button>
  161. <button wx:if="{{data.type==11&&priceAndStockObj.remainInventory!=0}}" bindtap="gohome" data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="2" class="home">配送到家
  162. </button>
  163. <button wx:if="{{data.type==11&&priceAndStockObj.remainInventory!=0}}" bindtap="gohome" data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="1" class="arrive">到店自提
  164. </button>
  165. <button form-type="submit" disabled='{{showbutton}}' class='buy' wx:if="{{data.type !=8 && data.type !=50 && data.type != 51 && priceAndStockObj.salePrice / 100 == 0 && priceAndStockObj.remainInventory !=0 && endtime != '活动已结束' && data.activityStatus != 0}}">免费领取</button>
  166. <button form-type="submit" disabled='{{showbutton || activityStatus == 0}}' class='buy' wx:if="{{data.type == 51 && (priceAndStockObj.remainInventory !=0 || data.type == 50) && priceAndStockObj.remainInventory != 0 }}">马上兑换</button>
  167. <button class='buy buyHr' disabled='true' wx:if="{{data.sendType !=3 && (priceAndStockObj.remainInventory ==0 && endtime != '活动已结束' || priceAndStockObj.remainInventory ==0 && data.type == 8)}}">已售罄</button>
  168. <button class='buy' disabled='true' wx:if="{{priceAndStockObj.remainInventory ==0 && data.type == 50 || priceAndStockObj.remainInventory ==0 && data.type == 51}}">已兑完</button>
  169. <button class='buy' disabled='true' wx:if="{{endtime == '活动已结束' && data.activityStatus != 0}}">活动已结束</button>
  170. <button class='buy' disabled='true' wx:if="{{total_micro_second <=0 && data.activityStatus != 0}}">活动已结束</button>
  171. <button id='noBuy' disabled='true' wx:if="{{data.activityStatus == 0}}">活动未开始</button>
  172. </view>
  173. </form>
  174. </view>
  175. <view wx:if="{{priceAndStockObj.remainInventory!=0&&data.type==8}}" class="btns clearfix" hover-class="none" hover-stop-propagation="false">
  176. <button class='goback' bindtap='goback'>
  177. <image src='{{homeSelectedO}}' mode="widthFix"></image>
  178. <text class='btnTxt'>首页</text>
  179. </button>
  180. <block wx:if="{{data.activityStatus != 0}}">
  181. <form bindsubmit="gotopay" report-submit='true' class="fl">
  182. <button form-type="submit" style='background:transparent;color:#fff;' data-discount='discount1' disabled='{{showbutton}}'>
  183. <text>¥{{priceAndStockObj.price/100}}</text>
  184. <text>立即购买</text>
  185. </button>
  186. </form>
  187. <form bindsubmit="inviteFriend" report-submit='true' class="fr">
  188. <button form-type="submit" class="kanjiaBtn" style='background:{{!showbutton1?"transparent":"#ccc"}};' disabled='{{showbutton1}}'>
  189. 发起砍价
  190. </button>
  191. </form>
  192. </block>
  193. </view>
  194. <!-- 问卷调查 -->
  195. <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}}">
  196. <view id='con' class='con'>
  197. <image class='wmclose' mode='widthFix' src="{{closedUrl}}" bindtap="closeQuestion"></image>
  198. <image class='ques_gou' mode='widthFix' src="{{quesGouUrl}}"></image>
  199. <image class='image' src="{{headbgUrl}}" mode='widthFix'></image>
  200. <image class='img image' src="{{quesBgUrl}}" mode='widthFix'></image>
  201. <view class='question'>
  202. <text class='titles'>{{questionnaire.title}}</text>
  203. <!-- 单选 -->
  204. <radio-group class="radio-group" wx:if="{{questionnaire.flag=='single'}}" data-flags="single" bindchange="formSubmit" data-questionId="{{questionId}}">
  205. <label class="radios" wx:for="{{questionnaire.answers}}" wx:key="index">
  206. <radio value="{{item.id}}" checked="{{item.checked}}" />{{item.name}}
  207. </label>
  208. </radio-group>
  209. <!-- 多选 -->
  210. <checkbox-group bindchange="checkboxChange" wx:if="{{questionnaire.flag=='multi'}}" bindchange="checkboxChange">
  211. <label class="radio ques" wx:for="{{questionnaire.answers}}" wx:key="index">
  212. <checkbox value="{{item.id}}" />{{item.name}}
  213. </label>
  214. </checkbox-group>
  215. <view class='ques btnss' wx:if="{{questionnaire.flag=='multi'}}" data-flags='multi' bindtap='formSubmit' data-questionId="{{questionId}}">确定</view>
  216. </view>
  217. </view>
  218. </view>
  219. <!-- 卡转赠领取弹出框 -->
  220. <view class='shaddow' wx:if='{{showCardOffer}}'></view>
  221. <view class='alert-box' wx:if='{{showCardOffer}}'>
  222. <view class='user-img'>
  223. <image src='{{cardData.avatarUrl}}'></image>
  224. </view>
  225. <view class='close' bindtap='closeAlert'>
  226. <image src='{{close02}}'></image>
  227. </view>
  228. <view class='a-title' wx:if='{{!isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
  229. <view class='a-title' wx:if='{{!isSamePeople&&!isReceived}}'>{{cardData.userName+'送您一张消费卡'}}</view>
  230. <view class='a-title' wx:if='{{isSamePeople&&!isReceived}}'>等待好友领取</view>
  231. <view class='a-title' wx:if='{{isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
  232. <view class='a-img'>
  233. <image src='{{cardData.coverImg}}'></image>
  234. <view class='a-received' wx:if="{{isReceived}}">{{statusText}}</view>
  235. </view>
  236. <button type="primary" wx:if='{{!isSamePeople&&!isReceived}}' disabled='{{receivedDisabled}}' class='support-tansfer' bindtap='checkPhoneStatus'>领取</button>
  237. <button type="primary" wx:if='{{isSamePeople||isReceived}}' class='support-tansfer' bindtap='closeAlert'>关闭</button>
  238. </view>
  239. <!-- 分享弹框 -->
  240. <!-- <c-shareposter bind:myevent="" class="business" couponChannelId="{{data.id}}" wx:if="{{isshowposter}}"/> -->
  241. <!-- 分享弹框 -->
  242. <view class='modal' wx:if="{{isshowposter}}" bindtap='hidemodal'>
  243. <view class='modal-content'>
  244. <view>
  245. <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>
  246. <image src='./../../../assets/images/wechat.png' mode='aspectFit'></image>
  247. <text>微信好友</text>
  248. </view>
  249. <view bindtap='showPoster'>
  250. <image src='./../../../assets/images/picture.png' mode='aspectFit'></image>
  251. <text>生成海报</text>
  252. </view>
  253. </view>
  254. </view>
  255. </view>