抖音小程序C端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

350 行
19 KiB

  1. <navbar back home text="{{barTitle}}" background='#fff'></navbar>
  2. <view tt:if="{{showPage}}" style="margin-top:{{navigationBarHeight}} ">
  3. <!-- <view ></view> -->
  4. <!-- 券的详情页面 -->
  5. <view class='coupons'>
  6. <view class="coupons-body">
  7. <view tt:if="{{coverPicture.length>0}}" class="banner" style="{{mouldType==1?'height: 750rpx;':''}}">
  8. <swiper class="index-slide swiper-box" style="{{mouldType==1?'height: 750rpx;':''}}" bindchange="swiperChange"
  9. indicator-dots="true" circular="false" current="{{swiperCurrent}}">
  10. <block tt:for="{{coverPicture}}" tt:key="unique">
  11. <swiper-item>
  12. <image data-data="{{item}}" src="{{item}}" class="index-slide-image"
  13. style="{{mouldType==1?'height: 750rpx;':''}}" />
  14. </swiper-item>
  15. </block>
  16. </swiper>
  17. <!-- <view class="dots">
  18. <block tt:for="{{coverPicture}}" tt:key="unique">
  19. <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
  20. </block>
  21. </view> -->
  22. </view>
  23. <view class='coupons_info' style='position:relative;z-index:9'>
  24. <!-- <view class='fenxiang' tt:if="{{data.type!=50&&data.type!=51}}" bindtap='showshare'
  25. tt:if="{{data.sendType!=3}}">
  26. <image src='{{fenxiang}}' mode="widthFix"></image>
  27. <text class='gift'>分享</text>
  28. </view> -->
  29. <view>
  30. <view class='distance' tt:if="{{data.targetAd==2&&data.endTime!=undefined||data.type==10}}">
  31. <view style='text-align:center;display:inline-block;'>
  32. <image class='clock' src='{{clockUrl}}' mode='widthFix' tt:if="{{data.type!=10}}"></image>
  33. <image class='clock' src='{{yushouUrl}}' mode='widthFix' tt:if="{{data.type==10}}"></image>
  34. <text class="qiang" tt:if="{{data.activityStatus!=0}}">距结束 :</text>
  35. <text class="qiang" tt:if="{{data.activityStatus==0}}">距开始 :</text>
  36. </view>
  37. <view tt:if="{{clock=='00'||data.status==1}}" class='times'>
  38. 已经结束
  39. </view>
  40. <view tt:if="{{clock!='00'}}" class='times'>
  41. <view style="display:inline-block;" tt:if="{{day!=0}}">
  42. <text>{{day}}</text>天:
  43. </view>
  44. <text>{{hour}}</text>:
  45. <text>{{min}}</text>:
  46. <text>{{sec}}</text>
  47. </view>
  48. </view>
  49. <text class='title'>{{data.title}}<text class="elecard" tt:if="{{data.type==100}}">电子卡</text></text>
  50. <!-- 预购 -->
  51. <view class="moneyBox" tt:if="{{data.type==10}}">
  52. <view class="earnest">定金:</view>
  53. <view class="earnestNum">¥ {{salePriceStr}}</view>
  54. <view class="final">尾款抵扣:</view>
  55. <view class="earnestNum">¥ {{priceStr}}</view>
  56. </view>
  57. <view class="pickFinal_Box" tt:if="{{data.type==10}}">
  58. <view class="earnest">提货尾款:</view>
  59. <view class="earnestNum">¥ {{tailPriceStr}}</view>
  60. <view class="original">{{origPriceStr}}</view>
  61. </view>
  62. <view class="earnestTime time" tt:if="{{data.type==10}}"> 预购时间:{{validStartDate}}至{{validEndDate}}</view>
  63. <view class="finalTime time" tt:if="{{data.type==10}}">提货时间:{{pickStartDate}}至{{pickEndDate}}</view>
  64. <!-- 预售 -->
  65. <view class='salePriceStr clearfix' tt:if="{{data.type!=10}}">
  66. <text class='rmb'>¥</text>
  67. <view class="fl" tt:if="{{data.type!=8}}">
  68. <text class="pri01" tt:if="{{data.type!=50&&data.type!=51}}">{{priceAndStockObj.salePrice/100}}</text>
  69. <view class="pri01" tt:if="{{data.type==50||data.type==51}}">{{priceAndStockObj.creditPrice}}
  70. <text class='jifen'>积分</text>
  71. </view>
  72. <text class='throgh' tt:if="{{data.unit==0&&data.type!=50&&data.type!=51}}">{{priceAndStockObj.price/100}}元</text>
  73. <text tt:if="{{data.unit==1&&data.type!=50&&data.type!=51}}">{{priceAndStockObj.price/100}}小时</text>
  74. <!-- <text class='rest' tt:if="{{data.autoRefund == 1}}">
  75. <text class='time refound'><text class="use">过期不退款</text></text>
  76. </text> -->
  77. </view>
  78. <view class="fl" tt:if="{{data.type==8}}">
  79. <text class="pri01">{{priceAndStockObj.salePrice/100}}</text>
  80. <text class='presslimit' tt:if="{{data.type==8}}"><text>{{data.pressLimitNum+'人可砍至底价'}}</text></text>
  81. <text class='throgh'>{{priceAndStockObj.price/100}}元</text>
  82. <!-- <text class='rest' tt:if="{{data.autoRefund == 1}}">
  83. <text class='time refound'><text class="use">过期不退款</text></text>
  84. </text> -->
  85. </view>
  86. </view>
  87. <view class="subTitleBox">
  88. <text class="subTitle">{{data.subTitle}}</text>
  89. <view class="sellBox"> {{'已售'+(priceAndStockObj.inventory-priceAndStockObj.remainInventory)+'|'+'库存'+priceAndStockObj.remainInventory}}</view>
  90. </view>
  91. <!-- <view class='rest' tt:if="{{data.validType==2}}">自领取之日起
  92. <text class='time'>{{validDays}}</text>天内有效
  93. <text class="use">(请在有效期内使用)</text>
  94. </view>
  95. <view class='rest' tt:if="{{data.validType==1&&data.type!=10}}">
  96. <text class='time'>{{validStartDate}}至{{validEndDate}}</text>
  97. </view>
  98. <view class='rest' tt:if="{{data.type==5}}">
  99. <text class='time'>当次有效</text>
  100. </view> -->
  101. <!-- <view class='rest' tt:if="{{data.type==1}}">
  102. <text class='txt01'>使用条件:</text>
  103. <text class='time'>满{{data.usePriceStr}}元可用</text>
  104. </view>
  105. <view class='rest' tt:if="{{data.sendType!=3&&mouldType!=1}}">
  106. <view class='quan'></view>
  107. <text class='time'>限购{{data.useLimitQuantity}}张</text>
  108. <text class='timess' tt:if='{{limitCondition==1}}'>(仅限新用户活动)</text>
  109. <text class='timess'
  110. tt:if='{{limitCondition==2&&(minLimit||minLimit==0)&&maxLimit}}'>({{minLimit}}-{{maxLimit}}成长值)</text>
  111. <text class='timess' tt:if='{{limitCondition==2&&minLimit&&!maxLimit}}'>(大于{{minLimit}}成长值)</text>
  112. <text class="restNum fr">剩余<text>{{data.remainInventory}}张</text></text>
  113. </view> -->
  114. </view>
  115. </view>
  116. <!-- 适用门店 -->
  117. <!-- <store merchantVoList="{{merchantVoList}}" tt:if="{{data.type!=12}}"></store> -->
  118. <!-- 券包子券样式 -->
  119. <!-- <view class="childText">购买须知</view> -->
  120. <view class="childBox">
  121. <view class="childItem" tt:for="{{data.giftCouponList}}" bindtap="gochild" data-id="{{item.id}}"
  122. tt:key="{{index}}">
  123. <image class="childImg" mode='aspectFill' src="{{item.coverImg}}"></image>
  124. <view class="childName">{{item.title}}</view>
  125. <view class="childMoney">¥{{item.priceStr}}</view>
  126. </view>
  127. </view>
  128. <vieW class="groupTitleBox">
  129. <view class="groupTitle" tt:if="{{data.itemGroup.length>0}}">团购详情</view>
  130. </vieW>
  131. <view class="groupTextBox" tt:if="{{data.itemGroup.length>0}}" tt:for="{{data.itemGroup}}">
  132. <view class="groupTitleS">{{item.group_name}}</view>
  133. <view class="groupDetailsBox" tt:for="{{item.item_list}}" tt:for-item="itemChi">
  134. <view class="groupTiemBox" >
  135. <view class="yuandian"></view>
  136. <view class="groupTiemName">{{itemChi.name}}({{itemChi.count}}份)</view>
  137. <view class="groupTiemPay">¥{{itemChi.price/100}}</view>
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 适用门店 -->
  142. <store merchantVoList="{{merchantVoList}}" tt:if="{{data.type!=12}}"></store>
  143. <view class='notes'>
  144. <view class="notesH">购买须知</view>
  145. <view class="timeText">有效期</view>
  146. <view class="Hchild">{{validStartDate}}至{{validEndDate}}</view>
  147. <view class="timeText">可用时间</view>
  148. <view class="Hchild">•商家营业时间可用</view>
  149. <view class="timeText">预约消费</view>
  150. <view class="Hchild">• 不需预约,高峰时段可能需要排队</view>
  151. <view class="Hchild">• 团购券不支持配送或外卖</view>
  152. <view class="timeText">使用规则</view>
  153. <text tt:if="{{curHtml==''}}" class="notesText">{{data.remark}}</text>
  154. <view tt:if="{{curHtml!=''}}">
  155. <rich-text nodes="{{curHtml}}"></rich-text>
  156. </view>
  157. </view>
  158. <view tt:if="{{couponList.length!=0}}"
  159. style="color: #333;letter-spacing: 0;font-size: 30rpx;height: 70rpx;line-height: 70rpx;margin-left: 35rpx;font-weight: bold;">其他活动
  160. </view>
  161. <view class='couponsL clearfix'>
  162. <c-coupons tt:if="{{couponList.length!=0}}" tt:for="{{couponList}}" from="fromMerchant" paramAtoB="{{loading}}"
  163. tt:key="unique" data="{{item}}" list="{{couponList}}" />
  164. </view>
  165. <view class='detailImg' tt:if="{{detailPicture.length>0}}">
  166. <image tt:for="{{detailPicture}}" tt:key="{{index}}" tt:for-item="item" src='{{item}}' mode='widthFix'></image>
  167. </view>
  168. </view>
  169. <form data-type='{{data.type}}' report-submit='true' tt:if="{{mouldType!=1}}">
  170. <view class="buy-view app-border-top" style="position:fixed;z-index:{{zIndex}};">
  171. <button class='goback' bindtap='goback'>
  172. <image src='{{homeSelectedO}}' mode="widthFix"></image>
  173. <text class='btnTxt'>首页</text>
  174. </button>
  175. <button bindtap="gotopay" disabled='{{showbutton}}' hover-class='active' class='buy'
  176. tt:if="{{data.type!=11&&data.type!=8&&data.type!=50&&data.type!=51&&priceAndStockObj.salePrice/100!=0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">
  177. <text class='txt'>{{priceAndStockObj.salePrice/100}}元</text>马上购买</button>
  178. <button tt:if="{{data.type==11&&data.remainInventory!=0}}" bindtap="gohome"
  179. data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="2"
  180. class="home">配送到家
  181. </button>
  182. <button tt:if="{{data.type==11&&data.remainInventory!=0}}" bindtap="gohome"
  183. data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="1"
  184. class="arrive">到店自提
  185. </button>
  186. <button bindtap="gotopay" disabled='{{showbutton}}' class='buy'
  187. tt:if="{{data.type!=8&&data.type!=50&&data.type!=51&&priceAndStockObj.salePrice/100==0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">免费领取</button>
  188. <button bindtap="gotopay" disabled='{{showbutton}}' class='buy' data-type='{{data.type}}'
  189. tt:if="{{data.type==51&&data.remainInventory!=0||data.type==50&&data.remainInventory!=0}}">马上兑换</button>
  190. <button class='buy buyHr' disabled='true'
  191. tt:if="{{data.sendType!=3&&(data.remainInventory==0&&endtime!='活动已结束'||data.remainInventory==0&&data.type==8)}}">已售罄</button>
  192. <button class='buy' disabled='true'
  193. tt:if="{{data.remainInventory==0&&data.type==50||data.remainInventory==0&&data.type==51}}">已兑完</button>
  194. <button class='buy' disabled='true' tt:if="{{endtime=='活动已结束'&&data.activityStatus!=0}}">活动已结束</button>
  195. <button class='buy' disabled='true' tt:if="{{total_micro_second<=0&&data.activityStatus!=0}}">活动已结束</button>
  196. <button id='noBuy' disabled='true' tt:if="{{data.activityStatus==0}}">活动未开始</button>
  197. </view>
  198. </form>
  199. <form data-type='{{data.type}}' report-submit='true' tt:if="{{mouldType==1}}">
  200. <view class="app-border-topX" style="position:fixed;z-index:{{zIndex}}; bottom: 0;">
  201. <view class="biaoz">{{data.type!=50?'¥':''}}</view>
  202. <view class="selling">{{data.type==50?priceAndStockObj.creditPrice+'积分':priceAndStockObj.salePrice/100}} </view>
  203. <view class="qsOriginal">¥{{priceAndStockObj.price/100}}</view>
  204. <button bindtap="gotopay" disabled='{{showbutton}}' hover-class='active' class='buyX'
  205. tt:if="{{data.type!=11&&data.type!=8&&data.type!=50&&data.type!=51&&priceAndStockObj.salePrice/100!=0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">
  206. 马上购买</button>
  207. <button tt:if="{{data.type==11&&data.remainInventory!=0}}" bindtap="gohome"
  208. data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="2"
  209. class="home">配送到家
  210. </button>
  211. <button tt:if="{{data.type==11&&data.remainInventory!=0}}" bindtap="gohome"
  212. data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="1"
  213. class="arrive">到店自提
  214. </button>
  215. <button bindtap="gotopay" disabled='{{showbutton}}' class='buyX'
  216. tt:if="{{data.type!=8&&data.type!=50&&data.type!=51&&priceAndStockObj.salePrice/100==0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">免费领取</button>
  217. <button bindtap="gotopay" disabled='{{showbutton}}' class='buyX' data-type='{{data.type}}'
  218. tt:if="{{data.type==51&&data.remainInventory!=0||data.type==50&&data.remainInventory!=0}}">马上兑换</button>
  219. <button class='buyX buyHr' disabled='true'
  220. tt:if="{{data.sendType!=3&&(data.remainInventory==0&&endtime!='活动已结束'||data.remainInventory==0&&data.type==8)}}">已售罄</button>
  221. <button class='buyX' disabled='true'
  222. tt:if="{{data.remainInventory==0&&data.type==50||data.remainInventory==0&&data.type==51}}">已兑完</button>
  223. <button class='buyX' disabled='true' tt:if="{{endtime=='活动已结束'&&data.activityStatus!=0}}">活动已结束</button>
  224. <button class='buyX' disabled='true' tt:if="{{total_micro_second<=0&&data.activityStatus!=0}}">活动已结束</button>
  225. <button id='buyX' disabled='true' tt:if="{{data.activityStatus==0}}">活动未开始</button>
  226. <!-- <view class="sell">已售出<span class="sellP">{{data.inventory-data.remainInventory}}</span>件</view> -->
  227. </view>
  228. </form>
  229. </view>
  230. <view tt:if="{{data.remainInventory!=0&&data.type==8}}" class="btns clearfix" hover-class="none"
  231. hover-stop-propagation="false">
  232. <button class='goback' bindtap='goback'>
  233. <image src='{{homeSelectedO}}' mode="widthFix"></image>
  234. <text class='btnTxt'>首页</text>
  235. </button>
  236. <form report-submit='true' class="fl">
  237. <button bindtap="gotopay" style='background:transparent;color:#fff;' data-discount='discount1'
  238. disabled='{{showbutton}}'>
  239. <text>¥{{priceAndStockObj.price/100}}</text>
  240. <text>立即购买</text>
  241. </button>
  242. </form>
  243. <form bindsubmit="inviteFriend" report-submit='true' class="fr">
  244. <button form-type="submit"
  245. style='background:{{!showbutton1?"transparent":"#ccc"}};color:#fff;font-size:32rpx;line-height:94rpx;border-radius:60rpx;'
  246. disabled='{{showbutton1}}'>
  247. 发起砍价
  248. </button>
  249. </form>
  250. </view>
  251. <!-- 问卷调查 -->
  252. <view class="b1"
  253. 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;"
  254. animation="{{queueData}}">
  255. <view id='con' class='con'>
  256. <image class='wmclose' mode='widthFix' src="{{closedUrl}}" bindtap="closeQuestion"></image>
  257. <image class='ques_gou' mode='widthFix' src="{{quesGouUrl}}"></image>
  258. <image class='image' src="{{headbgUrl}}" mode='widthFix'></image>
  259. <image class='img image' src="{{quesBgUrl}}" mode='widthFix'></image>
  260. <view class='question'>
  261. <text class='titles'>{{questionnaire.title}}</text>
  262. <!-- 单选 -->
  263. <radio-group class="radio-group" tt:if="{{questionnaire.flag=='single'}}" data-flags="single"
  264. bindchange="formSubmit" data-questionId="{{questionId}}">
  265. <label class="radios" tt:for="{{questionnaire.answers}}" tt:key="{{index}}">
  266. <radio value="{{item.id}}" checked="{{item.checked}}" />{{item.name}}
  267. </label>
  268. </radio-group>
  269. <!-- 多选 -->
  270. <checkbox-group bindchange="checkboxChange" tt:if="{{questionnaire.flag=='multi'}}" >
  271. <label class="radio ques" tt:for="{{questionnaire.answers}}" tt:key="index">
  272. <checkbox value="{{item.id}}" />{{item.name}}
  273. </label>
  274. </checkbox-group>
  275. <view class='ques btnss' tt:if="{{questionnaire.flag=='multi'}}" data-flags='multi' bindtap='formSubmit'
  276. data-questionId="{{questionId}}">确定</view>
  277. </view>
  278. </view>
  279. </view>
  280. <!-- 卡转赠领取弹出框 -->
  281. <view class='shaddow' tt:if='{{showCardOffer}}'></view>
  282. <view class='alert-box' tt:if='{{showCardOffer}}'>
  283. <view class='user-img'>
  284. <image src='{{cardData.avatarUrl}}'></image>
  285. </view>
  286. <view class='close' bindtap='closeAlert'>
  287. <image src='{{close02}}'></image>
  288. </view>
  289. <view class='a-title' tt:if='{{!isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
  290. <view class='a-title' tt:if='{{!isSamePeople&&!isReceived}}'>{{cardData.userName+'送您一张消费卡'}}</view>
  291. <view class='a-title' tt:if='{{isSamePeople&&!isReceived}}'>等待好友领取</view>
  292. <view class='a-title' tt:if='{{isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
  293. <view class='a-img'>
  294. <image src='{{cardData.coverImg}}'></image>
  295. <view class='a-received' tt:if="{{isReceived}}">{{statusText}}</view>
  296. </view>
  297. <button type="primary" tt:if='{{!isSamePeople&&!isReceived}}' disabled='{{receivedDisabled}}'
  298. class='support-tansfer' bindtap='checkPhoneStatus'>领取</button>
  299. <button type="primary" tt:if='{{isSamePeople||isReceived}}' class='support-tansfer' bindtap='closeAlert'>关闭</button>
  300. </view>
  301. <!-- 分享弹框 -->
  302. <!-- <c-shareposter bind:myevent="" class="business" couponChannelId="{{data.id}}" tt:if="{{isshowposter}}"/> -->
  303. <!-- 分享弹框 -->
  304. <view class='modal' tt:if="{{isshowposter}}" bindtap='hidemodal'>
  305. <view class='modal-content'>
  306. <view>
  307. <button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}'
  308. data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button>
  309. <image src='./../../../assets/images/wechat.png' mode='aspectFit'></image>
  310. <text>微信好友</text>
  311. </view>
  312. <view bindtap='showPoster'>
  313. <image src='./../../../assets/images/picture.png' mode='aspectFit'></image>
  314. <text>生成海报</text>
  315. </view>
  316. </view>
  317. </view>
  318. <view class="shootBox" tt:if="{{spuIdObj.status==1}}">
  319. <button class="mount" open-type="share" data-channel="video">
  320. <image src="../../../assets/images/shoot.png" class="videoCla"/>
  321. <view class="issue">发布视频</view>
  322. </button>
  323. </view>
  324. <phoen showBox="{{showBox}}" bind:hiePhoen="setPhone" bind:heiBox="setBox" />
  325. </view>