index.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <view class='navbar {{parameter.class}}' style='height:{{navH}}rpx;opacity:{{opacity}}'>
  2. <view class='navbarH' style='height:{{navH}}rpx;'>
  3. <view class='navbarCon acea-row row-center-wrapper'>
  4. <view class="header acea-row row-center-wrapper">
  5. <view class="item {{navActive === index ? 'on' : ''}}" wx:for="{{navList}}" wx:key='index' bindtap="tap"
  6. 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. <!-- style='height:{{scrollY>200?(height+2*navH+20):(height+navH)}}rpx;' -->
  23. <view class='product-con'>
  24. <scroll-view scroll-top="{{scrollTop}}" scroll-y='true' scroll-with-animation="true" style='height:{{height}}px;'
  25. bindscroll="scroll">
  26. <view id="past0">
  27. <productConSwiper imgUrls="{{storeInfo.slider_image}}" videoline="{{storeInfo.video_link}}">
  28. </productConSwiper>
  29. <view class='wrapper'>
  30. <view class='share acea-row row-between row-bottom'>
  31. <view class='money font-color'>
  32. ¥<text class='num'>{{storeInfo.price}}</text>
  33. <!-- <text class='vip-money' wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}">¥{{storeInfo.vip_price}}</text> -->
  34. <!-- <image wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}" src="/images/vip.png"></image> -->
  35. </view>
  36. <!-- <view class='iconfont icon-fenxiang' bindtap='listenerActionSheet'></view> -->
  37. </view>
  38. <view class='introduce'>{{storeInfo.store_name}}</view>
  39. <view class='label acea-row row-between-wrapper'>
  40. <view>原价:¥{{storeInfo.ot_price}}</view>
  41. <view>库存:{{storeInfo.stock}}{{storeInfo.unit_name}}</view>
  42. <view>销量:{{storeInfo.fsales}}{{storeInfo.unit_name}}</view>
  43. </view>
  44. <view class='coupon acea-row row-between-wrapper' wx:if="{{storeInfo.give_integral > 0}}">
  45. <view class='hide line1 acea-row'>
  46. 赠积分:<view class='activity'>赠送 {{storeInfo.give_integral}} 积分</view>
  47. </view>
  48. </view>
  49. <!-- <view class='coupon acea-row row-between-wrapper' bindtap='coupon' style="{{ storeInfo.give_integral > 0 ? 'margin-top:0;':''}}">
  50. <view class='hide line1 acea-row'>
  51. 优惠券:<view class='activity' wx:for="{{couponList}}" wx:key='index'>满{{item.use_min_price}}减{{item.coupon_price}}</view>
  52. </view>
  53. <view class='iconfont icon-jiantou'></view>
  54. </view> -->
  55. <view class="coupon acea-row row-between-wrapper" wx:if="{{activity.length}}">
  56. <view class="line1 acea-row">
  57. <text decode="{{true}}" space="{{true}}">活&nbsp;&nbsp;&nbsp;动:</text>
  58. <view wx:for="{{activity}}" wx:key='index' bindtap="goActivity" data-items='{{item}}'>
  59. <view wx:if="{{item.type === '1'}}"
  60. class="{{index==0?'activity_pin':'' || index==1?'activity_miao':'' || index==2?'activity_kan':''}}">
  61. <text class="iconfonts iconfont icon-pintuan"></text>
  62. <text class="activity_title"> 参与秒杀</text>
  63. </view>
  64. <view
  65. class="{{index==0?'activity_pin':'' || index==1?'activity_miao':'' || index==2?'activity_kan':''}}"
  66. wx:if="{{item.type === '2'}}">
  67. <text class="iconfonts iconfont icon-shenhezhong"></text>
  68. <text class="activity_title"> 参与砍价</text>
  69. </view>
  70. <view
  71. class="{{index==0?'activity_pin':'' || index==1?'activity_miao':'' || index==2?'activity_kan':''}}"
  72. wx:if="{{item.type === '3'}}">
  73. <text class="iconfonts iconfont icon-kanjia"></text>
  74. <text class="activity_title"> 参与拼团</text>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr' wx:if='{{productAttr.length}}'>
  81. <view>
  82. {{attr}}:<text class='atterTxt'>{{attrValue}}</text>
  83. </view>
  84. <view class='iconfont icon-jiantou'></view>
  85. </view>
  86. <!-- <view class="store-info" wx:if='{{systemStore.id && storeSelfMention}}'>
  87. <view class="acea-row row-between-wrapper store-box" bindtap="showStoreList">
  88. <view class="title">门店信息</view>
  89. <view class='iconfont icon-jiantou'></view>
  90. </view>
  91. <view class="info acea-row row-between-wrapper" wx:if="{{storeList.length!==0}}">
  92. <view class="picTxt">
  93. <view class="pictrue">
  94. <image src="{{storeItems.image}}" lazy-load="true"></image>
  95. </view>
  96. <view class="text">
  97. <view class="name line1">
  98. {{storeItems.name}}
  99. </view>
  100. <view class="address acea-row row-middle" bindtap="showMaoLocation">
  101. <text class="addressTxt line1">{{storeItems.address}}{{", "+storeItems.detailed_address}}</text>
  102. <text class="iconfont icon-youjian"></text>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="addressBox">
  107. <view class="iconfont icon-dadianhua01 font-color phone" bindtap="makePhone"></view>
  108. <view class="addressTxt line1 corlor-red" wx:if="{{storeItems.range}}" bindtap="showMaoLocation">距离{{storeItems.range}}千米</view>
  109. </view>
  110. </view>
  111. </view> -->
  112. </view>
  113. <view class='userEvaluation' id="past1">
  114. <view class='title acea-row row-between-wrapper'>
  115. <view>用户评价({{replyCount}})</view>
  116. <navigator class='praise' hover-class='none' url='/pages/goods_comment_list/index?product_id={{id}}'>
  117. <text class='font-color'>{{replyChance}}%</text>好评率
  118. <text class='iconfont icon-jiantou'></text>
  119. </navigator>
  120. </view>
  121. <userEvaluation reply="{{reply}}"></userEvaluation>
  122. </view>
  123. <view class="superior" wx:if="{{good_list.length}}" id="past2">
  124. <view class="title acea-row row-center-wrapper">
  125. <image src="/images/ling.png"></image>
  126. <view class="titleTxt">优品推荐</view>
  127. <image src="/images/ling.png"></image>
  128. </view>
  129. <view class="slider-banner banner">
  130. <swiper indicator-dots="true" autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}"
  131. duration="{{duration}}" indicator-color="#999" indicator-active-color="#e93323"
  132. style="height:{{clientHeight+'px'}}">
  133. <swiper-item wx:for="{{good_list}}" wx:for-item='item' wx:for-index='indexw' wx:key='index'>
  134. <view class="list acea-row row-middle" id="list{{indexw}}">
  135. <view class="item" wx:for="{{item.list}}" wx:key='index' wx:for-item='val'
  136. bindtap="goDetail" data-items='{{val}}'>
  137. <view class="pictrue">
  138. <image src="{{val.image}}"></image>
  139. <text class="pictrue_log pictrue_log_class"
  140. wx:if="{{val.activity && val.activity.type ==='1'}}">秒杀</text>
  141. <text class="pictrue_log pictrue_log_class"
  142. wx:if="{{val.activity && val.activity.type === '2'}}">砍价</text>
  143. <text class="pictrue_log pictrue_log_class"
  144. wx:if="{{val.activity && val.activity.type === '3'}}">拼团</text>
  145. </view>
  146. <view class="name line1">{{val.store_name}}</view>
  147. <view class="money font-color">¥{{val.price}}</view>
  148. </view>
  149. </view>
  150. </swiper-item>
  151. <view class="swiper-pagination" slot="pagination"></view>
  152. </swiper>
  153. </view>
  154. </view>
  155. <view class='product-intro' id="past3">
  156. <view class='title'>产品介绍</view>
  157. <view class='conter'>
  158. <template is="wxParse" data="{{wxParseData:description.nodes}}" />
  159. </view>
  160. </view>
  161. <view style='height:120rpx;'></view>
  162. </scroll-view>
  163. <view class='{{ fixed ? "fixed" : ""}} footer acea-row row-between-wrapper'>
  164. <button open-type="contact" hover-class='none' class='item ' send-message-title="{{storeInfo.store_name}}"
  165. send-message-img="{{storeInfo.image}}" send-message-path="/pages/goods_details/index?id={{storeInfo.id}}"
  166. show-message-card>
  167. <view class='iconfont icon-kefu'></view>
  168. <view>客服</view>
  169. </button>
  170. <view bindtap='setCollect' class='item'>
  171. <view class='iconfont icon-shoucang1' wx:if="{{storeInfo.userCollect}}"></view>
  172. <view class='iconfont icon-shoucang' wx:else></view>
  173. <view>收藏</view>
  174. </view>
  175. <navigator open-type='switchTab' class="animated item {{animated==true?'bounceIn':''}}"
  176. url='/pages/order_addcart/order_addcart'>
  177. <view class='iconfont icon-gouwuche1'>
  178. <text class='num bg-color'>{{CartCount || 0}}</text>
  179. </view>
  180. <view>购物车</view>
  181. </navigator>
  182. <view class='bnt acea-row'>
  183. <form bindsubmit="joinCart">
  184. <button class='joinCart bnts' formType="submit">加入购物车</button>
  185. </form>
  186. <form bindsubmit="goBuy" wx:if="{{!attrValue || productSelect.stock>0}}">
  187. <button class='buy bnts' formType="submit">立即购买</button>
  188. </form>
  189. <form wx:else>
  190. <button class='buy bnts bg-color-hui'>已售罄</button>
  191. </form>
  192. <form bindsubmit="listenerActionSheet">
  193. <button class='share bnts' formType="submit">分享</button>
  194. </form>
  195. </view>
  196. </view>
  197. <!-- <shareRedPackets sharePacket="{{sharePacket}}" bind:listenerActionSheet="listenerActionSheet"></shareRedPackets> -->
  198. </view>
  199. <!-- 分享按钮 -->
  200. <action-sheet hidden="{{actionSheetHidden}}" bindchange="listenerActionSheet" class='pro-wrapper' hover-class='none'>
  201. <action-sheet-item hover-class='none'>
  202. <button open-type="share" class='contact' hover-class='none'>
  203. <view class='iconn'></view>
  204. 微信好友
  205. </button>
  206. <button open-type="share" class='contact' hover-class='none'>
  207. <view class='iconn'></view>
  208. 微信群
  209. </button>
  210. <!--button class='contact' bindtap='goPoster' hover-class='none'>
  211. <view class='iconn iconn1'></view>
  212. 生成海报
  213. </button-->
  214. </action-sheet-item>
  215. </action-sheet>
  216. <!-- 海报展示 -->
  217. <view class='poster-pop' wx:if="{{posterImageStatus}}">
  218. <image src='/images/poster-close.png' class='close' bindtap='posterImageClose'></image>
  219. <image src='{{posterImage}}'></image>
  220. <view class='save-poster' bindtap='savePosterPath'>保存到手机</view>
  221. </view>
  222. <view class='mask' wx:if="{{posterImageStatus}}"></view>
  223. <canvas class="canvas" canvas-id='myCanvas' wx:if="{{canvasStatus}}"></canvas>
  224. <!-- 组件 -->
  225. <product-window iSplus='{{iSplus}}' attribute='{{attribute}}' productAttr="{{productAttr}}"
  226. productSelect="{{productSelect}}" bind:myevent="onMyEvent" bind:ChangeAttr="ChangeAttr"
  227. bind:ChangeCartNum="ChangeCartNum" id='product-window' bind:iptCartNum="iptCartNum"></product-window>
  228. <coupon-list-window coupon='{{coupon}}' bind:ChangCouponsClone="ChangCouponsClone" bind:ChangCoupons="ChangCoupons">
  229. </coupon-list-window>
  230. <authorize bind:onLoadFun="onLoadFun" isAuto="{{isAuto}}" iShidden="{{iShidden}}"></authorize>
  231. <!-- html转wxml -->
  232. <import src="/wxParse/wxParse.wxml" />
  233. <!-- <home></home> -->