index.wxml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. <!--index.wxml-->
  2. <view class="container">
  3. <view style="display: none; " class="address">
  4. <view class="name" bindtap="goCheckAddress">
  5. <image style="width: 28rpx;height: 36rpx;" src="/static/images/new/map.png" mode="widthFix"></image>
  6. <text class="jz-color address-name">{{addressInfo.address}}</text>
  7. <!-- <text class="shop-name" wx:if="{{addressInfo.shopId!=0&&addressInfo.shopName}}">{{addressInfo.shopName}}</text> -->
  8. <image style="width: 14rpx;height: 24rpx;" src="/static/images/new/arrow-right.png" mode="widthFix"></image>
  9. </view>
  10. <!-- <button class="shar" open-type="share" >
  11. <image src="/static/images/fenxiang.png"> </image>
  12. </button> -->
  13. <!-- <view class="warning" wx:if="{{addressInfo.shopId==0}}">您的地址不在服务范围内,换一个试试</view> -->
  14. </view>
  15. <view class="search">
  16. <!-- <picker mode="selector" style="font-size:32rpx" range="{{citys}}" value="{{cityIndex}}" bindchange="listenerCitySelected">
  17. <view style="width: 160rpx;text-align: center;display: flex;">
  18. <image style="width: 45rpx;height: 45rpx;" src="/static/images/address.png"></image>
  19. <view style="font-size:32rpx">{{city}}</view>
  20. </view>
  21. </picker> -->
  22. <navigator url="/pages/category/search/search" class="input">
  23. <!-- <van-icon name="search" style="color:gray"/> -->
  24. <image style="width: 26rpx;height: 26rpx;margin-right:20rpx;" src="/static/images/new/search.png" mode="widthFix">
  25. </image>
  26. <text class="txt">搜索商品名称</text>
  27. <!-- 品质保洁,一搜就有 -->
  28. <!-- <text class="txt">商品搜索, 共{{goodsCount}}款好物</text> -->
  29. </navigator>
  30. </view>
  31. <!--<view class="no-login" wx:if="{{!hasLogin}}">
  32. <view class="c">
  33. <text>您还没有登录</text>
  34. <button open-type="getUserInfo" bindgetuserinfo="goLogin">
  35. <image class="wechat" src="/static/images/wechat.png"></image>
  36. 点击授权微信登录
  37. </button>
  38. </view>
  39. </view>-->
  40. <view class='login'>
  41. <swiper class="banner" indicator-dots="{{banner.length>1?true:false}}" autoplay="true" interval="3000" duration="1000" indicator-color="rgba(0, 192, 255, .2)" indicator-active-color="rgba(0, 192, 255)">
  42. <swiper-item wx:for="{{banner}}" wx:key="id">
  43. <block wx:if="{{item.link}}">
  44. <navigator url="{{item.link}}">
  45. <image mode="aspectFill" src="{{item.url}}"></image>
  46. </navigator>
  47. </block>
  48. <block wx:else>
  49. <image mode="aspectFill" src="{{item.url}}"></image>
  50. </block>
  51. </swiper-item>
  52. </swiper>
  53. <view class="m-menu">
  54. <!--index拿前5个,最后一个固定所有-->
  55. <navigator url="/pages/category/category?id={{item.id}}" wx:if="{{index<4}}" wx:for="{{channel}}" wx:key="id">
  56. <view class="category-item">
  57. <image src="{{item.iconUrl}}" mode="aspectFill"></image>
  58. <view class="item-name">{{item.name}}</view>
  59. <view class="item-desc">{{item.desc}}</view>
  60. </view>
  61. </navigator>
  62. <!-- <navigator class="item" open-type="switchTab" url="/pages/tabBar/catalog/catalog">
  63. <image src="/static/images/quanbufenlei.png" background-size="cover"></image>
  64. <text>全部分类</text>
  65. </navigator> -->
  66. </view>
  67. <!-- 超值周期 优选套餐 -->
  68. <!-- <navigator url="/pages/category/category?id={{item.id}}" wx:if="{{index>=4&&index<=6}}" wx:for="{{channel}}"
  69. wx:key="id">
  70. <view class="hot-item">
  71. <image src="{{item.iconUrl}}" mode="widthFix"></image>
  72. </view>
  73. </navigator> -->
  74. <navigator url="/pages/category/category?id=1036044">
  75. <view class="hot-item">
  76. <image src="{{'https://jzmall.lifejingzhi.com/file/jzmall/weixin/ad-02.jpg?'+randomNum}}"
  77. mode="widthFix"></image>
  78. </view>
  79. </navigator>
  80. <navigator url="/pages/category/category?id=1036803">
  81. <view class="hot-item">
  82. <image src="{{'https://jzmall.lifejingzhi.com/file/jzmall/weixin/ad-03.jpg?' +randomNum}}"
  83. mode="widthFix"></image>
  84. </view>
  85. </navigator>
  86. <!-- <navigator url="/pages/ucenter/wx/join" >
  87. <view class="hot-item">
  88. <image src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/index/coupon.jpg" mode="widthFix"></image>
  89. </view>
  90. </navigator> -->
  91. <!--<view class="m-menu">
  92. <view class="row">
  93. <navigator class="item item-1 shoadow" wx:if="{{channel.length>=1}}" url="/pages/category/category?id={{channel[0].id}}">
  94. <text class="title">{{channel[0].name}}</text>
  95. <text class="subtitle">{{channel[0].keywords}}</text>
  96. <text class="border">上线专场</text>
  97. <image class="image1" src="{{channel[0].iconUrl}}" background-size="cover"></image>
  98. </navigator>
  99. <navigator wx:if="{{channel.length>=2}}" class="item item-2 image-margin shoadow" url="/pages/category/category?id={{channel[1].id}}">
  100. <text class="title">{{channel[1].name}}</text>
  101. <text class="subtitle">{{channel[1].keywords}}</text>
  102. <image class="image2" src="{{channel[1].iconUrl}}" background-size="cover"></image>
  103. </navigator>
  104. <navigator wx:if="{{channel.length>=3}}" class="item item-2 shoadow" url="/pages/category/category?id={{channel[2].id}}">
  105. <text class="title">{{channel[2].name}}</text>
  106. <text class="subtitle">{{channel[2].keywords}}</text>
  107. <image class="image2" src="{{channel[2].iconUrl}}" background-size="cover"></image>
  108. </navigator>
  109. </view>
  110. <view class="row">
  111. <navigator wx:if="{{channel.length>=4}}" class="item item-2 image-margin shoadow" url="/pages/category/category?id={{channel[3].id}}">
  112. <text class="title">{{channel[3].name}}</text>
  113. <text class="subtitle">{{channel[3].keywords}}</text>
  114. <image class="image2" src="{{channel[3].iconUrl}}" background-size="cover"></image>
  115. </navigator>
  116. <navigator wx:if="{{channel.length>=5}}" class="item item-2 image-margin shoadow" url="/pages/category/category?id={{channel[4].id}}">
  117. <text class="title">{{channel[4].name}}</text>
  118. <text class="subtitle">{{channel[4].keywords}}</text>
  119. <image class="image2" src="{{channel[4].iconUrl}}" background-size="cover"></image>
  120. </navigator>
  121. </view>
  122. </view>-->
  123. <!--
  124. <view class="a-section a-coupon" wx:if="{{coupon.length > 0}}">
  125. <view class="h">
  126. <view class="title">
  127. <view>
  128. <navigator url="/pages/coupon/coupon">
  129. <text class="txt">优惠券</text>
  130. </navigator>
  131. </view>
  132. </view>
  133. </view>
  134. <view wx:if="{{coupon.length>0}}" class="b">
  135. <view class="item" wx:for="{{coupon}}" wx:for-index="index" wx:for-item="item" wx:key="id" bindtap="getCoupon" data-index="{{item.id}}">
  136. <view class="tag">{{item.tag}}</view>
  137. <view class="content">
  138. <view class="left">
  139. <view class="discount">{{item.discount}}元</view>
  140. <view class="min"> 满{{item.min}}元使用</view>
  141. </view>
  142. <view class="right">
  143. <view class="name">{{item.name}}</view>
  144. <view class="desc">{{item.desc}}</view>
  145. <view class="time" wx:if="{{item.days != 0}}">有效期:{{item.days}}天</view>
  146. <view class="time" wx:else> 有效期:{{item.startTime}} - {{item.endTime}}</view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="a-section a-groupon" wx:if="{{groupons.length > 0}}">
  153. <view class="h">
  154. <view class="title">
  155. <view>
  156. <navigator url="/pages/groupon/grouponList/grouponList">
  157. <text class="txt">团购专区</text>
  158. </navigator>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="b">
  163. <view class="item" wx:for="{{groupons}}" wx:for-index="index" wx:for-item="item" wx:key="id">
  164. <navigator url="/pages/goods/goods?id={{item.id}}">
  165. <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
  166. <view class="right">
  167. <view class="text">
  168. <view class="header">
  169. <text class="name">{{item.name}}</text>
  170. <van-tag type="primary">{{item.grouponMember}}人成团</van-tag>
  171. </view>
  172. <view class="expire">
  173. <van-tag round type="warning">有效期至 {{item.expireTime}}</van-tag>
  174. </view>
  175. <text class="desc">{{item.brief}}</text>
  176. <view class="price">
  177. <view class="counterPrice">现价:¥{{item.retailPrice}}</view>
  178. <view class="retailPrice">团购价:¥{{item.grouponPrice}}</view>
  179. </view>
  180. </view>
  181. </view>
  182. </navigator>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="a-section a-brand">
  187. <view class="h">
  188. <navigator url="../brand/brand">
  189. <text class="txt">品牌制造商直供</text>
  190. </navigator>
  191. </view>
  192. <view class="b">
  193. <view class="item item-1" wx:for="{{brands}}" wx:key="id">
  194. <navigator url="/pages/brandDetail/brandDetail?id={{item.id}}">
  195. <view class="wrap">
  196. <image class="img" src="{{item.picUrl}}" mode="aspectFill"></image>
  197. <view class="mt">
  198. <text class="brand">{{item.name}}</text>
  199. <text class="price">{{item.floorPrice}}</text>
  200. <text class="unit">元起</text>
  201. </view>
  202. </view>
  203. </navigator>
  204. </view>
  205. </view>
  206. </view> -->
  207. <!-- 新品首发模块 -->
  208. <!-- <view class="a-section a-new" wx:if="{{newGoods.length > 0}}">
  209. <view class="h">
  210. <view style="width:100%;">
  211. <navigator url="../goods/newGoods/newGoods">
  212. <view class="txt1"></view>
  213. <view class="txt"> 新品首发</view>
  214. <view class="txt3"> 更多</view>
  215. </navigator>
  216. </view>
  217. </view>
  218. <view class="b">
  219. <view class="item" wx:for="{{newGoods}}" wx:for-index="index" wx:for-item="item" wx:key="id">
  220. <navigator class="good-nva" url="../goods/goods?id={{item.id}}">
  221. <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
  222. <text class="price">¥{{item.retailPrice}}</text>
  223. <text class="name">{{item.name}}</text>
  224. <text class="brand">{{item.brand.name}}</text>
  225. </navigator>
  226. </view>
  227. </view>
  228. </view> -->
  229. <view class="a-section a-popular" wx:if="{{hotGoods.length > 0}}">
  230. <view class="h">
  231. <view class="popular-title" bindtap="goHotGoods">
  232. <!-- <navigator url="../goods/hotGoods/hotGoods" class="popular-title"> -->
  233. <view class="title-left">
  234. <view class="txt1"></view>
  235. <view class="txt">鲸致推荐</view>
  236. </view>
  237. <view class="title-right">
  238. <text class="sub-color more"> 更多</text>
  239. <van-icon name="arrow" color="#85868A" />
  240. </view>
  241. <!-- </navigator> -->
  242. </view>
  243. </view>
  244. <view class="b">
  245. <view wx:for="{{hotGoods}}" wx:for-index="index" wx:for-item="item" wx:key="id">
  246. <navigator url="/pages/goods/goods?id={{item.id}}" class="popular-item">
  247. <view class="item-img-wrapper">
  248. <image wx:if="{{item.isNew}}" src="/static/images/new/isnew.png" class="isNew" mode="aspectFill"></image>
  249. <image class="img" src="{{item.gallery[0]}}" mode="aspectFill"></image>
  250. <view class="item-tag">{{item.categoryName}}</view>
  251. </view>
  252. <view class="item-main">
  253. <view class="item-left">
  254. <view style="display: flex;align-items: center;">
  255. <view class="self-tag">推荐</view>
  256. <text class="product-item-name">{{item.name}}</text>
  257. </view>
  258. <text class="sub-color item-brief">{{item.brief}}</text>
  259. </view>
  260. <view style="width: 200rpx;margin-top: 6rpx;">
  261. <view wx:if="{{item.activited||item.counterPrice!=item.retailPrice}}" class="item-right counter-price">
  262. 市场价:¥{{item.counterPrice}}
  263. </view>
  264. <view class="item-right retail-price">
  265. <text wx:if="{{item.activited}}" class="title">大促价:</text>
  266. <text class="unit">¥</text>
  267. <text wx:if="{{!item.activited}}" class="price">{{item.retailPrice}}</text>
  268. <text wx:else="" class="price">{{item.activityPrice}}</text>
  269. </view>
  270. </view>
  271. </view>
  272. <!-- 活动商品 显示样式 -->
  273. <view wx:if="{{item.activited}}" class="activity">
  274. <view class="limit">
  275. <!-- 限时活动 -->
  276. </view>
  277. <view style="display: flex;align-items: center;">
  278. <image class="clock"
  279. src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/clock.png"></image>
  280. <view class="time">距离活动仅剩{{item.activityDay}}天</view>
  281. <image class="arrow"
  282. src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/arrow.png" />
  283. </view>
  284. </view>
  285. <!-- <view class="item-sub">
  286. <view class="item-left">
  287. <text class="sub-color item-brief">{{item.brief}}</text>
  288. </view>
  289. <view class="item-right member-price" wx:if="{{item.memberPrice!=item.retailPrice}}">
  290. <view class="member-price-tag">会员价</view>
  291. <view class="memberPrice">¥{{item.memberPrice}}</view>
  292. </view>
  293. </view> -->
  294. <!-- <view>
  295. <view class="text">
  296. <text class="name">{{item.name}}</text>
  297. <text class="desc">{{item.brief}}</text>
  298. <text class="price">¥{{item.retailPrice}}</text>
  299. <text class="brand">{{item.brand.name}}</text>
  300. </view>
  301. </view> -->
  302. </navigator>
  303. </view>
  304. </view>
  305. </view>
  306. <!--专题精选-->
  307. <view class="a-section a-topic" wx:if="topics.length > 0" hidden="{{topics.length <= 0}}">
  308. <view class="h">
  309. <view>
  310. <navigator url="/pages/topic/topic">
  311. <text class="txt">专题精选</text>
  312. </navigator>
  313. </view>
  314. </view>
  315. <view class="b">
  316. <view class="list">
  317. <view class="item" wx:for="{{topics}}" wx:for-index="index" wx:for-item="item" wx:key="id">
  318. <navigator url="/pages/topic/topicDetail/topicDetail?id={{item.id}}">
  319. <image class="img" src="{{item.gallery[0]}}" background-size="cover"></image>
  320. <view class="np">
  321. <text class="name">{{item.title}}</text>
  322. <text class="price">¥{{item.price}}元起</text>
  323. </view>
  324. <text class="desc">{{item.subtitle}}</text>
  325. </navigator>
  326. </view>
  327. </view>
  328. <navigator wx:if="topics.length > 0" url="/pages/topic/topic" class="t">
  329. <view class="txt">更多其他专题 ></view>
  330. </navigator>
  331. </view>
  332. <!--旧格式专题
  333. <view class="b">
  334. <scroll-view scroll-x class="list">
  335. <view class="item" wx:for="{{topics}}" wx:for-index="index" wx:for-item="item" wx:key="id">
  336. <navigator url="../topicDetail/topicDetail?id={{item.id}}">
  337. <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
  338. <view class="np">
  339. <text class="name">{{item.title}}</text>
  340. <text class="price">¥{{item.price}}元起</text>
  341. </view>
  342. <text class="desc">{{item.subtitle}}</text>
  343. </navigator>
  344. </view>
  345. </scroll-view>
  346. <navigator url="/pages/category/category?id={{item.id}}" class="t">
  347. <view class="txt">{{'更多其他专题 >'}}</view>
  348. </navigator>
  349. </view>-->
  350. </view>
  351. <!-- 关于鲸致 -->
  352. <view class="about-jz">
  353. <view class="popular-title">
  354. <view class="title-left">
  355. <view class="devide-bar"></view>
  356. <view class="title-text">关于鲸致生活</view>
  357. </view>
  358. </view>
  359. <view class="jz-feature">
  360. <view class="feature-item">
  361. <text>家庭服务</text>
  362. <text>知名品牌</text>
  363. </view>
  364. <view class="devide-line"></view>
  365. <view class="feature-item">
  366. <text>标准服务</text>
  367. <text>细致可见</text>
  368. </view>
  369. <view class="devide-line"></view>
  370. <view class="feature-item">
  371. <text>100万+</text>
  372. <text>家庭客户</text>
  373. </view>
  374. <view class="devide-line"></view>
  375. <view class="feature-item">
  376. <text>专业培训</text>
  377. <text>品质保证</text>
  378. </view>
  379. <view class="devide-line"></view>
  380. <view class="feature-item">
  381. <text>中国平安</text>
  382. <text>保险保障</text>
  383. </view>
  384. </view>
  385. <!-- <view class="partner-title">鲸致合作</view>
  386. <image mode="widthFix" class="jzhz-img" src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/new/jzhz-0727.png">
  387. </image> -->
  388. <view class="jz-logo-wrapper">
  389. <image mode="widthFix" src="/static/images/new/jz-logo.png" class="jz-logo"></image>
  390. </view>
  391. <view class="service-tel sub-color">
  392. <view>客服热线:</view>
  393. <view bindtap="callPhone" class="phone-wrapper">
  394. <text>400-921-8987</text>
  395. <van-icon class="right-icon" name="phone-o" />
  396. </view>
  397. </view>
  398. <view class="jz-company">上海宅洁仕网络科技有限公司</view>
  399. </view>
  400. <!--
  401. <view class="a-section a-topic" wx:if="topics.length > 0" hidden="{{topics.length <= 0}}">
  402. <view class="h">
  403. <view>
  404. <navigator url="/pages/topic/topic">
  405. <text class="txt">专题精选</text>
  406. </navigator>
  407. </view>
  408. </view>
  409. <view class="b">
  410. <scroll-view scroll-x class="list">
  411. <view class="item" wx:for="{{topics}}" wx:for-index="index" wx:for-item="item" wx:key="id">
  412. <navigator url="../topicDetail/topicDetail?id={{item.id}}">
  413. <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
  414. <view class="np">
  415. <text class="name">{{item.title}}</text>
  416. <text class="price">¥{{item.price}}元起</text>
  417. </view>
  418. <text class="desc">{{item.subtitle}}</text>
  419. </navigator>
  420. </view>
  421. </scroll-view>
  422. </view>
  423. </view>
  424. <view class="good-grid" wx:for="{{floorGoods}}" wx:key="id">
  425. <view class="h">
  426. <text>{{item.name}}</text>
  427. </view>
  428. <view class="b">
  429. <block wx:for="{{item.goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="id">
  430. <view class="item {{iindex % 2 == 0 ? '' : 'item-b'}}">
  431. <navigator url="../goods/goods?id={{iitem.id}}" class="a">
  432. <image class="img" src="{{iitem.picUrl}}" background-size="cover"></image>
  433. <text class="name">{{iitem.name}}</text>
  434. <text class="price">¥{{iitem.retailPrice}}</text>
  435. </navigator>
  436. </view>
  437. </block>
  438. </view>
  439. <navigator url="/pages/category/category?id={{item.id}}" class="t">
  440. <view class="txt">{{'更多'+item.name+'好物 >'}}</view>
  441. </navigator>
  442. </view>-->
  443. </view>
  444. <!--广告-->
  445. <!-- <view class="adv" bindtap='goinviteFriends'>
  446. <view style="width:100%;height:100%">
  447. <image src="/static/images/active/xyhxd.jpg" style="width:100%;height:100%" />
  448. </view>
  449. </view> -->
  450. <!--弹窗 蒙城-->
  451. <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModalStatus}}"></view>
  452. <!--弹窗-->
  453. <view class="modalDlg" wx:if="{{showModalStatus}}">
  454. <view class="huode">未使用优惠券</view>
  455. <view class="youhuiquan">{{couponsData.length}}张优惠券</view>
  456. <view class="table">
  457. <view class="line" wx:for="{{couponsData}}" wx:key="item" bindtap="gocoupon">
  458. <view class="left">
  459. <view style="font-size:36rpx;margin-top:20rpx">
  460. <span wx:if="{{item.voucherType==1}}">¥{{item.discount}}</span>
  461. <span wx:if="{{item.voucherType==2}}">{{item.discount/10}}折</span>
  462. </view>
  463. <view style="display: block;font-size:19rpx;">
  464. <!--{{item.name}}-->
  465. <span wx:if="{{item.voucherType==1}}">立减券</span>
  466. <span wx:if="{{item.voucherType==2}}">折扣券</span>
  467. </view>
  468. <view class="ljsy">立即使用</view>
  469. </view>
  470. <view class="right">
  471. <view class="mz">{{item.desc}}</view>
  472. <view class="sj">有效期致 {{item.endTime}}</view>
  473. </view>
  474. </view>
  475. </view>
  476. <button bindtap="gocoupon">立即使用</button>
  477. <view bindtap="guanbicoupon" class="guanbi">×</view>
  478. </view>
  479. <!-- 客服电话 -->
  480. <!-- <view class="phone-btn" bindtap="callPhone">
  481. <van-icon class="right-icon" name="phone-o" />
  482. </view> -->
  483. </view>