index.wxml 11 KB

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