index.wxml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. <navbar parameter='{{parameter}}' logoUrl="{{logoUrl}}"></navbar>
  2. <view class="indexs">
  3. <view class="indexTip" style="top:{{navH+13}}rpx" hidden="{{iShiddenTip}}">
  4. <view class="tip acea-row row-between-wrapper">
  5. <view class="text">点击“<image src="/images/spot.png"></image>”添加到我的小程序, 微信首页下拉即可访问商城。</view>
  6. <view class="iconfont icon-guanbi1" bindtap="closeTip"></view>
  7. </view>
  8. </view>
  9. <Tabs color="#fff" active="{{activeTabIndex}}" bind:click="onTapCategoryTabItem">
  10. <Tab title="主场">
  11. <view class="wrapper">
  12. <!-- banner 图 -->
  13. <view class="slider-banner banner">
  14. <swiper indicator-dots="true"
  15. autoplay="{{autoplay}}" circular="{{circular}}" interval="3000" duration="500" indicator-color="rgba(0,0,0,0.2)" indicator-active-color="#ff3366">
  16. <swiper-item wx:for="{{banner}}" wx:key='index'>
  17. <navigator url="{{item.url ? item.url : ''}}" class="pictrue acea-row row-middle" hover-class='none'>
  18. <image src="{{item.pic}}" class="slide-image"></image>
  19. </navigator >
  20. </swiper-item>
  21. </swiper>
  22. </view>
  23. <!-- 菜单按钮 -->
  24. <view class="nav acea-row">
  25. <block wx:for="{{menus}}" wx:key='index'>
  26. <navigator url="{{item.url ? item.url : ''}}" wx:if="{{item.show == '1'}}" class="item" open-type='switchTab' hover-class='none'>
  27. <view class="pictrue"><image src="{{item.pic}}"></image></view>
  28. <view>{{ item.name }}</view>
  29. </navigator>
  30. <navigator url="{{item.url ? item.url : ''}}" wx:else class="item" hover-class='none'>
  31. <view class="pictrue"><image src="{{item.pic}}"></image></view>
  32. <view>{{ item.name }}</view>
  33. </navigator>
  34. </block>
  35. </view>
  36. <!-- 新闻/跑马灯 -->
  37. <view class='news acea-row row-between-wrapper' wx:if="{{itemNew.length}}">
  38. <view class='pictrue'><image src='/images/news.png'></image></view>
  39. <view class='swiperTxt'>
  40. <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="2500" duration="{{duration}}" vertical="true" circular="true">
  41. <block wx:for="{{itemNew}}" wx:key='index'>
  42. <swiper-item catchtouchmove='catchTouchMove'>
  43. <navigator wx:if="{{item.show == '1'}}" url='{{item.url}}' open-type='switchTab' class='acea-row row-between-wrapper' hover-class='none'>
  44. <view class='text acea-row row-between-wrapper'>
  45. <view class='label border2' wx:if="{{item.id%2 == 0}}">最新</view>
  46. <view class='newsTitle line1'>{{item.info}}</view>
  47. </view>
  48. <view class='iconfont icon-xiangyou'></view>
  49. </navigator>
  50. <navigator wx:else open-type='navigate' url='{{item.url}}' class='acea-row row-between-wrapper' hover-class='none'>
  51. <view class='text acea-row row-between-wrapper'>
  52. <view class='label border2' wx:if="{{item.id%2 == 0}}">最新</view>
  53. <view class='newsTitle line1'>{{item.info}}</view>
  54. </view>
  55. <view class='iconfont icon-xiangyou'></view>
  56. </navigator>
  57. </swiper-item>
  58. </block>
  59. </swiper>
  60. </view>
  61. </view>
  62. <!-- 优惠券领取
  63. <view class="scroll-coupon" wx:if="{{getCouponList.length}}">
  64. <scroll-view class="scroll-view_x" enable-flex scroll-x style="width:auto;overflow:hidden;">
  65. <view class="item {{item.is_use ? 'on' : ''}}"
  66. data-index="{{index}}"
  67. bindtap="receiveCoupon"
  68. wx:for="{{getCouponList}}"
  69. wx:key='index'>
  70. <image src="/images/label01.png" class="lable" wx:if='{{item.is_use === true}}'></image>
  71. <image src="/images/label02.png" class="lable" wx:elif='{{item.is_use === 2}}'></image>
  72. <view class="coupon-slide acea-row row-center-wrapper">
  73. <view class="money">
  74. ¥<text class="num">{{ item.coupon_price }}</text>
  75. </view>
  76. <view>
  77. <view class="minPrice">
  78. 满¥<text class="num">{{ item.use_min_price }}</text>可用
  79. </view>
  80. <view class="time">
  81. {{ item.start_time ? item.start_time + "-" : ""}}{{ item.end_time }}
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="more"><navigator url="/pages/user_get_coupon/index" hover-class="none">领取更多</navigator></view>
  87. </scroll-view>
  88. </view>
  89. -->
  90. <!-- 活动区域图片
  91. <view class="activity" wx:if="{{activity.length}}">
  92. <view class="title"><image src="/images/title.png"></image></view>
  93. <view class="activityCon acea-row row-between-wrapper">
  94. <navigator url="{{item.link ? item.link : ''}}" class="left"
  95. style="{{'background-image: url(' + item.pic + ');'}}"
  96. hover-class="none" wx:for="{{activity}}" wx:if="{{index == 1}}" wx:key='index'>
  97. <view class="name">{{ item.title }}</view>
  98. <view class="info">{{ item.info }}</view>
  99. <view class='timeCon'>
  100. <text class='num'>{{countDownHour}}</text> :
  101. <text class='num'>{{countDownMinute}}</text> :
  102. <text class='num'>{{countDownSecond}}</text>
  103. </view>
  104. </navigator >
  105. <view class="right acea-row row-column-between">
  106. <navigator url="{{item.link ? item.link : ''}}"
  107. class="item" style="background-image: url('{{item.pic}}')"
  108. wx:for="{{activity}}" wx:key='index' hover-class="none" wx:if="{{index == 0 || index == 2}}">
  109. <view class="name">{{ item.title }}</view>
  110. <view class="info">{{ item.info }}</view>
  111. </navigator >
  112. </view>
  113. </view>
  114. </view>
  115. -->
  116. <!-- 直播列表,后台暂不支持
  117. <view class="liveBroadcast" wx:if='{{liveList.length || liveInfo.roomid}}'>
  118. <view class="publicTitle acea-row row-center-wrapper">
  119. <image src="/images/tv.png"></image>
  120. <navigator hover-class="none" url='/pages/first-new-product/index?type=3' class="more">更多 ></navigator>
  121. </view>
  122. <navigator wx:if='{{liveInfo.roomid}}' hover-class="none" url="plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id={{liveInfo.roomid}}" class="broadcast time">
  123. <view class="pictrue">
  124. <image src="{{liveInfo.share_img}}"></image>
  125. <view class="label" wx:if='{{liveInfo.live_status == 101}}'><text class="iconfont icon-zhibo"></text>直播中</view>
  126. <view class="label" wx:if='{{liveInfo.live_status == 103}}'><text class="iconfont icon-zhibojieshux"></text>已结束</view>
  127. <view class="label" wx:if='{{liveInfo.live_status == 102}}'><text class="iconfont icon-shijian"></text>直播时间 {{liveInfo._start_time}}</view>
  128. </view>
  129. <view class="text line1">{{liveInfo.name}}</view>
  130. </navigator>
  131. <view class="list" wx:if="{{liveList.length}}">
  132. <scroll-view class="scroll-view_x" scroll-x style="width:auto;overflow:hidden;">
  133. <navigator hover-class="none" wx:for='{{liveList}}' wx:key='index' url="plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id={{item.roomid}}" class="item">
  134. <view class="pictrue">
  135. <image src="{{item.share_img}}"></image>
  136. <view class="label" wx:if='{{item.live_status == 101}}'><text class="iconfont icon-zhibo"></text>直播中</view>
  137. <view class="label" wx:if='{{item.live_status == 103}}'><text class="iconfont icon-zhibojieshux"></text>已结束</view>
  138. <view class="label" wx:if='{{item.live_status == 102}}'><text class="iconfont icon-shijian"></text>直播时间 {{item._start_time}}</view>
  139. </view>
  140. <view class="text line1">{{item.name}}</view>
  141. </navigator>
  142. </scroll-view>
  143. </view>
  144. </view>
  145. -->
  146. <!-- 秒杀,屏蔽
  147. <view class="flashSale" wx:if="{{seckillCont}}">
  148. <view class="title acea-row row-between row-bottom">
  149. <view class="left acea-row row-middle">
  150. <view class="pictrue">
  151. <image src="/images/buyTitle.png"></image>
  152. </view>
  153. <view class="text">
  154. <view>top sellers</view>
  155. <view class="chinese">拼手速抢惊喜 每日更新</view>
  156. </view>
  157. </view>
  158. <view class="right acea-row row-middle">
  159. <view class="item">
  160. <text class="iconfont icon-xuanzhong"></text>限时低价
  161. </view>
  162. <view class="item">
  163. <text class="iconfont icon-xuanzhong"></text>正品保证
  164. </view>
  165. </view>
  166. </view>
  167. <view class="pictrueBg"><image src="/images/timeBg.png"></image></view>
  168. <view class="timeItem">
  169. <scroll-view class="scroll-view_x" scroll-x scroll-with-animation scroll-left="{{scrollLeft}}">
  170. <view class="timeLen item {{killIndex==index?'on':''}}" data-index="{{index}}" bindtap="setTime" wx:for="{{timeList}}" wx:key='index'>
  171. <view class="time">{{ item.time }}</view>
  172. <view class="stateCon acea-row row-center-wrapper">
  173. <view class="state acea-row row-center-wrapper">
  174. {{ item.state }}
  175. </view>
  176. </view>
  177. </view>
  178. </scroll-view>
  179. </view>
  180. <view class="list">
  181. <scroll-view class="scroll-view_x acea-row" scroll-x style="width:auto;overflow:hidden;">
  182. <view class="item" wx:for="{{seckillList}}" wx:for-item="itemSeckill" wx:key='index'>
  183. <view class="pictrue" bindtap="goDetail" data-id="{{itemSeckill.id}}">
  184. <image src="{{itemSeckill.image}}"></image>
  185. <view class="bar">
  186. <view class="pos">
  187. <view class="num acea-row row-center-wrapper" style="width:{{itemSeckill.percent}}%;"></view>
  188. <view class="stock">已抢{{itemSeckill.percent}}%</view>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="text">
  193. <view class="name line1">{{ itemSeckill.title }}</view>
  194. <view class="ot-money">
  195. ¥{{ itemSeckill.ot_price }}
  196. </view>
  197. <view class="money font-color">
  198. ¥<text class="num">{{ itemSeckill.price }}</text>
  199. </view>
  200. </view>
  201. </view>
  202. </scroll-view>
  203. </view>
  204. </view>
  205. -->
  206. <!-- 首发新品推荐图片
  207. <navigator
  208. url="{{lovely[0].link ? lovely[0].link : ''}}"
  209. class="advert"
  210. hover-class="none"
  211. wx:if="{{lovely.length}}">
  212. <image src="{{lovely[0].img}}"></image>
  213. </navigator>
  214. -->
  215. <!-- 不使用后台的首发新品图片
  216. <view class='advert' wx:if="{{newGoodsBananr}}">
  217. <block>
  218. <image src='{{newGoodsBananr}}'></image>
  219. </block>
  220. </view>
  221. -->
  222. <view class="newProducts" wx:if="{{info.firstList.length > 0}}">
  223. <!-- 首发新品 banner 固定图片 -->
  224. <view class="publicTitle acea-row row-center-wrapper">
  225. <image src="/images/newsTitle.png"></image>
  226. <navigator hover-class="none" url='/pages/first-new-product/index?type=3' class="more">更多 ></navigator>
  227. </view>
  228. <!-- 首发新品轮播图 -->
  229. <view class="newSwiper">
  230. <swiper autoplay="{{autoplay}}" circular="{{circular}}" interval="{{intervalNew}}" duration="{{durationNew}}" previous-margin="110px" next-margin="110px" bindchange="bindchange">
  231. <swiper-item wx:for="{{info.firstList}}" wx:key='index'>
  232. <view bindtap="goDetailType" data-items='{{item}}' class="item {{avtiveIndex===index?'active':'quiet'}}">
  233. <image src="{{item.image}}"></image>
  234. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  235. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  236. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  237. </view>
  238. </swiper-item>
  239. </swiper>
  240. <view class="text" wx:for="{{info.firstList}}" wx:key='index'>
  241. <view wx:if="{{index === avtiveIndex}}">
  242. <view class="name line1">{{ item.store_name }}</view>
  243. <view class="money font-color">
  244. ¥<text class="num">{{ item.price }}</text>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. </view>
  250. <view class="recommend" wx:if="{{info.bastList.length || info.bastBanner.length}}">
  251. <!-- 精品推荐 banner 客户端固定 -->
  252. <view class="publicTitle acea-row row-center-wrapper">
  253. <image src="/images/boutiqueTitle.png"></image>
  254. <navigator hover-class="none" url='/pages/first-new-product/index?type=1' class="more" >更多 ></navigator>
  255. </view>
  256. <!-- 精品推荐配图轮播 -->
  257. <view class="slider-banner recommendSwiper" wx:if="{{info.bastBanner.length}}">
  258. <swiper autoplay="true" indicator-dots="true"
  259. circular="{{circular}}" interval="3000" duration="500" indicator-color="rgba(0,0,0,0.2)" indicator-active-color="#ff3366">
  260. <swiper-item wx:for="{{info.bastBanner}}" wx:key='index'>
  261. <navigator url="{{item.url ? item.url : ''}}" class="pictrue acea-row row-middle" hover-class="none">
  262. <image src="{{item.img}}"></image>
  263. </navigator >
  264. </swiper-item>
  265. </swiper>
  266. </view>
  267. <!-- 精品推荐 产品列表 -->
  268. <view class="publicList acea-row row-between-wrapper">
  269. <view bindtap="goDetailType" data-items='{{item}}' class="item"
  270. wx:for="{{info.bastList}}" wx:key='index'>
  271. <view class="pictrue">
  272. <image src="{{item.image}}"></image>
  273. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  274. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  275. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  276. </view>
  277. <view class="text">
  278. <view class="name line1">{{ item.store_name }}</view>
  279. <view class="acea-row row-between-wrapper">
  280. <view>
  281. <view class="money font-color">
  282. ¥<text class="num">{{ item.price }}</text>
  283. </view>
  284. <!-- <view class="ot-money">¥{{ item.ot_price }}</view> -->
  285. </view>
  286. <view class="cart acea-row row-center-wrapper">
  287. <text class="iconfont icon-mzshopping"></text>
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </view>
  293. </view> <!-- 精品推荐 -->
  294. <view class="hotList" wx:if="{{likeInfo.length}}">
  295. <!-- 热门榜单 banner 客户端固定 -->
  296. <view class="publicTitle acea-row row-center-wrapper">
  297. <image src="/images/hotTitle.png"></image>
  298. <navigator url="/pages/first-new-product/index?type=2" class="more" hover-class="none">更多 ></navigator>
  299. </view>
  300. <view class="list acea-row">
  301. <navigator url="/pages/goods_details/index?id={{item.id}}" class="item"
  302. wx:for="{{likeInfo}}" wx:key='index'>
  303. <view class="pictrue">
  304. <image src="{{item.image}}"></image>
  305. <image src="/images/one01.png" class="icon" wx:if='{{index === 0}}'></image>
  306. <image src="/images/two02.png" class="icon" wx:if='{{index === 1}}'></image>
  307. <image src="/images/three03.png" class="icon" wx:if='{{index === 2}}'></image>
  308. </view>
  309. <view class="text">
  310. <view class="name line1">{{ item.store_name }}</view>
  311. <view class="money font-color">
  312. ¥<text class="num">{{ item.price }}</text>
  313. <!-- <text class="ot-money">¥{{ item.ot_price }}</text> -->
  314. </view>
  315. </view>
  316. </navigator >
  317. </view>
  318. </view>
  319. <view class="promotion" wx:if="{{benefit.length}}">
  320. <!-- 促销单品 banner -->
  321. <view class="publicTitle acea-row row-center-wrapper">
  322. <image src="/images/promotionTitle.png"></image>
  323. <navigator url="/pages/promotional-items/index" class="more" hover-class="none">更多 ></navigator>
  324. </view>
  325. <view class="publicList acea-row row-between-wrapper">
  326. <view bindtap="goDetailType" data-items='{{item}}' class="item"
  327. wx:for="{{benefit}}" wx:key='index'>
  328. <view class="pictrue">
  329. <image src="{{item.image}}"></image>
  330. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  331. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  332. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  333. </view>
  334. <view class="text">
  335. <view class="name line1">{{ item.store_name }}</view>
  336. <view class="acea-row row-between-wrapper">
  337. <view>
  338. <view class="money font-color">
  339. ¥<text class="num">{{ item.price }}</text><text class="label bg-color">疯抢</text>
  340. </view>
  341. <view class="ot-money">¥{{ item.ot_price }}</view>
  342. </view>
  343. <view class="cart acea-row row-center-wrapper">
  344. <text class="iconfont icon-mzshopping"></text>
  345. </view>
  346. </view>
  347. </view>
  348. </view>
  349. </view>
  350. </view>
  351. <view class="recommendList" wx:if='{{hostProduct.length > 0}}'>
  352. <!-- 海量精品 为您推荐 banner -->
  353. <view class="title">
  354. <image src="/images/becommendTitle.png"></image>
  355. </view>
  356. <view class="publicList acea-row row-between-wrapper">
  357. <view bindtap="goDetailType" data-items='{{item}}' wx:for="{{hostProduct}}" wx:key='index' class="item">
  358. <view class="pictrue">
  359. <image src="{{item.image}}"></image>
  360. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  361. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  362. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  363. </view>
  364. <view class="text">
  365. <view class="name line1">{{ item.store_name }}</view>
  366. <view class="acea-row row-between-wrapper">
  367. <view>
  368. <view class="money font-color">
  369. ¥<text class="num">{{ item.price }}</text>
  370. </view>
  371. <!-- <view class="ot-money">¥{{ item.ot_price }}</view> -->
  372. </view>
  373. <view class="cart acea-row row-center-wrapper">
  374. <text class="iconfont icon-mzshopping"></text>
  375. </view>
  376. </view>
  377. </view>
  378. </view>
  379. <view class='loadingicon acea-row row-center-wrapper' wx:if='{{hostProduct.length > 0}}'>
  380. <text class='loading iconfont icon-jiazai' hidden='{{recommend.loading==false}}'></text>
  381. {{recommend.loadTitle}}
  382. </view>
  383. </view>
  384. </view>
  385. </view>
  386. </Tab>
  387. <Tab wx:for="{{categoryOne.children}}" title="{{item.cate_name}}" wx:key='index'>
  388. <!--黑洞星球活动-->
  389. <view wx:if="{{item.id === 199}}">
  390. <Mine id="mine"></Mine>
  391. </view>
  392. <!-- 其他活动 -->
  393. <view wx:else class="wrapper">
  394. <!-- 活动商品列表 -->
  395. <view class="classifyList acea-row row-between-wrapper">
  396. <view bindtap="goDetailType" data-items='{{productItem}}' class="item" wx:for="{{productList}}" wx:for-item="productItem" wx:key='index'>
  397. <view class="pictrue">
  398. <image src="{{productItem.image}}"></image>
  399. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{productItem.activity && productItem.activity.type ==='1'}}">秒杀</text>
  400. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{productItem.activity && productItem.activity.type === '2'}}">砍价</text>
  401. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{productItem.activity && productItem.activity.type === '3'}}">拼团</text>
  402. </view>
  403. <view class="text">
  404. <view class="name line1">{{ productItem.store_name }}</view>
  405. <view class="money font-color">
  406. ¥<span class="num">{{ productItem.price }}</span>
  407. </view>
  408. <view class="acea-row row-between-wrapper">
  409. <!--view class="vipMoney" wx:if="{{productItem.vip_price && productItem.vip_price > 0}}">
  410. ¥{{ productItem.vip_price }}
  411. <image src="/images/vip.png"></image>
  412. </view-->
  413. <view class="sales">已售{{ productItem.sales }}件</view>
  414. </view>
  415. </view>
  416. </view>
  417. <view class='loadingicon acea-row row-center-wrapper'>
  418. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>
  419. {{loadTitle}}
  420. </view>
  421. </view>
  422. <!-- 推荐产品展示 -->
  423. <view class='noCommodity' wx:if="{{productList.length==0 && where.page > 1}}">
  424. <view class='pictrue'><image src='/images/noShopper.png'></image></view>
  425. <recommend host_product="{{hostProduct}}"></recommend>
  426. </view>
  427. </view>
  428. </Tab>
  429. </Tabs>
  430. </view>
  431. <!-- coupon-window window='{{window}}' couponList="{{couponList}}" bind:onClose="onClose"></coupon-window -->
  432. <authorize bind:onLoadFun='onLoadFun' isGoIndex='{{isGoIndex}}' iShidden="{{iShidden}}" isAuto="{{isAuto}}"></authorize>