index.wxml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!-- <navbar parameter='{{parameter}}'></navbar> -->
  2. <view class='navbar {{parameter.class}}' style='height:{{navH}}rpx;opacity:{{opacity}}'>
  3. <view class='navbarH' style='height:{{navH}}rpx;'>
  4. <view class='navbarCon acea-row row-center-wrapper'>
  5. <view class="header acea-row row-center-wrapper">
  6. <view class="item {{navActive === index ? 'on' : ''}}" wx:for="{{navList}}" wx:key='index' bindtap="tap" data-index="{{index}}" data-id='past{{index}}'>
  7. {{ item }}
  8. </view>
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="returnF" style="height:{{navH}}rpx;">
  14. <view class="returnH" style='height:{{navH}}rpx;'>
  15. <view class="returnCon acea-row row-center-wrapper" bindtap="returns">
  16. <view class="iconfont icon-xiangzuo"></view>
  17. </view>
  18. </view>
  19. </view>
  20. <!-- <view class='iconfont icon-xiangzuo' style="top:{{navH/2}}rpx" bindtap='returns'></view> -->
  21. <!-- <view style="height:{{navH+20}}rpx;" wx:if="{{scrollY>200}}"></view> -->
  22. <view class='product-con'>
  23. <scroll-view scroll-top="{{scrollTop}}" scroll-y='true' scroll-with-animation="true" style='height:{{height}}px;' bindscroll="scroll">
  24. <view id="past0">
  25. <productConSwiper imgUrls="{{imgUrls}}"></productConSwiper>
  26. <view class='wrapper'>
  27. <view class='share acea-row row-between row-bottom'>
  28. <view class='money font-color'>
  29. ¥<text class='num'>{{storeInfo.price}}</text><text class='y-money'>¥{{storeInfo.product_price}}</text>
  30. </view>
  31. <button class='iconfont icon-fenxiang' open-type="share"></button>
  32. </view>
  33. <view class='introduce'>{{storeInfo.title}}</view>
  34. <view class='label acea-row row-between-wrapper'>
  35. <view class='stock'>类型:{{storeInfo.people}}人团</view>
  36. <view>累计销量:{{storeInfo.total?storeInfo.total:0}}件</view>
  37. <view>限购: {{ storeInfo.quota ? storeInfo.quota : 0 }} 件</view>
  38. </view>
  39. </view>
  40. <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr' wx:if='{{productAttr.length}}'>
  41. <view>{{attr}}:<text class='atterTxt'>{{attrValue}}</text></view>
  42. <view class='iconfont icon-jiantou'></view>
  43. </view>
  44. <view class='notice acea-row row-middle'>
  45. <view class='num font-color'>
  46. <text class='iconfont icon-laba'></text>
  47. 已拼{{pink_ok_sum}}件<text class='line'>|</text>
  48. </view>
  49. <view class='swiper'>
  50. <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="2500" duration="500" vertical="true" circular="true">
  51. <block wx:for="{{itemNew}}" wx:key='index'>
  52. <swiper-item>
  53. <view class='line1'>{{item}}</view>
  54. </swiper-item>
  55. </block>
  56. </swiper>
  57. </view>
  58. </view>
  59. <view class='assemble'>
  60. <view class='item acea-row row-between-wrapper' wx:for='{{pink}}' wx:key='index' wx:if="{{index < AllIndex}}">
  61. <view class='pictxt acea-row row-between-wrapper'>
  62. <view class='pictrue'><image src='{{item.avatar}}'></image></view>
  63. <view class='text line1'>{{item.nickname}}</view>
  64. </view>
  65. <view class='right acea-row row-middle'>
  66. <view>
  67. <view class='lack'>还差<text class='font-color'>{{item.count}}</text>人成团</view>
  68. <view class='time'>剩余 {{item.time.hou}}:{{item.time.min}}:{{item.time.sec}}</view>
  69. </view>
  70. <navigator hover-class='none' url='/pages/activity/goods_combination_status/index?id={{item.id}}' class='spellBnt'>去拼单<text class='iconfont icon-jiantou'></text></navigator>
  71. </view>
  72. </view>
  73. <view class='more' bindtap='showAll' wx:if="{{pink.length >= AllIndex}}">查看更多<text class='iconfont icon-xiangxia'></text></view>
  74. <view class='more' bindtap='hideAll' wx:elif="{{pink.length >= AllIndex && !pink.length}}">收起<text class='iconfont icon-xiangxia'></text></view>
  75. </view>
  76. <view class='playWay'>
  77. <view class='title acea-row row-between-wrapper'>
  78. <view>拼团玩法</view>
  79. <!-- <navigator hover-class='none' class='font-color' url='/pages/activity/goods_combination_rule/index'>查看规则<text class="iconfont icon-jiantou"></text></navigator> -->
  80. </view>
  81. <view class='way acea-row row-middle'>
  82. <view class='item'><text class='num'>①</text>开团/参团</view>
  83. <view class='iconfont icon-arrow'></view>
  84. <view class='item'><text class='num'>②</text>邀请好友</view>
  85. <view class='iconfont icon-arrow'></view>
  86. <view class='item'>
  87. <view><text class='num'>③</text>满员发货</view>
  88. <!-- <view class='tip'>不满自动退款</view> -->
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class='userEvaluation' id="past1">
  94. <view class='title acea-row row-between-wrapper'>
  95. <view>用户评价({{replyCount}})</view>
  96. <navigator class='praise' hover-class='none' url='/pages/goods_comment_list/index?product_id={{storeInfo.product_id}}'><text class='font-color'>{{replyChance}}%</text>好评率<text class='iconfont icon-jiantou'></text></navigator>
  97. </view>
  98. <userEvaluation reply="{{reply}}"></userEvaluation>
  99. </view>
  100. <view class='product-intro' id="past2">
  101. <view class='title'>产品介绍</view>
  102. <view class='conter'>
  103. <template is="wxParse" data="{{wxParseData:description.nodes}}"/>
  104. </view>
  105. </view>
  106. <view style='height:120rpx;'></view>
  107. </scroll-view>
  108. <view class='footer acea-row row-between-wrapper'>
  109. <button open-type="contact" hover-class='none' class='item' send-message-title="{{storeInfo.store_name}}" send-message-img="{{storeInfo.image}}" send-message-path="/pages/goods_combination_details/index?id={{storeInfo.id}}" show-message-card>
  110. <view class='iconfont icon-kefu'></view>
  111. <view>客服</view>
  112. </button>
  113. <view bindtap='setCollect' class='item'>
  114. <view class='iconfont icon-shoucang1' wx:if="{{storeInfo.userCollect}}"></view>
  115. <view class='iconfont icon-shoucang' wx:else></view>
  116. <view>收藏</view>
  117. </view>
  118. <view class="bnt acea-row">
  119. <view class="joinCart bnts" bindtap="goProduct">单独购买</view>
  120. <view class="buy bnts" bindtap="goCat" wx:if='{{productSelect.product_stock>0&&productSelect.quota>0}}'>立即开团</view>
  121. <view class="buy bnts bg-color-hui" wx:elif='{{productSelect.quota <= 0 || productSelect.product_stock <= 0}}'>已售罄</view>
  122. </view>
  123. <!-- <view class='bnt bg-color' style='width:43%;background-image: linear-gradient(to right,#fea10f 0%,#fa8013 100%);' bindtap='goProduct'>原价购买</view>
  124. <view class='bnt bg-color' style='width:43%' bindtap='goCat'>立即开团</view> -->
  125. </view>
  126. </view>
  127. <product-window
  128. iSplus="{{iSplus}}"
  129. limitNum="{{limitNum}}"
  130. attribute='{{attribute}}'
  131. productAttr="{{productAttr}}"
  132. productSelect="{{productSelect}}"
  133. bind:myevent="onMyEvent"
  134. bind:ChangeAttr="ChangeAttr"
  135. bind:ChangeCartNum="ChangeCartNum"
  136. bind:iptCartNum="iptCartNum"
  137. ></product-window>
  138. <authorize bind:onLoadFun="onLoadFun"></authorize>
  139. <import src="/wxParse/wxParse.wxml"/>
  140. <home></home>