index.wxml 11 KB

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