index.wxml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!--index.wxml-->
  2. <wxs src="../../wxs/tool.wxs" module="tool"></wxs>
  3. <view class="index_box">
  4. <view class="index_top z-padding-b-24">
  5. <view class="index_top_location z-margin-lr-32"
  6. style="padding-top:{{safeTop}};height: {{menuH}};box-sizing: content-box;" bindtap="selectAddress">
  7. <image class="location_img" src="../../static/index/location.png" mode="" />
  8. <view class="location_text z-margin-l-16 z-margin-r-8 z-font-32">{{address.name}}</view>
  9. <image src="/static/index/more.png" class="more"></image>
  10. </view>
  11. </view>
  12. <view class="index_bottom">
  13. <scroll-view class="index_main" scroll-y="true">
  14. <!-- 搜索 -->
  15. <view class="search_box z-radius-40 z-margin-lr-32 z-padding-lr-24" bindtap="search">
  16. <image class="search_img" src="../../static/index/search.png" mode="" />
  17. <view class="search_word z-font-24 text_999 z-margin-l-24">搜索上门服务</view>
  18. </view>
  19. <!-- 轮播图 -->
  20. <swiper class="swiper_box" autoplay="true">
  21. <swiper-item wx:for="{{thumb}}" class="swiper_img ">
  22. <image class="swiper_img" src="{{tool.cdn(item.image)}}" mode="aspectFill" data-item="{{item}}"
  23. bindtap="swiperTap" />
  24. </swiper-item>
  25. </swiper>
  26. <!-- 公告 -->
  27. <view class="z-flex-c-s-b z-padding-lr-24 z-radius-16 notice-box" wx:if="{{config.user_notice}}">
  28. <image class="notice-img" src="../../static/index/indexnotice.png"></image>
  29. <van-notice-bar class="z-flex-1" color="#6B738B" background="#fff" text="{{config.user_notice}}" />
  30. </view>
  31. <view class="index_content">
  32. <!-- 导航 -->
  33. <view class="ten_btn z-radius-20">
  34. <view class="ten_btn_box z-radius-20 z-padding-t-16">
  35. <view class="ten_btn_item z-padding-tb-24 z-flex-y-c" bindtap="cateList" wx:for="{{cate}}" wx:key="id"
  36. data-item="{{item}}">
  37. <image src="{{tool.cdn(item.image)}}" class="ten_btn_img" mode="aspectFill" />
  38. <view class="z-font-24">{{item.label}}</view>
  39. </view>
  40. </view>
  41. <view class="ten_btn_bottom z-padding-24 ">
  42. <view class="ten_btn_bottom_item">
  43. <image src="../../static/index/one.png" class="ten_btn_bottom_img" mode="" />
  44. <view class="z-font-22 z-padding-l-8">全场保障</view>
  45. </view>
  46. <view class="ten_btn_bottom_item">
  47. <image src="../../static/index/two.png" class="ten_btn_bottom_img" mode="" />
  48. <view class="z-font-22 z-padding-l-8">7×24小时服务</view>
  49. </view>
  50. <view class="ten_btn_bottom_item">
  51. <image src="../../static/index/three.png" class="ten_btn_bottom_img" mode="" />
  52. <view class="z-font-22 z-padding-l-8">不满意重做</view>
  53. </view>
  54. <view class="ten_btn_bottom_item">
  55. <image src="../../static/index/four.png" class="ten_btn_bottom_img" mode="" />
  56. <view class="z-font-22 z-padding-l-8">迟到必赔</view>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 套餐 -->
  61. <view class="setMeal-box z-padding-24" wx:if="{{pack.length>0}}">
  62. <view class="z-flex-c-s-b">
  63. <view class="setMeal-l-text">套餐 <text class="setMeal-label">打包买更便宜</text> </view>
  64. <view class="setMeal-r-text" bindtap="meallist">更多
  65. <van-icon name="arrow" />
  66. </view>
  67. </view>
  68. <image class="setMeal-1" src="../../static/index/setMeal-1.png" mode="" />
  69. <image class="setMeal-2" src="../../static/index/setMeal-2.png" mode="" />
  70. <view class="z-margin-t-24">
  71. <block wx:for="{{pack}}" wx:key='id' wx:for-item="val" wx:if="{{index<2}}">
  72. <pack info="{{val}}" bind:packTap="packTap"></pack>
  73. </block>
  74. </view>
  75. </view>
  76. <!-- 附近服务者 -->
  77. <view class="index_samebox" wx:if="{{nearSkill.length>0}}">
  78. <view class="index_samebox_top z-margin-tb-30">
  79. <view class="z-font-26 z-font-w">附近服务者</view>
  80. <view class="z-font-24 text_999" bindtap="nearSkill">更多
  81. <van-icon name="arrow" />
  82. </view>
  83. </view>
  84. </view>
  85. <scroll-view scroll-x="true" show-scrollbar="{{false}}" enhanced="true">
  86. <view class="scrollx ">
  87. <view class="scrollx_item z-flex-y-c z-radius-20" wx:for="{{nearSkill}}" wx:key="id" data-info="{{item}}"
  88. bindtap="skillTap">
  89. <image class="scrollx_item_img z-padding-16" src="{{tool.cdn(item.image)}}" mode="aspectFill" lazy-load
  90. lazy-load-margin="0" />
  91. <view>{{item.name}}</view>
  92. <view class="scrollx_item_tips z-font-22 z-flex z-radius-4 z-padding-lr-8 z-margin-b-24 z-margin-t-8">
  93. {{item.skillCate}}
  94. </view>
  95. </view>
  96. </view>
  97. </scroll-view>
  98. <block wx:for="{{cateGoods}}">
  99. <view class="zxcpage" wx:if="{{item.goodsList.length > 0}}" wx:key="id">
  100. <view class="index_samebox">
  101. <view class="index_samebox_top z-margin-tb-30">
  102. <view class="z-font-26 z-font-w">{{item.name}}</view>
  103. <view class="z-font-24 text_999" bindtap="cateList" data-item="{{item}}">更多
  104. <van-icon name="arrow" />
  105. </view>
  106. </view>
  107. </view>
  108. <view class="fourbox z-margin-lr-32">
  109. <block wx:for="{{item.goodsList}}" wx:key='id' wx:for-item="val">
  110. <service info="{{val}}" type="{{1}}" bind:serviceTap="serviceTap"></service>
  111. </block>
  112. </view>
  113. </view>
  114. </block>
  115. </view>
  116. </scroll-view>
  117. </view>
  118. <image src="../../static/service/center.png" class="center" bindtap="center"></image>
  119. <view class="center2-box">
  120. <image src="../../static/service/center-kf.png" class="center2"></image>
  121. <button type="primary" open-type="contact" class="contact-btn"></button>
  122. </view>
  123. <view class="popup-bg" wx:if="{{showPopup}}" bindtap="hidePopup"></view>
  124. <view class="popup" wx:if="{{showPopup}}">
  125. <!-- 图片 -->
  126. <view wx:if="{{config.home_image}}">
  127. <image bind:tap="toPage" class="home_image" src="{{tool.cdn(config.home_image)}}" mode="widthFix" />
  128. <image bind:tap="hidePopup" class="shut-img" src="../../static/index/shut-img.png" alt="" />
  129. </view>
  130. <!-- 公告 -->
  131. <view wx:elif="{{config.home_content}}" class="popNotice-box z-padding-lr-32 z-padding-t-32">
  132. <view class="notice-img-box">
  133. <image class="noticepop-img" src="../../static/index/notice-pop.png" mode="" />
  134. </view>
  135. <image class="notice-bac" src="../../static/index/notice-bac.png" mode="" />
  136. <view class="popNotice-title">公告</view>
  137. <view class="notice-content z-margin-t-32">{{config.home_content}}</view>
  138. <view class="notice-btn z-text-c z-padding-tb-24" bind:tap="hidePopup">关闭</view>
  139. </view>
  140. </view>
  141. </view>