goods.wxml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. <!-- 展示蒙层 显示推广画报 -->
  2. <view class="poster" wx:if="{{myqr_show}}">
  3. <view class="title">
  4. <text>推广文案</text>
  5. </view>
  6. <view class="ads">
  7. <view style="width:480rpx">{{myqr_ads}}</view>
  8. </view>
  9. <image src="{{myqr_url}}" mode="widthFix" style="width:480rpx" show-menu-by-longpress="true"></image>
  10. <view class="tool">
  11. <view bindtap="posterCopy" style="text-align:right">
  12. <image class="img" style="width:110rpx;height:130rpx" src="/static/images/share/p_copy.png"></image>
  13. </view>
  14. <button open-type='share' class="share-btn">
  15. <image class="img" style="width: 85rpx;height: 127rpx;" src="/static/images/share/p_wx.png"></image>
  16. </button>
  17. <view style="text-align:left">
  18. <image class="img" bindtap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  19. </view>
  20. </view>
  21. <view style="text-align:center">
  22. <image class="closeImg" bindtap="hidePoster" src="/static/images/share/close.png"></image>
  23. </view>
  24. </view>
  25. <view class="container" style="filter:brightness({{myqr_blur}}%)">
  26. <image src="/static/images/new/isnew.png" wx:if="{{goods.isNew}}" class="isNew"></image>
  27. <swiper class="goodsimgs" indicator-dots="{{goods.gallery.length>1?true:false}}"
  28. indicator-color="rgba(0, 192, 255, .2)" indicator-active-color="rgba(0, 192, 255)" autoplay="true"
  29. interval="3000" duration="1000">
  30. <swiper-item wx:for="{{goods.gallery}}" wx:key="*this">
  31. <image src="{{item}}" mode="aspectFill"></image>
  32. </swiper-item>
  33. </swiper>
  34. <!-- 分享
  35. <view class='goods_name'>
  36. <view class='goods_name_left'>{{goods.name}}</view>
  37. <view hidden="{{!canShare}}" class="goods_name_right" bindtap="shareFriendOrCircle">
  38. <image class="img" src="/static/images/share.png" />
  39. </view>
  40. </view>-->
  41. <view class="share-pop-box" hidden="{{!openShare}}">
  42. <view class="share-pop">
  43. <view class="close" bindtap="closeShare">
  44. <van-icon class="icon" name="cross" />
  45. </view>
  46. <!-- <view class='share-info'>
  47. <button class="sharebtn" open-type="share" wx:if="{{!isGroupon}}">
  48. <image class='sharebtn_image' src='/static/images/wechat.png'></image>
  49. <view class='sharebtn_text'>分享给好友</view>
  50. </button>
  51. <button class="savesharebtn" open-type="openSetting" bindopensetting="handleSetting" wx:if="{{(!isGroupon) && (!canWrite)}}">
  52. <image class='sharebtn_image' src='/static/images/friend.png'></image>
  53. <view class='sharebtn_text'>发朋友圈1</view>
  54. </button>
  55. <button class="savesharebtn" bindtap="saveShare" wx:if="{{!isGroupon && canWrite}}">
  56. <image class='sharebtn_image' src='/static/images/friend.png'></image>
  57. <view class='sharebtn_text'>发朋友圈</view>
  58. </button>
  59. </view>-->
  60. </view>
  61. </view>
  62. <view class="goods-info">
  63. <!-- 活动商品展示的样式 -->
  64. <view wx:if="{{activited}}" class="activity">
  65. <view style="display: flex;flex-direction: row;justify-content: space-between;">
  66. <view class="img">限时活动</view>
  67. <view class="activityDay">
  68. <image src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/clock.png">
  69. </image>
  70. <text>距离活动仅剩{{activityDay}}天</text>
  71. </view>
  72. </view>
  73. <view style="display: flex;justify-content: space-between;">
  74. <view style="display: flex;">
  75. <view class="activityPrice">¥<text>{{activityPrice}}</text></view>
  76. <view class="activityCounterPrice">原价¥<text>{{goods.counterPrice}}</text></view>
  77. </view>
  78. <view class="activityTime">
  79. <view>{{activityHour}}</view><text>:</text>
  80. <view>{{activityMinute}}</view><text>:</text>
  81. <view>{{activitySecond}}</view>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- <view class="retailPrice">¥<text class="checked-price">{{goods.retailPrice}}</text> </view>
  86. <view wx:if="{{goods.counterPrice!=goods.retailPrice}}" class="counterPrice">原价¥<text>{{goods.counterPrice}}</text></view> -->
  87. <!-- 非活动商品的样式 -->
  88. <view class="c">
  89. <view style="display: flex;flex-direction: column;">
  90. <view wx:if="{{!activited}}" class="price">
  91. <view class="retailPrice">¥<text class="checked-price">{{checkedSku.price}}</text> </view>
  92. <!-- wx:if="{{checkedSku.counterPrice!=checkedSku.price}}" -->
  93. <view class="counterPrice">原价¥<text>{{checkedSku.counterPrice}}</text></view>
  94. <view class="sale-num">
  95. 已售<text>{{countSalesNumber}}</text>份
  96. </view>
  97. </view>
  98. <view class="goods-name-wrapper">
  99. <view class='goods_name'>
  100. <!-- <image wx:if="{{activited}}" style="width: 79rpx;height:32rpx;margin-right: 4rpx;" src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/618.png"></image> -->
  101. <view class='goods_name_left'>{{goods.name}}</view>
  102. </view>
  103. <text class="desc sub-color" wx:if="{{goods.brief}}">{{goods.brief}}</text>
  104. </view>
  105. <!-- <view class="price" wx:else>
  106. <view class="retailPrice">¥<text class="checked-price">{{checkedSpecPrice}}</text><text
  107. wx:if="{{goods.type=='2'}}"> 起</text></view>
  108. <view class="memberPrice" wx:if="{{goods.memberPrice!=checkedSpecPrice}}">¥{{goods.memberPrice}}</view>
  109. <view class="member-price-tag" wx:if="{{goods.memberPrice!=checkedSpecPrice}}" bindtap="goMemberCenter">会员价</view>
  110. </view> -->
  111. </view>
  112. <!-- 分享商品 -->
  113. <!-- <view hidden="{{!canShare}}" class="goods_name_right" bindtap="shareFriendOrCircle">
  114. <image class="img" src="/static/images/share.png" />
  115. </view> -->
  116. </view>
  117. </view>
  118. <!-- <view class="section-nav section-attr" bindtap="switchAttrPop">
  119. <view class="t">{{checkedSpecText}}</view>
  120. <van-icon class="i" name="arrow" />
  121. </view> -->
  122. <!-- <view class="comments" wx:if="{{comment.count > 0}}">
  123. <view class="h">
  124. <navigator url="/pages/comment/comment?valueId={{goods.id}}&type=0">
  125. <text class="t">评价({{comment.count > 999 ? '999+' : comment.count}})</text>
  126. <view class="i">
  127. 查看全部
  128. <van-icon name="arrow" />
  129. </view>
  130. </navigator>
  131. </view>
  132. <view class="b">
  133. <view class="item" wx:for="{{comment.data}}" wx:key="id">
  134. <view class="info">
  135. <view class="user">
  136. <image src="{{item.avatar}}"></image>
  137. <text>{{item.nickname}}</text>
  138. </view>
  139. <view class="time">{{item.addTime}}</view>
  140. </view>
  141. <view class="content">
  142. {{item.content}}
  143. </view>
  144. <view class="imgs" wx:if="{{item.picList.length > 0}}">
  145. <image class="img" wx:for="{{item.picList}}" wx:key="*this" wx:for-item="iitem" src="{{iitem}} "></image>
  146. </view>
  147. <view class="customer-service" wx:if="{{item.adminContent}}">
  148. <text class="u">商家回复:</text>
  149. <text class="c">{{item.adminContent}}</text>
  150. </view>
  151. </view>
  152. </view>
  153. </view>-->
  154. <!-- <view class="goods-attr">
  155. <view class="t">商品参数</view>
  156. <view class="l">
  157. <view class="item" wx:for="{{attribute}}" wx:key="name">
  158. <text class="left">{{item.attribute}}</text>
  159. <text class="right">{{item.value}}</text>
  160. </view>
  161. </view>
  162. </view> -->
  163. <!-- 购买提醒 -->
  164. <!-- <view class="buy-toast" wx:if="{{buyToastShow}}">
  165. <image src="{{goodsBuyTime.cusHeadImg}}" mode="aspectFill" ></image>
  166. <view>{{goodsBuyTime.comment}}</view>
  167. </view> -->
  168. <view class="buy-toast">
  169. <swiper autoplay="true" circular="true" interval="3000" duration="1000" vertical="true" class="toast-swiper">
  170. <swiper-item wx:for="{{goodsBuyTime}}" wx:key="index" class="toast-swiper-item">
  171. <view class="toast-item">
  172. <image src="{{item.cusHeadImg}}" mode="aspectFill"></image>
  173. <view>{{item.comment}}</view>
  174. </view>
  175. </swiper-item>
  176. </swiper>
  177. </view>
  178. <!-- 选择规格sku -->
  179. <view class="sku-info" bindtap="showSkuPopup" wx:if="{{goods.productType==2}}">
  180. <view class="sku-left">
  181. <view>已选</view>
  182. <view class="current-sku">{{checkedSku.specifications[0]}}</view>
  183. </view>
  184. <view class="sku-right">
  185. <view>可选服务</view>
  186. <van-icon name="arrow" color="#00B4FF" />
  187. </view>
  188. </view>
  189. <!-- 推荐产品 -->
  190. <view class="recommend-product" wx:if="{{recGoodsNum>0}}">
  191. <view class="recommend-title">
  192. 推荐产品({{recGoodsNum}})
  193. </view>
  194. <scroll-view scroll-x="true" class="recommend-scroll">
  195. <view class="scroll-item-wrapper" wx:for="{{recGoodsList}}" wx:key="index">
  196. <navigator url="/pages/goods/goods?id={{item.id}}">
  197. <view class="scroll-item">
  198. <image src="{{item.picUrl}}" mode="aspectFill"></image>
  199. <view class="scroll-right">
  200. <view class="recommend-name">{{item.name}}</view>
  201. <view class="recommend-price">
  202. <text>¥{{item.retailPrice}}</text>/台
  203. </view>
  204. </view>
  205. </view>
  206. </navigator>
  207. </view>
  208. </scroll-view>
  209. </view>
  210. <!-- 加购数量 -->
  211. <!-- <view class="num-module" wx:if="{{goods.type==4}}">
  212. <view class="plus-num">
  213. <view class="title">购买数量</view>
  214. <view class="calc-counter">
  215. <view class="minus-btn {{plusNum==0?'disable':''}}" bindtap="minusNum">-</view>
  216. <input class="num-input" bindinput="bindGoodsNumInput" type="number" maxlength="3" placeholder=""
  217. value="{{plusNum}}" />
  218. <view class="plus-btn" bindtap="addNum">+</view>
  219. </view>
  220. </view>
  221. </view>
  222. <view class="num-module" wx:elif="{{goods.unitPrice&&goods.unitPrice>0}}">
  223. <view class="plus-buy">
  224. <view class="title">加购</view>
  225. <view class="plus-name">{{goods.unitDescribe}}<text>¥{{goods.unitPrice}}</text>/{{goods.unitArea}}</view>
  226. </view>
  227. <view class="plus-num">
  228. <view class="title">加购数量</view>
  229. <view class="calc-counter">
  230. <view class="minus-btn {{plusNum==0?'disable':''}}" bindtap="minusNum">-</view>
  231. <input class="num-input" bindinput="bindGoodsNumInput" type="number" maxlength="3" placeholder=""
  232. value="{{plusNum}}" />
  233. <view class="plus-btn" bindtap="addNum">+</view>
  234. </view>
  235. </view>
  236. </view>
  237. -->
  238. <!-- 加购数量 -->
  239. <view class="num-module" wx:if="{{goods.productType==3&&goods.unitPrice&&goods.unitPrice>0}}">
  240. <view class="plus-buy">
  241. <view class="title">加购</view>
  242. <view class="plus-name">{{goods.unitDescribe}}<text>¥{{goods.unitPrice}}</text>/{{goods.unitArea}}</view>
  243. </view>
  244. <view class="plus-num" style="padding-left: 80rpx;">
  245. <view class="title" style="color:#000;width:160rpx;">加购数量</view>
  246. <view class="calc-counter">
  247. <view class="minus-btn {{plusNum==minNum?'disable':''}}" bindtap="minusNum">-</view>
  248. <!-- <input class="num-input" bindinput="bindGoodsNumInput" type="number" maxlength="3" placeholder=""
  249. value="{{plusNum}}" /> -->
  250. <view class="num-input">{{plusNum}}</view>
  251. <view class="plus-btn {{plusNum>=goods.unitMaximum?'disable':''}}" bindtap="addNum">+</view>
  252. </view>
  253. </view>
  254. <view style="color:#FE2B54;margin:8rpx 0 0;" wx-if="{{plusNum!=0}}">每份{{goods.unitArea}},加购{{plusNum}}份,合计{{addPurchaseAmount}}元</view>
  255. </view>
  256. <!-- 补差 -->
  257. <view class="num-module" wx:if="{{goods.type==4}}">
  258. <view class="plus-num" >
  259. <view class="title" style="color:#000;width:160rpx;text-align:left;display: inline-block;">购买数量</view>
  260. <view class="calc-counter">
  261. <view class="minus-btn {{plusNum==minNum?'disable':''}}" bindtap="minusNum">-</view>
  262. <!-- <input class="num-input" bindinput="bindGoodsNumInput" type="number" maxlength="3" placeholder=""
  263. value="{{plusNum}}" /> -->
  264. <view class="num-input">{{plusNum}}</view>
  265. <view class="plus-btn {{goods.unitMaximum&&plusNum>=goods.unitMaximum?'disable':''}}" bindtap="addNum">+</view>
  266. </view>
  267. </view>
  268. <view style="color:#FE2B54;margin:8rpx 0 0;">购买多份,叠加服务内容和服务时长。</view>
  269. </view>
  270. <!-- 无限购 -->
  271. <!-- wx:if="{{goods.productType==4&&goods.unitPrice&&goods.unitPrice>0}}" -->
  272. <view class="num-module" wx:if="{{goods.productType==4&&goods.unitPrice&&goods.unitPrice>0}}" >
  273. <view class="plus-num" >
  274. <view class="title" style="color:#000;width:160rpx;justify-content: flex-start;">购买数量</view>
  275. <view style="display: flex;align-items: center;">
  276. <view class="calc-counter" style="height: 62rpx;line-height:62rpx;">
  277. <input class="num-input" style="height: 62rpx;line-height:62rpx;width:140rpx;border:none;" bindinput="bindGoodsNumInput" type="number" maxlength="4" placeholder=""
  278. value="{{plusNum}}" />
  279. </view>
  280. <view style="margin-left:8rpx;">{{goods.unitArea}}</view>
  281. </view>
  282. </view>
  283. <view style="color:#FE2B54;margin:8rpx 0 0;" >每增加1{{goods.unitArea}},增加{{goods.unitPrice}}元,服务人数根据实际购买量指派。</view>
  284. </view>
  285. <!-- 关联工单 -->
  286. <view class="service-list" wx:if="{{goods.type==4}}">
  287. <view class="service-item" >
  288. <view class="order-title">关联工单</view>
  289. <view class="service-title">
  290. <view class="service-id">工单编号:{{bookDetail.bookDetailId}}</view>
  291. <view class="service-status">{{bookDetail.statusName}}</view>
  292. </view>
  293. <view class="service-main">
  294. <view class="customer-info">
  295. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png"></image>
  296. <view class="customer-main">
  297. <view class="main-line">
  298. <view>{{bookDetail.consignee}}</view>
  299. <view class="phone">{{bookDetail.mobile}}</view>
  300. </view>
  301. <view class="customer-address">{{bookDetail.address}}</view>
  302. </view>
  303. </view>
  304. <view class="row">
  305. <text>上门时段:</text>{{bookDetail.bookTime}}
  306. </view>
  307. <view class="row">
  308. <text>预约备注:</text>{{bookDetail.message}}
  309. </view>
  310. </view>
  311. <view class="service-remark-wrapper" >
  312. <view class="service-store">
  313. <view class="store-left">
  314. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-store.png"></image>
  315. <view>{{bookDetail.fraName}}</view>
  316. </view>
  317. </view>
  318. </view>
  319. </view>
  320. </view>
  321. <!-- 团购评价 -->
  322. <view class="group-evaluation">
  323. <view class="title" bindtap="goWholeEval">
  324. <view class="left">团购评价(999+条)</view>
  325. <view class="right">
  326. <view>查看全部</view>
  327. <van-icon name="arrow" color="#85868A" />
  328. </view>
  329. </view>
  330. <view class="evaluation-item" wx:for="{{goodsComment}}" wx:key="index">
  331. <view class="item-left">
  332. <view class="eval-top">
  333. <image src="{{item.cusHeadImg}}" mode="aspectFill" class="avatar"></image>
  334. <view class="name">{{item.cusName}}</view>
  335. <view class="tag">{{item.cusLabel}}</view>
  336. <view class="hp">{{item.commentType}}</view>
  337. </view>
  338. <view class="eval-content">
  339. {{item.comment}}
  340. </view>
  341. </view>
  342. <view class="item-right">
  343. <image src="{{item.commentImg}}" mode="aspectFill"></image>
  344. </view>
  345. </view>
  346. </view>
  347. <view class="detail">
  348. <import src="/lib/wxParse/wxParse.wxml" />
  349. <template is="wxParse" data="{{wxParseData:goodsDetail.nodes}}" />
  350. </view>
  351. <!-- <view class="common-problem">
  352. <view class="h">
  353. <view class="line"></view>
  354. <text class="title">常见问题</text>
  355. </view>
  356. <view class="b">
  357. <view class="item" wx:for="{{issueList}}" wx:key="id">
  358. <view class="question-box">
  359. <text class="spot"></text>
  360. <text class="question">{{item.question}}</text>
  361. </view>
  362. <view class="answer">
  363. {{item.answer}}
  364. </view>
  365. </view>
  366. </view>
  367. </view> -->
  368. <!-- 大家都在看 -->
  369. <view class="related-goods" wx:if="{{relatedGoods.length > 0}}">
  370. <view class="h">
  371. <view class="line"></view>
  372. <text class="title">大家都在看</text>
  373. </view>
  374. <view class="b">
  375. <view class="item" wx:for="{{relatedGoods}}" wx:key="id">
  376. <navigator url="/pages/goods/goods?id={{item.id}}">
  377. <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
  378. <text class="name">{{item.name}}</text>
  379. <text class="price">¥{{item.retailPrice}}</text>
  380. </navigator>
  381. </view>
  382. </view>
  383. </view>
  384. </view>
  385. <!-- 规格选择界面 -->
  386. <view class="attr-pop-box" hidden="{{!openshow}}">
  387. <view class="attr-pop">
  388. <view class="close" bindtap="closeAttr">
  389. <van-icon class="icon" name="cross" />
  390. </view>
  391. </view>
  392. </view>
  393. <!-- 规格选择界面 -->
  394. <view class="attr-pop-box" hidden="{{!openAttr}}">
  395. <view class="attr-pop">
  396. <view class="close" bindtap="closeAttr">
  397. <van-icon class="icon" name="cross" />
  398. </view>
  399. <view class="img-info">
  400. <image class="img" src="{{goods.picUrl}}"></image>
  401. <view class="info">
  402. <view class="c">
  403. <view class="p">价格:¥{{checkedSpecPrice}}</view>
  404. <view class="a">{{tmpSpecText}}</view>
  405. </view>
  406. </view>
  407. </view>
  408. <!-- 规格列表 -->
  409. <view class="spec-con">
  410. <view class="spec-item" wx:for="{{specificationList}}" wx:key="name">
  411. <view class="name">{{item.name}}</view>
  412. <view class="values">
  413. <view class="value {{vitem.checked ? 'selected' : ''}}" bindtap="clickSkuValue"
  414. wx:for="{{item.valueList}}" wx:for-item="vitem" wx:key="id" data-value-id="{{vitem.id}}"
  415. data-name="{{vitem.specification}}">
  416. {{vitem.value}}</view>
  417. </view>
  418. </view>
  419. <view class="spec-item" wx:if="{{groupon.length > 0}}">
  420. <view class="name">团购立减</view>
  421. <view class="values">
  422. <view class="value {{vitem.checked ? 'selected' : ''}}" bindtap="clickGroupon" wx:for="{{groupon}}"
  423. wx:for-item="vitem" wx:key="{{vitem.id}}" data-value-id="{{vitem.id}}"
  424. data-name="{{vitem.specification}}">
  425. ¥{{vitem.discount}} ({{vitem.discountMember}}人)</view>
  426. </view>
  427. </view>
  428. <!-- 数量 -->
  429. <view class="number-item">
  430. <view class="name">数量</view>
  431. <view class="selnum">
  432. <!-- <view class="cut" bindtap="cutNumber">-</view> -->
  433. <input value="{{number}}" class="number" disabled="true" type="number" />
  434. <!-- <view class="add" bindtap="addNumber">+</view> -->
  435. </view>
  436. </view>
  437. </view>
  438. </view>
  439. </view>
  440. <!-- 联系客服
  441. <view class="contact">
  442. <contact-button style="opacity:0;position:absolute;" type="default-dark" session-from="weapp" size="36">
  443. </contact-button>
  444. </view> -->
  445. <!-- 底部按钮 -->
  446. <view class="bottom-btn" style="position:{{myqr_bottom_btn}}">
  447. <view class="l l-collect" bindtap="addCollectOrNot" wx:if="{{!isGroupon}}">
  448. <view class="collect-wrapper">
  449. <van-icon class="icon" name="star" color="#09afff" wx:if="{{collect}}" size="22px" />
  450. <van-icon class="icon" size="22px" color="#09afff" name="star-o" wx:else />
  451. <text class="jz-color collect-text">收藏</text>
  452. </view>
  453. </view>
  454. <view class="l l-kefu">
  455. <view class="service-wrapper" bindtap="goCustomerService">
  456. <view class="contact-block">
  457. <!-- <contact-button style="opacity:0;position:absolute; left:16rpx; top:0rpx;" type="default-dark"
  458. session-from="weapp" size="44">
  459. </contact-button> -->
  460. <van-icon name="service-o" color="#09afff" size="22px" />
  461. </view>
  462. <text class="jz-color">在线客服</text>
  463. </view>
  464. </view>
  465. <!-- <view class="l l-cart" wx:if="{{!isGroupon}}">
  466. <view class="box" bindtap="openCartPage">
  467. <text class="cart-count" wx:if="{{cartGoodsCount>0}}">{{cartGoodsCount}}</text>
  468. <van-icon class="icon" name="cart-o" />
  469. <text class="txt">购物车</text>
  470. </view>
  471. </view> -->
  472. <!-- <view class="r" bindtap="addToCart" wx:if="{{!soldout}}" wx:if="{{!isGroupon}}">加入购物车</view> -->
  473. <!-- <view class="r" bindtap="copyToHM">
  474. <view class="title">复制链接</view>
  475. <view class="subtitle">去盒马APP下单</view>
  476. </view> -->
  477. <!-- <view class="c" bindtap="addFast" wx:if="{{!soldout||!hasLogin}}">{{isGroupon?'参加团购':'立即预约'}}</view>
  478. <view class="n" wx:if="{{soldout}}">商品已售空</view> -->
  479. <!-- 自购&推广 分享进入有shareId不展示自购推广-->
  480. <!-- (hasLogin&&userInfo.isDis)||(hasLogin&&shareId==0)
  481. <view class="dis-order-wrapper" wx:if="{{hasLogin&&userInfo.isDis&&referee.self>0}}">
  482. <view class="self-order" bindtap="goSelfPay">
  483. <view class="buy-type">自购</view>
  484. <view>立省 {{referee.self}}元</view>
  485. </view>
  486. <view class="spread-order" bindtap="goSpread">
  487. <view class="buy-type jz-color" style="overflow: hidden;">推广</view>
  488. <view class="jz-color" style="overflow: hidden;">最高返 {{referee.share}}元</view>
  489. </view>
  490. </view>
  491. <block wx:else>
  492. <view class="c" bindtap="addFast" wx:if="{{!soldout||!hasLogin}}">{{isGroupon?'参加团购':'立即预约'}}</view>
  493. <view class="n" wx:if="{{soldout}}">商品已售空</view>
  494. </block>-->
  495. <view class="dis-order-wrapper" wx:if="{{goods.type==0||goods.type==3}}">
  496. <view class="self-order" data-type='0' bindtap="addFast">
  497. <view class="buy-type">先买后约</view>
  498. </view>
  499. <view class="spread-order" data-type='1' bindtap="addFast">
  500. <view class="buy-type jz-color" style="overflow: hidden;">立即预约</view>
  501. </view>
  502. </view>
  503. <view class="dis-order-wrapper" wx:elif="{{goods.type==2||goods.type==4}}">
  504. <view class="self-order" data-type='0' bindtap="addFast">
  505. <view class="buy-type">立即购买</view>
  506. </view>
  507. </view>
  508. <block wx:elif="{{goods.type==6}}">
  509. <view class="c" bindtap="addFast" data-type='1' wx:if="{{!soldout||!hasLogin}}">立即购买</view>
  510. </block>
  511. <block wx:else>
  512. <view class="c" bindtap="addFast" data-type='1' wx:if="{{!soldout||!hasLogin}}">立即预约</view>
  513. </block>
  514. </view>
  515. <!-- 自购提示 -->
  516. <van-overlay show="{{ selfPayShow }}">
  517. <view class="overlay-wrapper">
  518. <view class="tips-wrapper">
  519. <view class="tips-top">
  520. <view class="tips-title">立省金额说明</view>
  521. <view>立省金额会以佣金形式发放,请在引荐人中心查收哦</view>
  522. </view>
  523. <view class="notip-again">
  524. <van-checkbox value="{{selfPayChecked}}" shape="square" icon-size="20px" bind:change="onSelfPayChange"
  525. checked-color="#09afff"></van-checkbox>
  526. <text class="user-agree">我已知晓,不再提示</text>
  527. </view>
  528. <view class="tips-bottom">
  529. <view class="cancel-btn" bindtap="cancelSelfPay">取消</view>
  530. <view class="btn-devide"></view>
  531. <view class="repay-btn" bindtap="reSelfPay">继续购买</view>
  532. </view>
  533. </view>
  534. </view>
  535. </van-overlay>
  536. <!-- 推广提示 -->
  537. <van-overlay show="{{spreadPayShow }}">
  538. <view class="overlay-wrapper">
  539. <view class="tips-wrapper">
  540. <view class="tips-top">
  541. <view class="tips-title">推广佣金说明</view>
  542. <view>页面展示推广佣金为预计最高返现金额,实际金额根据购买者团队身份计算,请在引荐人中心查看实际佣金</view>
  543. </view>
  544. <view class="notip-again">
  545. <van-checkbox value="{{spreadPayChecked}}" shape="square" icon-size="20px"
  546. bind:change="onSpreadPayChange" checked-color="#09afff"></van-checkbox>
  547. <text class="user-agree">我已知晓,不再提示</text>
  548. </view>
  549. <view class="tips-bottom">
  550. <view class="cancel-btn" bindtap="cancelSpreadPay">取消</view>
  551. <view class="btn-devide"></view>
  552. <view class="repay-btn" bindtap="reSpread">继续推广</view>
  553. </view>
  554. </view>
  555. </view>
  556. </van-overlay>
  557. <!-- bind:click-overlay="onSkuClose" -->
  558. <!-- sku规格列表 -->
  559. <van-popup show="{{ chooseSkuVisible }}" round position="bottom" bind:click-overlay="onSkuClose">
  560. <view class="spu-popup">
  561. <view class="popup-good">
  562. <view class="left">
  563. <image src="{{currentSku.url}}" mode="aspectFill"></image>
  564. <view class="spu-price">¥<text>{{currentSku.price}}</text></view>
  565. <view class="spu-price-old">¥{{currentSku.price}}</view>
  566. </view>
  567. <image src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/sku-close.png" mode="aspectFill"
  568. class="sku-close" bindtap="onSkuClose"></image>
  569. </view>
  570. <scroll-view scroll-y="true" class="sku-list-block">
  571. <view class="spu-title">
  572. 选择品类
  573. </view>
  574. <view style="padding-bottom:20rpx;">
  575. <view class="sku-item {{activeSku==item.id?'active-sku':''}}" wx:for="{{productList}}" wx:key="index"
  576. data-index="{{index}}" data-id="{{item.id}}" bindtap="selectSku">
  577. <view>
  578. {{item.specifications[0]}}
  579. </view>
  580. </view>
  581. </view>
  582. </scroll-view>
  583. <view class="sku-btn" bindtap="confSku">
  584. 确认
  585. </view>
  586. </view>
  587. </van-popup>
  588. <!-- 补差提示 -->
  589. <van-overlay show="{{ supplyBuyTips }}">
  590. <view class="overlay-wrapper">
  591. <view class="tips-wrapper supply-overlay">
  592. <view class="tips-top">
  593. <view class="tips-title">提示</view>
  594. </view>
  595. <view class="supply-content">
  596. <!-- 关联工单 -->
  597. <view class="service-list" wx:if="{{goods.type==4}}">
  598. <view class="service-item" >
  599. <view class="service-title">
  600. <view class="service-id">工单编号:{{bookDetail.bookDetailId}}</view>
  601. <view class="service-status">{{bookDetail.statusName}}</view>
  602. </view>
  603. <view class="service-main">
  604. <view class="customer-info">
  605. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png"></image>
  606. <view class="customer-main">
  607. <view class="main-line">
  608. <view>{{bookDetail.consignee}}</view>
  609. <view class="phone">{{bookDetail.mobile}}</view>
  610. </view>
  611. <view class="customer-address">{{bookDetail.address}}</view>
  612. </view>
  613. </view>
  614. <view class="row">
  615. <text>上门时段:</text>{{bookDetail.bookTime}}
  616. </view>
  617. <view class="row">
  618. <text>预约备注:</text>{{bookDetail.message}}
  619. </view>
  620. </view>
  621. </view>
  622. </view>
  623. </view>
  624. <view class="supply-tips">
  625. 请核对您要补差的工单信息,如果不一致,请停止支付并联系服务者或客服检查核验
  626. </view>
  627. <view class="tips-bottom">
  628. <view class="cancel-btn" bindtap="cancelSupply">取消</view>
  629. <view class="btn-devide"></view>
  630. <view class="repay-btn" bindtap="continueSupply">确认</view>
  631. </view>
  632. </view>
  633. </view>
  634. </van-overlay>