prod.wxml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. <!-- 商品详情 -->
  2. <view class="container ">
  3. <!-- 轮播图 -->
  4. <view class="swiper-con">
  5. <view class="video-container" wx:if="{{video && isPlaying}}">
  6. <video enable-progress-gesture="{{false}}" objectFit="fill" id="myVideo" src="{{video}}" controls bindended="playEnd"></video>
  7. </view>
  8. <view class="play-btn {{isPlaying?'video-index':''}}" bindtap="videoOper" wx:if="{{video}}">
  9. <image class="play-icon" wx:if="{{!isPlaying}}" src="../../images/icon/play-red.png"></image>
  10. <text class="play-text {{isPlaying?'video-stop':'video-play'}}">{{isPlaying?'退出播放': videoDuration}}</text>
  11. </view>
  12. <swiper wx:if="{{!isPlaying}}" circular="{{true}}" indicator-dots="{{indicatorDots}}" indicator-color="{{indicatorColor}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color="{{indicatorActiveColor}}">
  13. <block wx:for="{{imgs}}" wx:key='index'>
  14. <swiper-item>
  15. <image src='{{item}}'></image>
  16. </swiper-item>
  17. </block>
  18. </swiper>
  19. </view>
  20. <!-- 轮播图end -->
  21. <view class="content">
  22. <!-- 倒计时栏 -->
  23. <view class="countdown-box clearfix" wx-if="{{groupActivityId}}">
  24. <!-- 拼团 -->
  25. <text class="second-kill">拼团</text>
  26. <view class="countdown-content">
  27. <text class="countdown-tips" wx-if="{{groupActivity.activityStatus === 1}}">距开始仅剩</text>
  28. <text class="countdown-tips" wx-if="{{groupActivity.activityStatus !== 1}}">距结束仅剩</text>
  29. <text class="countdown-time">{{endOfGroupTime.day}} 天 {{endOfGroupTime.hou}} 时 {{endOfGroupTime.min}} 分 {{endOfGroupTime.sec}} 秒
  30. </text>
  31. </view>
  32. </view>
  33. <!-- 普通商品价格 -->
  34. <view class="prod-price" wx-if="{{!groupActivityId}}">
  35. <text class="price">¥<text class="price-num">{{wxs.parsePrice(defaultSku.price)[0]}}</text>.{{wxs.parsePrice(defaultSku.price)[1]}}</text>
  36. <!-- <text class="sales"></text> -->
  37. </view>
  38. <!-- 商品信息 -->
  39. <view class='prod-info'>
  40. <view class="tit-wrap">
  41. <view class="prod-tit">{{prodName}}</view>
  42. <view class="col" bindtap='addOrCannelCollection'>
  43. <image wx-if="{{!isCollection}}" src="../../images/icon/prod-col.png"></image>
  44. <image wx-if="{{isCollection}}" src="../../images/icon/prod-col-red.png"></image>
  45. <!-- 收藏 -->
  46. </view>
  47. </view>
  48. <view class="sales-p">{{brief}}</view>
  49. <!-- 拼团商品价格 -->
  50. <view class="goods-price" wx-if="{{groupActivityId}}">
  51. <view class="current-price">
  52. <text class="current-price">
  53. <text class="price">¥<text class="price-num">{{wxs.parsePrice(detaultGroupSku.actPrice)[0]}}</text> .{{wxs.parsePrice(detaultGroupSku.actPrice)[1]}}</text>
  54. <!-- <text class="sub">¥{{detaultGroupSku.actPrice}}</text> -->
  55. </text>
  56. <text class="condition">{{groupActivity.groupNumber}}人拼团价</text>
  57. </view>
  58. <view class="original">
  59. 原价
  60. <text class="original-price">¥{{wxs.toPrice(detaultGroupSku.price)}}</text>
  61. </view>
  62. </view>
  63. <!-- 积分商品价格 -->
  64. <!-- <view class="integral-prod-price" wx-if="">100积分</view> -->
  65. </view>
  66. <!-- 商品信息end -->
  67. <!-- 满减折 -->
  68. <view class="discount border-radius-box" wx:if="{{prodDiscountList.length}}" bindtap="clickDiscount">
  69. <view class="coupon-tit">促销</view>
  70. <view class="coupon-con discount-con">
  71. <block wx:for="{{prodDiscountList}}" wx:key="discountId" wx:if="{{index<1}}">
  72. <view class="discount-item">
  73. <view class="discount-tag">{{wxs.parseDiscount(item.discountRule)}}</view>
  74. <text class="discount-content">
  75. <text wx:if="{{item.discountType}}">每</text> {{item.discountName}},最高减免{{item.maxReduceAmount}}元
  76. </text>
  77. </view>
  78. </block>
  79. </view>
  80. <!-- <view class="num">共{{prodDiscountList.length}}张</view> -->
  81. <view class="more">...</view>
  82. </view>
  83. <!-- 满减折end -->
  84. <!-- 领券 -->
  85. <view class="coupon border-radius-box" bindtap='showPopup' wx:if="{{couponList.length && !groupActivityId}}">
  86. <view class="coupon-tit">领券</view>
  87. <view class="coupon-con">
  88. <text class="item" wx:for="{{couponList}}" wx:if="{{index<2}}" wx:key="couponId">满{{item.cashCondition}}<block wx:if="{{item.couponType == 1}}">减{{item.reduceAmount}}</block>
  89. <block wx:if="{{item.couponType == 2}}">打{{item.couponDiscount}}折</block>
  90. </text>
  91. </view>
  92. <view class="num">共{{couponList.length}}张</view>
  93. <view class="more">...</view>
  94. </view>
  95. <!-- 领券end -->
  96. <!-- 拼团信息 -->
  97. <view class="spell-infor" wx-if="{{joinGroupList.length}}">
  98. <view class="spell-infor-title">以下小伙伴正在发起拼团,你可以直接参加</view>
  99. <view class="spell-infor-content" wx:for="{{joinGroupList}}" wx:key='groupTeamId'>
  100. <!-- 头像 -->
  101. <view class="head-img">
  102. <image src="{{item.sharePic}}"></image>
  103. </view>
  104. <!-- 信息 -->
  105. <view class="spell-msg">
  106. <view class="username">{{item.shareNickName}}</view>
  107. <view class="spell-text">
  108. 还差
  109. <text class="red-font">{{item.groupNumber - item.joinNum}}</text> 人成团,剩余 {{item.endOfGroupTime.hou}}时{{item.endOfGroupTime.min}}分{{item.endOfGroupTime.sec}}秒
  110. </view>
  111. </view>
  112. <!-- 凑团按钮 -->
  113. <view class="join-group" bindtap="toSpellGroupDetail" data-groupteamid="{{item.groupTeamId}}">
  114. 去凑团
  115. </view>
  116. </view>
  117. <!-- 详情 -->
  118. <view class="rules clearfix">
  119. <text class="rules-text01">支付开团邀请{{groupActivity.groupNumber}}人参团,人数不足自动退款</text>
  120. </view>
  121. </view>
  122. <!-- 拼团信息end -->
  123. <!-- 已选规格 -->
  124. <view class="sku border-radius-box" bindtap='showSku'>
  125. <view class="sku-tit">已选</view>
  126. <view class="sku-con">{{selectedProp.length>1?selectedProp+',':selectedProp}}{{prodNum}}件</view>
  127. <view class="more">...</view>
  128. </view>
  129. <!-- 已选规格end -->
  130. <!-- 评价 -->
  131. <view class='cmt-wrap border-radius-box'>
  132. <view class="cmt-tit" bindtap='showComment'>
  133. <view class="cmt-t">
  134. 评价({{prodCommData.number}})
  135. <!-- <text class="cmt-good">好评{{prodCommData.positiveRating}}%</text> -->
  136. </view>
  137. <text class="cmt-good">好评{{prodCommData.positiveRating}}% <text class="cmt-more"></text></text>
  138. <!-- <view class="cmt-count">
  139. 共{{prodCommData.number}}条
  140. <text class="cmt-more"></text>
  141. </view> -->
  142. </view>
  143. <view class="cmt-cont">
  144. <view class="cmt-tag" bindtap='showComment'>
  145. <text>全部({{prodCommData.number}})</text>
  146. <text>好评({{prodCommData.praiseNumber}})</text>
  147. <text>中评({{prodCommData.secondaryNumber}})</text>
  148. <text>差评({{prodCommData.negativeNumber}})</text>
  149. <text>有图({{prodCommData.picNumber}})</text>
  150. </view>
  151. <view class="cmt-items">
  152. <view class="cmt-item" wx:for="{{littleCommPage}}" wx:key="prodCommId">
  153. <view class="cmt-user">
  154. <text class="date">{{item.recTime}}</text>
  155. <view class="cmt-user-info">
  156. <image class="user-img" src="{{item.pic?item.pic:'../../images/icon/head04.png'}}"></image>
  157. <view class="nickname">{{item.isAnonymous==1?'匿名评价':item.nickName}}</view>
  158. <comm-star value="{{item.score}}"></comm-star>
  159. </view>
  160. </view>
  161. <view class="cmt-cnt">{{item.content}}</view>
  162. <scroll-view class="cmt-attr" scroll-x="true" wx:if="{{item.pics.length}}">
  163. <image src="{{commPic}}" wx:for='{{item.pics}}' wx:for-item="commPic" wx:key='index' data-pics="{{item.pics}}" data-index="{{index}}" bindtap='clickImg'></image>
  164. </scroll-view>
  165. </view>
  166. </view>
  167. <view class="cmt-more-v" wx:if="{{prodCommPage.records.length > 2}}">
  168. <text bindtap='showComment'>查看全部评价</text>
  169. </view>
  170. </view>
  171. </view>
  172. <!-- 评价 end -->
  173. <!-- 店铺 -->
  174. <view class="shop-box border-radius-box">
  175. <!-- top -->
  176. <view class="shopbox-head">
  177. <view class="shop-logo">
  178. <image src="{{shopLogo}}"></image>
  179. </view>
  180. <view class="shop-name">{{shopName}}</view>
  181. <!-- <view class="self-operate" wx-if="{{shopId==1}}">自营店铺</view> -->
  182. <view class="self-operate" >自营店铺</view>
  183. </view>
  184. <!-- middle -->
  185. <!-- <view class="shop-situation">
  186. <view class="situation-item">
  187. <view class="situation-item-num">612354</view>
  188. <view class="situation-item-txt">粉丝人数</view>
  189. </view>
  190. <view class="situation-item">
  191. <view class="situation-item-num">309</view>
  192. <view class="situation-item-txt">全部商品</view>
  193. </view>
  194. </view> -->
  195. <!-- bottom -->
  196. <!-- <view class="handle-shop">
  197. <view class="handle-shop-item">
  198. <view class="handle-shop-icon star-icon"><image src="../../images/icon/star-empty.png"></image></view>
  199. <text class="handle-txt">收藏店铺</text>
  200. </view>
  201. <view class="handle-shop-item">
  202. <view class="handle-shop-icon shop-icon"><image src="../../images/icon/shop.png"></image></view>
  203. <text class="handle-txt">进入店铺</text>
  204. </view>
  205. </view> -->
  206. </view>
  207. <!-- 店铺end -->
  208. <!-- 商品详情 -->
  209. <view class="prod-detail">
  210. <rich-text nodes="{{content}}"></rich-text>
  211. </view>
  212. <!-- 商品详情end -->
  213. </view>
  214. <!-- 底部按钮 -->
  215. <view class="cart-footer {{totalStocks>0?'':'gray'}}" wx-if="{{!groupActivityId}}">
  216. <view class="btn icon" bindtap='toHomePage'>
  217. <image src="../../images/tabbar/homepage.png"></image>
  218. 首页
  219. </view>
  220. <view class='btn icon contact-btn-box'>
  221. <image src='../../images/icon/shop-customer-service.png'></image>
  222. 客服
  223. <button class="contact-btn" open-type="contact" bindcontact="handleContact" session-from="sessionFrom"></button>
  224. </view>
  225. <view class="btn icon" bindtap='toCartPage'>
  226. <image src="../../images/tabbar/basket.png"></image>
  227. 购物车
  228. <view class='badge badge-1' wx:if="{{totalCartNum>0}}">{{totalCartNum}}</view>
  229. </view>
  230. <view class="btn cart cart-radius" bindtap='addToCart'>
  231. <text>加入购物车</text>
  232. </view>
  233. <view class="btn buy cart-radius" bindtap='buyNow'>
  234. <text>立即购买</text>
  235. </view>
  236. </view>
  237. <!-- 底部按钮 end -->
  238. <!-- 积分 底部按钮 -->
  239. <!-- <view class="ex-integral-foot">
  240. <view class="ex-integral-btn">立即兑换</view>
  241. </view> -->
  242. <!-- 【拼团】底部按钮 -->
  243. <view class="foot-box" wx-if="{{groupActivityId}}">
  244. <view class="footer">
  245. <view class="foot-btn" bindtap='toHomePage'>
  246. <image src="../../images/tabbar/homepage.png"></image>
  247. 首页
  248. </view>
  249. <view catchtap='freeTell' class='foot-btn'>
  250. <image src='../../images/icon/shop-customer-service.png'></image>
  251. 客服
  252. </view>
  253. <view class="foot-btn" bindtap='toCartPage'>
  254. <image src="../../images/tabbar/basket.png"></image>
  255. 购物车
  256. <view class='badge badge-1' wx:if="{{totalCartNum>0}}">{{totalCartNum}}</view>
  257. </view>
  258. <view class="buy-btn alone-buy cart-radius" bindtap='showSku' data-alonebuy="1">
  259. <text>单独购买</text>
  260. </view>
  261. <view class="buy-btn group-buy cart-radius" bindtap='showGroupSku'>
  262. <text>开团</text>
  263. </view>
  264. </view>
  265. </view>
  266. <!-- end 底部按钮 -->
  267. </view>
  268. <!-- 满减折弹窗 -->
  269. <view class="popup-hide" wx:if="{{showDiscountPopup}}">
  270. <view class="popup-box border-radius-t-r">
  271. <view class="popup-tit border-radius-t-r">
  272. <text>促销</text>
  273. <text class="close" bindtap='clickDiscount'></text>
  274. </view>
  275. <view class='popup-cnt popup-discount'>
  276. <view class="coupon-con discount-con">
  277. <block wx:for="{{prodDiscountList}}" wx:key="discountId">
  278. <view class="discount-item">
  279. <view class="discount-tag">{{wxs.parseDiscount(item.discountRule)}}</view>
  280. <text class="discount-content">
  281. <text wx:if="{{item.discountType}}">每</text> {{item.discountName}},最高减免{{item.maxReduceAmount}}元
  282. </text>
  283. </view>
  284. </block>
  285. </view>
  286. </view>
  287. </view>
  288. </view>
  289. <!-- 满减折弹窗 end -->
  290. <!-- 优惠券弹窗 -->
  291. <view class="popup-hide" wx:if="{{popupShow}}">
  292. <view class="popup-box border-radius-t-r">
  293. <view class="popup-tit border-radius-t-r">
  294. <text>优惠券</text>
  295. <text class="close" bindtap='closePopup'></text>
  296. </view>
  297. <view class='popup-cnt'>
  298. <block wx:for="{{couponList}}" wx:key='couponId'>
  299. <coupon showTimeType="{{1}}" canUse="{{true}}" item="{{item}}"></coupon>
  300. </block>
  301. </view>
  302. </view>
  303. </view>
  304. <!-- 优惠券 end -->
  305. <!-- 规格弹窗 -->
  306. <view class="pup-sku" wx:if="{{skuShow}}">
  307. <view class="pup-sku-main border-radius-t-r">
  308. <view class='pup-sku-header border-radius-t-r'>
  309. <view class='close' bindtap='closePopup'></view>
  310. <view class="pup-sku-img">
  311. <image src="{{defaultSku.pic?defaultSku.pic:pic}}"></image>
  312. </view>
  313. <view class="pup-sku-prod">
  314. <!-- <view class="prod-title">{{prodName}}</view> -->
  315. <view class="pup-sku-price" wx:if="{{skuShowType==0 && findSku}}">
  316. ¥<text class="pup-sku-price-int">{{wxs.parsePrice(defaultSku.price)[0]}}</text>.{{wxs.parsePrice(defaultSku.price)[1]}}
  317. </view>
  318. <view class="pup-sku-price group-sku-pri" wx:if="{{skuShowType==1 && findSku}}">
  319. <text>¥<text class="pup-sku-price-int">{{wxs.parsePrice(detaultGroupSku.actPrice)[0]}}</text>.{{wxs.parsePrice(detaultGroupSku.actPrice)[1]}}</text>
  320. <text class="act-price-con">{{groupActivity.groupNumber}}人拼团价</text>
  321. </view>
  322. <view class="pup-sku-price" wx-if="{{totalStocks<0}}">无货</view>
  323. <view class='pup-sku-prop'>
  324. <text>已选</text><text decode="{{true}}">&nbsp;{{selectedProp.length>1?selectedProp+',':selectedProp}}{{prodNum}}&nbsp;件</text>
  325. </view>
  326. </view>
  327. </view>
  328. <view class='pup-sku-body'>
  329. <view class="pup-sku-area">
  330. <block wx:for="{{skuGroup}}" wx:for-index="key" wx:for-item="value" wx:key='*this'>
  331. <view class='sku-kind'>{{key}}</view>
  332. <view class='sku-choose' wx:if="{{item!=null}}">
  333. <block wx:for="{{value}}" wx:key='*this'>
  334. <text class="sku-choose-item {{wxs.array_contain(selectedProp,item)?'active':''}} {{['gray','','dashed'][wxs.props_contain2(allProperties,selectedPropObj,key,item,propKeys)]}}" data-ok="{{wxs.props_contain2(allProperties,selectedPropObj,key,item,propKeys)}}" bindtap='toChooseItem' data-key="{{key}}" data-val="{{item}}">{{item||''}}</text>
  335. </block>
  336. </view>
  337. </block>
  338. </view>
  339. <view class="pup-sku-count">
  340. <view class="num-wrap">
  341. <view class="minus" bindtap='onCountMinus'>
  342. <text class="row"></text>
  343. </view>
  344. <view class="text-wrap">
  345. <input type="number" value="{{prodNum}}" disabled />
  346. </view>
  347. <view class="plus" bindtap='onCountPlus'>
  348. <text class="row"></text>
  349. <text class="col"></text>
  350. </view>
  351. </view>
  352. <view class="count-name">数量</view>
  353. </view>
  354. </view>
  355. <view class='pup-sku-footer {{totalStocks>0?"":"gray"}}'>
  356. <view class="btn cart" bindtap='addToCart' wx:if="{{skuShowType==0}}">加入购物车</view>
  357. <view class="btn buy" bindtap='buyNow' wx:if="{{skuShowType==0}}">立即购买</view>
  358. <view class="btn buy" bindtap='groupConfirmOrder' data-teamid="0" wx:if="{{skuShowType==1}}">
  359. 开团
  360. </view>
  361. </view>
  362. </view>
  363. </view>
  364. <!-- 规格弹窗 end -->
  365. <!-- 评价弹窗 -->
  366. <view class="cmt-popup" wx:if="{{commentShow}}">
  367. <view class="cmt-tit">
  368. <view class="cmt-t">
  369. 商品评价
  370. <text class="cmt-good">好评度{{prodCommData.positiveRating}}%</text>
  371. </view>
  372. <text class="close" bindtap='closePopup'></text>
  373. </view>
  374. <view class="cmt-cont">
  375. <view class="cmt-tag">
  376. <text bindtap='getProdCommPage' data-evaluate="-1" class="{{evaluate==-1?'selected':''}}">全部({{prodCommData.number}})</text>
  377. <text bindtap='getProdCommPage' data-evaluate="0" class="{{evaluate==0?'selected':''}}">好评({{prodCommData.praiseNumber}})</text>
  378. <text bindtap='getProdCommPage' data-evaluate="1" class="{{evaluate==1?'selected':''}}">中评({{prodCommData.secondaryNumber}})</text>
  379. <text bindtap='getProdCommPage' data-evaluate="2" class="{{evaluate==2?'selected':''}}">差评({{prodCommData.negativeNumber}})</text>
  380. <text bindtap='getProdCommPage' data-evaluate="3" class="{{evaluate==3?'selected':''}}">有图({{prodCommData.picNumber}})</text>
  381. </view>
  382. <view class="cmt-items">
  383. <view class="cmt-item" wx:for="{{prodCommPage.records}}" wx:key="prodCommId">
  384. <view class="cmt-user">
  385. <text class="date">{{item.recTime}}</text>
  386. <view class="cmt-user-info">
  387. <image class="user-img" src="{{item.pic?item.pic:'../../images/icon/head04.png'}}"></image>
  388. <view class="nickname">{{item.isAnonymous==1?'匿名评价':item.nickName}}</view>
  389. <comm-star value="{{item.score}}"></comm-star>
  390. </view>
  391. </view>
  392. <view class="cmt-cnt">{{item.content}}</view>
  393. <scroll-view class="cmt-attr" scroll-x="true" wx:if="{{item.pics.length}}">
  394. <image src="{{commPic}}" wx:for='{{item.pics}}' wx:for-item="commPic" wx:key='index' data-pics="{{item.pics}}" data-index="{{index}}" bindtap='clickImg'></image>
  395. </scroll-view>
  396. <view class="cmt-reply" wx:if="{{item.replyContent}}">
  397. <text class='reply-tit'>店铺回复:</text>
  398. <view class="reply-content">{{item.replyContent}}</view>
  399. </view>
  400. </view>
  401. </view>
  402. <!-- 列表空 -->
  403. <view class="empty" wx:if="{{!prodCommPage.records.length}}">
  404. <view class="empty-icon">
  405. <image src="../../images/icon/empty-com.png"></image>
  406. </view>
  407. <view class="empty-text">还没有商品评价~</view>
  408. </view>
  409. <!-- /列表空 -->
  410. <view class="load-more" wx:if='{{prodCommPage.pages > prodCommPage.current}}'>
  411. <text bindtap='getMoreCommPage'>点击加载更多</text>
  412. </view>
  413. </view>
  414. </view>
  415. <!-- 评价弹窗 end -->
  416. <!-- 悬浮按钮 -->
  417. <view class="suspension-box {{showBacktop?'scroll-top':''}}" wx:if="{{!popupShow && !skuShow && !commentShow && !skuGroupShow}}">
  418. <!-- 赚字浮层 -->
  419. <view class="promo-con" wx:if="{{isDist && isDistProd}}" bindtap='onShowShare' data-type="2">
  420. <view class="earn">赚</view>
  421. </view>
  422. <!-- 分享 -->
  423. <button class="suspension-btn btn-type" open-type='share' wx:if="{{!(isDist && isDistProd)}}">
  424. <!-- / -->
  425. <image src="../../images/icon/share-prod.png"></image>
  426. </button>
  427. <!-- 回到顶部 -->
  428. <view class="suspension-btn" bindtap='backToTop' wx:if="{{showBacktop}}">
  429. <image src="../../images/icon/back-to-top.png"></image>
  430. </view>
  431. </view>
  432. <!-- /悬浮按钮 -->
  433. <!-- 分享弹窗 -->
  434. <view class='promo-share' wx:if="{{shareShow}}">
  435. <view class='promo-main'>
  436. <view class='promo-icons-close' bindtap='closeEarn'>
  437. <image src="../../images/icon/close.png"></image>
  438. </view>
  439. <view class='promo-tit'>
  440. <title>立即分享给好友</title>
  441. </view>
  442. <view class='promo-desc'>
  443. <text>朋友通过你分享的页面成功购买后,你可获得对应的佣金,佣金可“个人中心-分销员中心" 里查看</text>
  444. </view>
  445. <view class='promo-icons'>
  446. <button class='promo-img1' open-type='share'>
  447. <image src="../../images/icon/weixin.png"></image>
  448. 微信
  449. </button>
  450. <view class='promo-img1' bindtap='genWeixinCode'>
  451. <image src="../../images/icon/erweima.png"></image>
  452. 二维码
  453. </view>
  454. </view>
  455. <view class='promo-btn' bindtap='toDistCenterPage'>我的分销员中心</view>
  456. </view>
  457. </view>
  458. <!-- 分享弹窗 end -->
  459. <!-- 二维码弹窗 -->
  460. <view class='code-popup' wx:if="{{wxCodeShow}}">
  461. <view class='code-main'>
  462. <view class="close-v" catchtap='closeCodePopup'>
  463. <image src="../../images/icon/close.png" class="close-png"></image>
  464. </view>
  465. <view class="code-v">
  466. <image src="{{shareWxCode}}" class="wx-code"></image>
  467. </view>
  468. <view class="code-txt" bindtap="downloadImg">保存至相册</view>
  469. </view>
  470. </view>
  471. <!-- 二维码弹窗 end -->
  472. <wxs module="wxs" src="../../wxs/number.wxs" />
  473. <!-- <login-popup bind:onGotUserInfo="onGotUserInfo" isAuthInfo="{{isAuthInfo}}"></login-popup> -->