index.wxml 19 KB

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