index.wxml 25 KB

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