spellGoodsDetails.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <!-- 拼团商品详情 -->
  2. <!--pages/snapUpDetail/snapUpDetail.wxml-->
  3. <view class="top-goods-box">
  4. <!-- 商品图片 -->
  5. <!-- 轮播图 -->
  6. <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" indicator-color="{{indicatorColor}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color="{{indicatorActiveColor}}">
  7. <block wx:for="{{imgs}}" wx:key='*this'>
  8. <swiper-item>
  9. <image src='{{item}}'></image>
  10. </swiper-item>
  11. </block>
  12. </swiper>
  13. <!-- 轮播图end -->
  14. <!-- 倒计时栏 -->
  15. <view class="countdown-box clearfix">
  16. <!-- 拼团 -->
  17. <text class="second-kill">拼团</text>
  18. <!-- 拼团开始后 -->
  19. <view class="countdown-content">
  20. <text class="countdown-tips">距结束仅剩</text>
  21. <text class="countdown-time">5 天 17 时 31 分 55 秒</text>
  22. </view>
  23. <!-- 拼团开始前 -->
  24. <!-- <view class="countdown-content">
  25. <text class="countdown-tips">距开始仅剩</text>
  26. <text class="countdown-time">01 天 08 时 28 分 49 秒</text>
  27. </view> -->
  28. </view>
  29. <!-- 商品信息 -->
  30. <view class="goods-msg">
  31. <!-- 标题 -->
  32. <view class="goods-title">{{prodName}}</view>
  33. <!-- 分享btn -->
  34. <view class="share-icon">
  35. <image src="../../images/icon/share.png"></image>
  36. <view class="share-text">分享</view>
  37. </view>
  38. <!-- 拼团价格区 -->
  39. <view class="goods-price">
  40. <view class="current-price">
  41. <text class="current-price"><text class="sub">¥</text>1.00</text>
  42. <text class="condition">3人拼团价</text>
  43. </view>
  44. <view class="original">原价<text class="original-price">¥2.00</text></view>
  45. </view>
  46. <!-- 运费 -->
  47. <view class="other-infor clearfix">
  48. <text class="freight">运费:免运费</text>
  49. <text class="inventory">剩余:44</text>
  50. </view>
  51. <!-- 【秒杀】预计开始时间 -->
  52. <view class="expect-start display">
  53. <text class="second-kill-icon">秒杀</text>
  54. 预计 06 日 00:00:00 开始
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 拼团信息 -->
  59. <view class="spell-infor">
  60. <view class="spell-infor-title">
  61. 以下小伙伴正在发起拼团,你可以直接参加
  62. </view>
  63. <view class="spell-infor-content">
  64. <!-- 头像 -->
  65. <view class="head-img">
  66. <image src="../../images/icon/head01.png"></image>
  67. </view>
  68. <!-- 信息 -->
  69. <view class="spell-msg">
  70. <view class="username">6.***</view>
  71. <view class="spell-text">还差 <text class="red-font"> 2 </text> 人成团,剩余 23时59分08秒</view>
  72. </view>
  73. <!-- 凑团按钮 -->
  74. <view class="join-group" >去凑团</view>
  75. </view>
  76. <!-- 详情 -->
  77. <view class="rules clearfix">
  78. <text class="rules-text01">支付开团邀请2人参团,人数不足自动退款</text>
  79. <text class="rules-text02">玩法详情</text>
  80. <view class="right-arrow"><image src="../../images/icon/more.png"></image></view>
  81. </view>
  82. </view>
  83. <!-- 拼团信息end -->
  84. <!-- 颜色 -->
  85. <!-- <view class="choose-color" bindtap="showModal">
  86. 选择:颜色
  87. <view class="more-icon"><image src="../../images/icon/more.png"></image></view>
  88. </view> -->
  89. <!-- 已选规格 -->
  90. <view class="sku" bindtap='showSku'>
  91. <view class="sku-tit">已选</view>
  92. <view class="sku-con">{{selectedProp.length>0?selectedProp+',':selectedProp}}{{prodNum}}件</view>
  93. <view class="more">...</view>
  94. </view>
  95. <!-- 已选规格end -->
  96. <!-- 店铺 -->
  97. <view class="shop-box">
  98. <view class="shop-icon"><image src="../../images/icon/thumb.png"></image></view>
  99. <text class="shop-name">笑橙小店190904</text>
  100. <view class="more-icon"><image src="../../images/icon/more.png"></image></view>
  101. </view>
  102. <!-- 评价 -->
  103. <view class='cmt-wrap'>
  104. <view class="cmt-tit" bindtap='showComment'>
  105. <view class="cmt-t">
  106. 评价
  107. <text class="cmt-good">好评{{prodCommData.positiveRating}}%</text>
  108. </view>
  109. <view class="cmt-count">
  110. 共{{prodCommData.number}}条
  111. <text class="cmt-more"></text>
  112. </view>
  113. </view>
  114. <view class="cmt-cont">
  115. <view class="cmt-tag" bindtap='showComment'>
  116. <text>全部({{prodCommData.number}})</text>
  117. <text>好评({{prodCommData.praiseNumber}})</text>
  118. <text>中评({{prodCommData.secondaryNumber}})</text>
  119. <text>差评({{prodCommData.negativeNumber}})</text>
  120. <text>有图({{prodCommData.picNumber}})</text>
  121. </view>
  122. <view class="cmt-items">
  123. <view class="cmt-item" wx:for="{{littleCommPage}}" wx:key="prodCommId">
  124. <view class="cmt-user">
  125. <text class="date">{{item.recTime}}</text>
  126. <view class="cmt-user-info">
  127. <image class="user-img" src="{{item.pic}}"></image>
  128. <view class="nickname">{{item.nickName}}</view>
  129. <comm-star value="{{item.score}}"></comm-star>
  130. </view>
  131. </view>
  132. <view class="cmt-cnt">{{item.content}}</view>
  133. <scroll-view class="cmt-attr" scroll-x="true" wx:if="{{item.pics.length}}">
  134. <image src="{{commPic}}" wx:for='{{item.pics}}' wx:for-item="commPic" wx:key='*this'></image>
  135. </scroll-view>
  136. </view>
  137. </view>
  138. <view class="cmt-more-v" wx:if="{{prodCommPage.records.length > 2}}">
  139. <text bindtap='showComment'>查看全部评价</text>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 评价 end -->
  144. <!-- 商品详情介绍 -->
  145. <view class="prod-detail">
  146. <view>
  147. <rich-text nodes="{{content}}"></rich-text>
  148. </view>
  149. </view>
  150. <!-- 商品详情end -->
  151. <!-- 【拼团】底部按钮 -->
  152. <view class="foot-box">
  153. <view class="footer">
  154. <view class="foot-btn" bindtap='toHomePage'>
  155. <image src="../../images/tabbar/homepage.png"></image>
  156. 首页
  157. </view>
  158. <view class="foot-btn" bindtap='toCartPage'>
  159. <image src="../../images/tabbar/basket.png"></image>
  160. 购物车
  161. <view class='badge badge-1' wx:if="{{totalCartNum>0}}">{{totalCartNum}}</view>
  162. </view>
  163. <view class="buy-btn alone-buy" bindtap='buyNow'>
  164. <text>¥1.00购买</text>
  165. </view>
  166. <view class="buy-btn group-buy" bindtap='showModal'>
  167. <text>¥0.01开团</text>
  168. </view>
  169. </view>
  170. </view>
  171. <!-- end 底部按钮 -->
  172. <!-- 拼团底部弹框 -->
  173. <view class="modals" hidden="{{hideModal}}">
  174. <view class="modals-cancel" bindtap="hideModal"></view>
  175. <view class="bottom-dialog-body bottom-pos" animation="{{animationData}}">
  176. <!-- 上部 -->
  177. <view class="top-content">
  178. <view class="top-content-img-box">
  179. <image src="" />
  180. </view>
  181. <!-- 商品信息 -->
  182. <view class="goods-msg-box">
  183. <view class="goods-names">测试商品名称一</view>
  184. <view class="spell-group-price">3人拼团价</view>
  185. <view class="goods-prices">¥<text class="rmb-symbol">1.00</text></view>
  186. <!-- 关闭按钮 -->
  187. </view>
  188. <view class="close-btn" bindtap="hideModal"><image src="../../images/icon/close.png"></image></view>
  189. </view>
  190. <!-- 颜色 -->
  191. <view class="choose-color-box">
  192. <view class="color-txt">颜色:</view>
  193. <view class="color-box">
  194. <text class="color-item color-item-current">红色</text>
  195. <text class="color-item">黄色</text>
  196. </view>
  197. </view>
  198. <!-- 数量 -->
  199. <view class="quantity">
  200. <view class="left-text">
  201. <view class="left-text-top">购买数量:</view>
  202. <view class="left-text-bottom">剩余96件</view>
  203. </view>
  204. <!-- 数量加减 -->
  205. <view class="right-choose">
  206. <view class="subtract">–</view>
  207. <view class="show-num">1</view>
  208. <view class="add current-state">+</view>
  209. </view>
  210. </view>
  211. <!-- 确认按钮 -->
  212. <view class="confirm-btn" bindtap="groupConfirmOrder">确认</view>
  213. </view>
  214. </view>
  215. <!-- 拼团底部弹框 end -->
  216. <!-- 评价弹窗 -->
  217. <view class="cmt-popup" wx:if="{{commentShow}}">
  218. <view class="cmt-tit">
  219. <view class="cmt-t">
  220. 商品评价
  221. <text class="cmt-good">好评度{{prodCommData.positiveRating}}%</text>
  222. </view>
  223. <text class="close" bindtap='closePopup'></text>
  224. </view>
  225. <view class="cmt-cont">
  226. <view class="cmt-tag">
  227. <text bindtap='getProdCommPage' data-evaluate="-1" class="{{evaluate==-1?'selected':''}}">全部({{prodCommData.number}})</text>
  228. <text bindtap='getProdCommPage' data-evaluate="0" class="{{evaluate==0?'selected':''}}">好评({{prodCommData.praiseNumber}})</text>
  229. <text bindtap='getProdCommPage' data-evaluate="1" class="{{evaluate==1?'selected':''}}">中评({{prodCommData.secondaryNumber}})</text>
  230. <text bindtap='getProdCommPage' data-evaluate="2" class="{{evaluate==2?'selected':''}}">差评({{prodCommData.negativeNumber}})</text>
  231. <text bindtap='getProdCommPage' data-evaluate="3" class="{{evaluate==3?'selected':''}}">有图({{prodCommData.picNumber}})</text>
  232. </view>
  233. <view class="cmt-items">
  234. <view class="cmt-item" wx:for="{{prodCommPage.records}}" wx:key="prodCommId">
  235. <view class="cmt-user">
  236. <text class="date">{{item.recTime}}</text>
  237. <view class="cmt-user-info">
  238. <image class="user-img" src="{{item.pic}}"></image>
  239. <view class="nickname">{{item.nickName}}</view>
  240. <comm-star value="{{item.score}}"></comm-star>
  241. </view>
  242. </view>
  243. <view class="cmt-cnt">{{item.content}}</view>
  244. <scroll-view class="cmt-attr" scroll-x="true" wx:if="{{item.pics.length}}">
  245. <image src="{{commPic}}" wx:for='{{item.pics}}' wx:for-item="commPic" wx:key='*this'></image>
  246. </scroll-view>
  247. <view class="cmt-reply" wx:if="{{item.replyContent}}">
  248. <text class='reply-tit'>店铺回复:</text> {{item.replyContent}}
  249. </view>
  250. </view>
  251. </view>
  252. <view class="load-more" wx:if='{{prodCommPage.pages > prodCommPage.current}}'>
  253. <text bindtap='getMoreCommPage'>点击加载更多</text>
  254. </view>
  255. </view>
  256. </view>
  257. <!-- 评价弹窗 end -->
  258. <!-- 规格弹窗 -->
  259. <view class="pup-sku" wx:if="{{skuShow}}">
  260. <view class="pup-sku-main">
  261. <view class='pup-sku-header'>
  262. <image class="pup-sku-img" src="{{defaultSku.pic?defaultSku.pic:pic}}"></image>
  263. <view class="pup-sku-price">
  264. <text class="pup-sku-price-int">{{wxs.parsePrice(defaultSku.price)[0]}}</text> .{{wxs.parsePrice(defaultSku.price)[1]}}
  265. </view>
  266. <view class='pup-sku-prop'>
  267. <text>已选</text> {{selectedProp.length>0?selectedProp+',':selectedProp}}{{prodNum}}件
  268. </view>
  269. <view class='close' bindtap='closePopup'></view>
  270. </view>
  271. <view class='pup-sku-body'>
  272. <view class="pup-sku-area">
  273. <block wx:for="{{skuGroup}}" wx:for-index="key" wx:for-item="value" wx:key='*this'>
  274. <view class='sku-kind'>{{key}}</view>
  275. <view class='sku-choose'>
  276. <block wx:for="{{value}}" wx:key='*this'>
  277. <text class="sku-choose-item {{wxs.array_contain(selectedProp,item)?'active':''}} {{wxs.props_contain(allProperties,selectedPropObj,key,item,propKeys)?'':'gray'}}" data-ok="{{wxs.props_contain(allProperties,selectedPropObj,key,item,propKeys)}}" bindtap='toChooseItem'
  278. data-key="{{key}}" data-val="{{item}}">{{item}}</text>
  279. </block>
  280. </view>
  281. </block>
  282. </view>
  283. <view class="pup-sku-count">
  284. <view class="num-wrap">
  285. <view class="minus" bindtap='onCountMinus'>
  286. <text class="row"></text>
  287. </view>
  288. <view class="text-wrap">
  289. <input type="number" value="{{prodNum}}" disabled />
  290. </view>
  291. <view class="plus" bindtap='onCountPlus'>
  292. <text class="row"></text>
  293. <text class="col"></text>
  294. </view>
  295. </view>
  296. <view class="count-name">数量</view>
  297. </view>
  298. </view>
  299. <view class='pup-sku-footer'>
  300. <view class="btn cart" bindtap='buyNow'>¥1.00购买</view>
  301. <view class="btn buy" bindtap=''>¥0.01开团</view>
  302. </view>
  303. </view>
  304. </view>
  305. <!-- 规格弹窗 end -->