index.wxml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  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 < 5 }}">最新</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. <view class="flashSale" wx:if="{{seckillCont}}">
  147. <view class="title acea-row row-between row-bottom">
  148. <view class="left acea-row row-middle">
  149. <view class="pictrue">
  150. <image src="/images/buyTitle.png"></image>
  151. </view>
  152. <view class="text">
  153. <view>top sellers</view>
  154. <view class="chinese">拼手速抢惊喜 每日更新</view>
  155. </view>
  156. </view>
  157. <view class="right acea-row row-middle">
  158. <view class="item">
  159. <text class="iconfont icon-xuanzhong"></text>限时低价
  160. </view>
  161. <view class="item">
  162. <text class="iconfont icon-xuanzhong"></text>正品保证
  163. </view>
  164. </view>
  165. </view>
  166. <view class="pictrueBg"><image src="/images/timeBg.png"></image></view>
  167. <view class="timeItem">
  168. <scroll-view class="scroll-view_x" scroll-x scroll-with-animation scroll-left="{{scrollLeft}}">
  169. <view class="timeLen item {{killIndex==index?'on':''}}" data-index="{{index}}" bindtap="setTime" wx:for="{{timeList}}" wx:key='index'>
  170. <view class="time">{{ item.time }}</view>
  171. <view class="stateCon acea-row row-center-wrapper">
  172. <view class="state acea-row row-center-wrapper">
  173. {{ item.state }}
  174. </view>
  175. </view>
  176. </view>
  177. </scroll-view>
  178. </view>
  179. <view class="list">
  180. <scroll-view class="scroll-view_x acea-row" scroll-x style="width:auto;overflow:hidden;">
  181. <view class="item" wx:for="{{seckillList}}" wx:for-item="itemSeckill" wx:key='index'>
  182. <view class="pictrue" bindtap="goDetail" data-id="{{itemSeckill.id}}">
  183. <image src="{{itemSeckill.image}}"></image>
  184. <view class="bar">
  185. <view class="pos">
  186. <view class="num acea-row row-center-wrapper" style="width:{{itemSeckill.percent}}%;"></view>
  187. <view class="stock">已抢{{itemSeckill.percent}}%</view>
  188. </view>
  189. </view>
  190. </view>
  191. <view class="text">
  192. <view class="name line1">{{ itemSeckill.title }}</view>
  193. <view class="ot-money">
  194. ¥{{ itemSeckill.ot_price }}
  195. </view>
  196. <view class="money font-color">
  197. ¥<text class="num">{{ itemSeckill.price }}</text>
  198. </view>
  199. </view>
  200. </view>
  201. </scroll-view>
  202. </view>
  203. </view>
  204. -->
  205. <!-- 首发新品推荐图片
  206. <navigator
  207. url="{{lovely[0].link ? lovely[0].link : ''}}"
  208. class="advert"
  209. hover-class="none"
  210. wx:if="{{lovely.length}}">
  211. <image src="{{lovely[0].img}}"></image>
  212. </navigator>
  213. -->
  214. <!-- 不使用后台的首发新品图片
  215. <view class='advert' wx:if="{{newGoodsBananr}}">
  216. <block>
  217. <image src='{{newGoodsBananr}}'></image>
  218. </block>
  219. </view>
  220. -->
  221. <view class="newProducts" wx:if="{{info.firstList.length > 0}}">
  222. <!-- 首发新品 banner 固定图片 -->
  223. <view class="publicTitle acea-row row-center-wrapper">
  224. <image src="/images/newsTitle.png"></image>
  225. <navigator hover-class="none" url='/pages/first-new-product/index?type=3' class="more">更多 ></navigator>
  226. </view>
  227. <!-- 首发新品轮播图 -->
  228. <view class="newSwiper">
  229. <swiper autoplay="{{autoplay}}" circular="{{circular}}" interval="{{intervalNew}}" duration="{{durationNew}}" previous-margin="110px" next-margin="110px" bindchange="bindchange">
  230. <swiper-item wx:for="{{info.firstList}}" wx:key='index'>
  231. <view bindtap="goDetailType" data-items='{{item}}' class="item {{avtiveIndex===index?'active':'quiet'}}">
  232. <image src="{{item.image}}"></image>
  233. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  234. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  235. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  236. </view>
  237. </swiper-item>
  238. </swiper>
  239. <view class="text" wx:for="{{info.firstList}}" wx:key='index'>
  240. <view wx:if="{{index === avtiveIndex}}">
  241. <view class="name line1">{{ item.store_name }}</view>
  242. <view class="money font-color">
  243. ¥<text class="num">{{ item.price }}</text>
  244. </view>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. <view class="recommend" wx:if="{{info.bastList.length || info.bastBanner.length}}">
  250. <!-- 精品推荐 banner 客户端固定 -->
  251. <view class="publicTitle acea-row row-center-wrapper">
  252. <image src="/images/boutiqueTitle.png"></image>
  253. <navigator hover-class="none" url='/pages/first-new-product/index?type=1' class="more" >更多 ></navigator>
  254. </view>
  255. <!-- 精品推荐配图轮播 -->
  256. <view class="slider-banner recommendSwiper" wx:if="{{info.bastBanner.length}}">
  257. <swiper autoplay="true" indicator-dots="true"
  258. circular="{{circular}}" interval="3000" duration="500" indicator-color="rgba(0,0,0,0.2)" indicator-active-color="#ff3366">
  259. <swiper-item wx:for="{{info.bastBanner}}" wx:key='index'>
  260. <navigator url="{{item.url ? item.url : ''}}" class="pictrue acea-row row-middle" hover-class="none">
  261. <image src="{{item.img}}"></image>
  262. </navigator >
  263. </swiper-item>
  264. </swiper>
  265. </view>
  266. <!-- 精品推荐 产品列表 -->
  267. <view class="publicList acea-row row-between-wrapper">
  268. <view bindtap="goDetailType" data-items='{{item}}' class="item"
  269. wx:for="{{info.bastList}}" wx:key='index'>
  270. <view class="pictrue">
  271. <image src="{{item.image}}"></image>
  272. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  273. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  274. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  275. </view>
  276. <view class="text">
  277. <view class="name line1">{{ item.store_name }}</view>
  278. <view class="acea-row row-between-wrapper">
  279. <view>
  280. <view class="money font-color">
  281. ¥<text class="num">{{ item.price }}</text>
  282. </view>
  283. <!-- <view class="ot-money">¥{{ item.ot_price }}</view> -->
  284. </view>
  285. <view class="cart acea-row row-center-wrapper">
  286. <text class="iconfont icon-mzshopping"></text>
  287. </view>
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </view> <!-- 精品推荐 -->
  293. <view class="hotList" wx:if="{{likeInfo.length}}">
  294. <!-- 热门榜单 banner 客户端固定 -->
  295. <view class="publicTitle acea-row row-center-wrapper">
  296. <image src="/images/hotTitle.png"></image>
  297. <navigator url="/pages/first-new-product/index?type=2" class="more" hover-class="none">更多 ></navigator>
  298. </view>
  299. <view class="list acea-row">
  300. <navigator url="/pages/goods_details/index?id={{item.id}}" class="item"
  301. wx:for="{{likeInfo}}" wx:key='index'>
  302. <view class="pictrue">
  303. <image src="{{item.image}}"></image>
  304. <image src="/images/one01.png" class="icon" wx:if='{{index === 0}}'></image>
  305. <image src="/images/two02.png" class="icon" wx:if='{{index === 1}}'></image>
  306. <image src="/images/three03.png" class="icon" wx:if='{{index === 2}}'></image>
  307. </view>
  308. <view class="text">
  309. <view class="name line1">{{ item.store_name }}</view>
  310. <view class="money font-color">
  311. ¥<text class="num">{{ item.price }}</text>
  312. <!-- <text class="ot-money">¥{{ item.ot_price }}</text> -->
  313. </view>
  314. </view>
  315. </navigator >
  316. </view>
  317. </view>
  318. <view class="promotion" wx:if="{{benefit.length}}">
  319. <!-- 促销单品 banner -->
  320. <view class="publicTitle acea-row row-center-wrapper">
  321. <image src="/images/promotionTitle.png"></image>
  322. <navigator url="/pages/promotional-items/index" class="more" hover-class="none">更多 ></navigator>
  323. </view>
  324. <view class="publicList acea-row row-between-wrapper">
  325. <view bindtap="goDetailType" data-items='{{item}}' class="item"
  326. wx:for="{{benefit}}" wx:key='index'>
  327. <view class="pictrue">
  328. <image src="{{item.image}}"></image>
  329. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  330. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  331. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  332. </view>
  333. <view class="text">
  334. <view class="name line1">{{ item.store_name }}</view>
  335. <view class="acea-row row-between-wrapper">
  336. <view>
  337. <view class="money font-color">
  338. ¥<text class="num">{{ item.price }}</text><text class="label bg-color">疯抢</text>
  339. </view>
  340. <view class="ot-money">¥{{ item.ot_price }}</view>
  341. </view>
  342. <view class="cart acea-row row-center-wrapper">
  343. <text class="iconfont icon-mzshopping"></text>
  344. </view>
  345. </view>
  346. </view>
  347. </view>
  348. </view>
  349. </view>
  350. <view class="recommendList" wx:if='{{hostProduct.length > 0}}'>
  351. <!-- 海量精品 为您推荐 banner -->
  352. <view class="title">
  353. <image src="/images/becommendTitle.png"></image>
  354. </view>
  355. <view class="publicList acea-row row-between-wrapper">
  356. <view bindtap="goDetailType" data-items='{{item}}' wx:for="{{hostProduct}}" wx:key='index' class="item">
  357. <view class="pictrue">
  358. <image src="{{item.image}}"></image>
  359. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  360. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  361. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  362. </view>
  363. <view class="text">
  364. <view class="name line1">{{ item.store_name }}</view>
  365. <view class="acea-row row-between-wrapper">
  366. <view>
  367. <view class="money font-color">
  368. ¥<text class="num">{{ item.price }}</text>
  369. </view>
  370. <!-- <view class="ot-money">¥{{ item.ot_price }}</view> -->
  371. </view>
  372. <view class="cart acea-row row-center-wrapper">
  373. <text class="iconfont icon-mzshopping"></text>
  374. </view>
  375. </view>
  376. </view>
  377. </view>
  378. <view class='loadingicon acea-row row-center-wrapper' wx:if='{{hostProduct.length > 0}}'>
  379. <text class='loading iconfont icon-jiazai' hidden='{{recommend.loading==false}}'></text>
  380. {{recommend.loadTitle}}
  381. </view>
  382. </view>
  383. </view>
  384. </view>
  385. </Tab>
  386. <Tab wx:for="{{categoryOne.children}}" title="{{item.cate_name}}" wx:key='index'>
  387. <!--黑洞星球活动-->
  388. <view wx:if="{{item.id === 199}}">
  389. <Mine id="mine"></Mine>
  390. </view>
  391. <!-- 其他活动 -->
  392. <view wx:else class="wrapper">
  393. <!-- 活动商品列表 -->
  394. <view class="classifyList acea-row row-between-wrapper">
  395. <view bindtap="goDetailType" data-items='{{productItem}}' class="item" wx:for="{{productList}}" wx:for-item="productItem" wx:key='index'>
  396. <view class="pictrue">
  397. <image src="{{productItem.image}}"></image>
  398. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{productItem.activity && productItem.activity.type ==='1'}}">秒杀</text>
  399. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{productItem.activity && productItem.activity.type === '2'}}">砍价</text>
  400. <text class="pictrue_log_medium pictrue_log_class" wx:if="{{productItem.activity && productItem.activity.type === '3'}}">拼团</text>
  401. </view>
  402. <view class="text">
  403. <view class="name line1">{{ productItem.store_name }}</view>
  404. <view class="money font-color">
  405. ¥<span class="num">{{ productItem.price }}</span>
  406. </view>
  407. <view class="acea-row row-between-wrapper">
  408. <!--view class="vipMoney" wx:if="{{productItem.vip_price && productItem.vip_price > 0}}">
  409. ¥{{ productItem.vip_price }}
  410. <image src="/images/vip.png"></image>
  411. </view-->
  412. <view class="sales">已售{{ productItem.sales }}件</view>
  413. </view>
  414. </view>
  415. </view>
  416. <view class='loadingicon acea-row row-center-wrapper'>
  417. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>
  418. {{loadTitle}}
  419. </view>
  420. </view>
  421. <!-- 推荐产品展示 -->
  422. <view class='noCommodity' wx:if="{{productList.length==0 && where.page > 1}}">
  423. <view class='pictrue'><image src='/images/noShopper.png'></image></view>
  424. <recommend host_product="{{hostProduct}}"></recommend>
  425. </view>
  426. </view>
  427. </Tab>
  428. </Tabs>
  429. </view>
  430. <!-- coupon-window window='{{window}}' couponList="{{couponList}}" bind:onClose="onClose"></coupon-window -->
  431. <authorize bind:onLoadFun='onLoadFun' isGoIndex='{{isGoIndex}}' iShidden="{{iShidden}}" isAuto="{{isAuto}}"></authorize>