index.wxml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <nav type="title" background-color="#46a9a4" title="美食预定" frontColor="#ffffff" />
  2. <view class="location">
  3. <view class="l_left">
  4. <van-icon name="https://cloud.file.futurestack.cn/F87DmDd4qN/20230327/1loeus105642.png" />
  5. 阜康市
  6. </view>
  7. <view class="l_right">
  8. 已有
  9. <span>5,666</span>
  10. 人打卡自己自由之旅
  11. </view>
  12. </view>
  13. <van-search value="{{ value }}" placeholder="请输入搜索关键词" shape="round" use-action-slot bind:change="onChan" bind:blur="onClick"></van-search>
  14. <!-- <view slot="action" bind:tap="onClick">搜索</view> -->
  15. <swiper class="swiper" indicator-dots="true" autoplay="true" circular>
  16. <!-- <block wx:for="{{imgUrls}}"> -->
  17. <swiper-item wx:for="{{banners}}" wx:key="index">
  18. <image src="{{item.image}}" class="slide-image" />
  19. </swiper-item>
  20. <!-- </block> -->
  21. </swiper>
  22. <view class="tabs">
  23. <view class="navBar">
  24. <block wx:for="{{tabs}}" wx:key="item">
  25. <view data-index="{{index}}" class="navItem {{tabIndex == index ? 'active' : '' }}" bindtap="onTabClick">
  26. <view class="navItemIcon">
  27. <image src="{{item.icon}}" />
  28. </view>
  29. <view class="navItemTitle">{{item.title}}</view>
  30. </view>
  31. </block>
  32. </view>
  33. <view class="nav_content">
  34. <block wx:if="{{tabIndex == 0}}">
  35. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  36. <view class="kind">
  37. <view class="item">
  38. <image src="https://file-cloud.fmode.cn/sHNeVwSaAg/20230530/kq2o16044008604.png" />
  39. <view class="head-text">火锅类</view>
  40. </view>
  41. <view class="item">
  42. <image src="https://file-cloud.fmode.cn/sHNeVwSaAg/20230530/h51281044008796.png" />
  43. <view class="head-text">烧烤类</view>
  44. </view>
  45. <view class="item">
  46. <image src="https://file-cloud.fmode.cn/sHNeVwSaAg/20230530/g17fm1044008357.png" />
  47. <view class="head-text">炒菜类</view>
  48. </view>
  49. </view>
  50. <view class="box">
  51. <block wx:for="{{list}}" wx:key="index">
  52. <view class="recommended-box" bindtap="storepackage" data-item="{{item}}">
  53. <image class="recommended-image" src="{{item.cover}}" />
  54. <view class="recommended__box">
  55. <view class="recommended-name">{{item.storeName}}</view>
  56. <view class="recommended-score">
  57. <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230602/cv1d8f031530864.png" />
  58. <view class="score">评分:{{item.score}}分</view>
  59. <view class="recommended-distance">{{item.distance}}km</view>
  60. </view>
  61. <view class="recommended-score">
  62. <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230602/11pgj9031525427.png" />
  63. <view class="recommended-address">{{item.storeAddress}}</view>
  64. </view>
  65. <view class="price">¥{{item.perCapita}}/人</view>
  66. </view>
  67. <button class="button_1">GO</button>
  68. </view>
  69. </block>
  70. </view>
  71. </scroll-view>
  72. </block>
  73. <block wx:if="{{tabIndex == 1}}">
  74. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  75. <view class="box">
  76. <block wx:for="{{list}}" wx:key="index">
  77. <view class="recommended-box" data-item="{{item}}" bindtap="storepackage">
  78. <image class="recommended-image" src="{{item.image[0]}}" />
  79. <view class="recommended__box">
  80. <view class="recommended-name">{{item.storeName}}</view>
  81. <view class="recommended-score">
  82. <van-icon name="https://i.328888.xyz/2023/04/04/ibFrOJ.png" />
  83. <view class="score">评分:{{item.score}}分</view>
  84. <view class="recommended-distance">距离{{item.distance}}km</view>
  85. </view>
  86. <view class="recommended-score">
  87. <van-icon name="https://cloud.file.futurestack.cn/F87DmDd4qN/20230327/1loeus105642.png" />
  88. <view class="recommended-address">{{item.storeAddress}}</view>
  89. </view>
  90. <view class="price">¥{{item.perCapita}}/人</view>
  91. </view>
  92. <button class="button_1">GO</button>
  93. </view>
  94. </block>
  95. </view>
  96. </scroll-view>
  97. </block>
  98. <block wx:if="{{tabIndex == 2}}">
  99. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  100. <view class="box">
  101. <block wx:for="{{list}}" wx:key="index">
  102. <view class="recommended-box" data-item="{{item}}" bindtap="storepackage">
  103. <image class="recommended-image" src="{{item.image[0]}}" />
  104. <view class="recommended__box">
  105. <view class="recommended-name">{{item.storeName}}</view>
  106. <view class="recommended-score">
  107. <van-icon name="https://i.328888.xyz/2023/04/04/ibFrOJ.png" />
  108. <view class="score">评分:{{item.score}}分</view>
  109. <view class="recommended-distance">距离{{item.distance}}km</view>
  110. </view>
  111. <view class="recommended-score">
  112. <van-icon name="https://cloud.file.futurestack.cn/F87DmDd4qN/20230327/1loeus105642.png" />
  113. <view class="recommended-address">{{item.storeAddress}}</view>
  114. </view>
  115. <view class="price">¥{{item.perCapita}}/人</view>
  116. </view>
  117. <button class="button_1">GO</button>
  118. </view>
  119. </block>
  120. </view>
  121. </scroll-view>
  122. </block>
  123. <block wx:if="{{tabIndex == 3}}">
  124. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  125. <view class="box">
  126. <block wx:for="{{list}}" wx:key="index">
  127. <view class="recommended-box" data-item="{{item}}" bindtap="storepackage">
  128. <image class="recommended-image" src="{{item.image[0]}}" />
  129. <view class="recommended__box">
  130. <view class="recommended-name">{{item.storeName}}</view>
  131. <view class="recommended-score">
  132. <van-icon name="https://i.328888.xyz/2023/04/04/ibFrOJ.png" />
  133. <view class="score">评分:{{item.score}}分</view>
  134. <view class="recommended-distance">距离{{item.distance}}km</view>
  135. </view>
  136. <view class="recommended-score">
  137. <van-icon name="https://cloud.file.futurestack.cn/F87DmDd4qN/20230327/1loeus105642.png" />
  138. <view class="recommended-address">{{item.storeAddress}}</view>
  139. </view>
  140. <view class="price">¥{{item.perCapita}}/人</view>
  141. </view>
  142. <button class="button_1">GO</button>
  143. </view>
  144. </block>
  145. </view>
  146. </scroll-view>
  147. </block>
  148. </view>
  149. </view>
  150. <!-- <van-tabs active="{{ active }}" title-active-color="#3a3a3a" title-inactive-color="#a7a6a6" bind:change="onChange">
  151. <van-tab title="推荐">
  152. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  153. <view class="kind">
  154. <view class="item1">
  155. <image src="https://i.328888.xyz/2023/04/03/iOKgfH.png" />
  156. <view class="head-text">火锅类</view>
  157. </view>
  158. <view class="item2">
  159. <image src="https://i.328888.xyz/2023/04/03/iOKxjQ.png" />
  160. <view class="head-text">烧烤类</view>
  161. </view>
  162. <view class="item3">
  163. <image src="https://i.328888.xyz/2023/04/03/iOKBoF.png" />
  164. <view class="head-text">炒菜类</view>
  165. </view>
  166. </view>
  167. <view class="box">
  168. <block wx:for="{{list}}" wx:key="index">
  169. <view class="recommended-box" bindtap="storepackage" data-item="{{item}}">
  170. <image class="recommended-image" src="{{item.cover}}" />
  171. <view class="recommended__box">
  172. <view class="recommended-name">{{item.storeName}}</view>
  173. <view class="recommended-score">
  174. <van-icon name="https://i.328888.xyz/2023/04/04/ibFrOJ.png" />
  175. <view class="score">评分:{{item.score}}分</view>
  176. <view class="recommended-distance">{{item.distance}}km</view>
  177. </view>
  178. <view class="recommended-score">
  179. <van-icon name="https://cloud.file.futurestack.cn/F87DmDd4qN/20230327/1loeus105642.png" />
  180. <view class="recommended-address">{{item.storeAddress}}</view>
  181. </view>
  182. <view class="price">¥{{item.perCapita}}/人</view>
  183. </view>
  184. <button class="button_1">GO</button>
  185. </view>
  186. </block>
  187. </view>
  188. </scroll-view>
  189. </van-tab>
  190. <van-tab title="评分"></van-tab>
  191. <van-tab title="距离"></van-tab>
  192. <van-tab title="价格"></van-tab>
  193. <van-tab title="评分" title-style="margin_left:-40rpx;display:block"></van-tab>
  194. <van-tab title="距离" title-style="margin_left:-40rpx;display:block"></van-tab>
  195. <van-tab title="价格" title-style="margin_left:-40rpx;display:block"></van-tab>
  196. </van-tabs> -->
  197. <!-- <van-tabs id="show" wx:if="{{showTab}}" active="{{ active }}" bind:change="onChange" color="#46a9a4" nav-class="tab_title">
  198. <van-tab title="推荐">
  199. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  200. <view class="box">
  201. <block wx:for="{{list}}" wx:key="index">
  202. <view class="recommended-box" bindtap="storepackage" data-item="{{item}}">
  203. <image class="recommended-image" src="{{item.cover}}" />
  204. <view class="recommended-name">{{item.storeName}}</view>
  205. <view class="recommended-score">
  206. <view class="score">{{item.score}}分</view>
  207. <view class="price">¥{{item.perCapita}}/人</view>
  208. </view>
  209. <view class="recommended-score">
  210. <view class="recommended-address">{{item.storeAddress}}</view>
  211. </view>
  212. <view class="recommended-distance">距离{{item.distance}}km</view>
  213. </view>
  214. </block>
  215. </view>
  216. </scroll-view>
  217. </van-tab>
  218. <van-tab title="评分">
  219. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  220. <view class="box">
  221. <block wx:for="{{list}}" wx:key="index">
  222. <view class="recommended-box" data-item="{{item}}" bindtap="storepackage">
  223. <image class="recommended-image" src="{{item.image[0]}}" />
  224. <view class="recommended-name">{{item.storeName}}</view>
  225. <view class="recommended-score">
  226. <view class="score">{{item.score}}分</view>
  227. <view class="price">¥{{item.perCapita}}/人</view>
  228. </view>
  229. <view class="recommended-score">
  230. <view class="recommended-address">{{item.storeAddress}}</view>
  231. </view>
  232. <view class="recommended-distance">距离{{item.distance}}km</view>
  233. </view>
  234. </block>
  235. </view>
  236. </scroll-view>
  237. </van-tab>
  238. <van-tab title="距离">
  239. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  240. <view class="box">
  241. <block wx:for="{{list}}" wx:key="index">
  242. <view class="recommended-box" data-item="{{item}}" bindtap="storepackage">
  243. <image class="recommended-image" src="{{item.image[0]}}" />
  244. <view class="recommended-name">{{item.storeName}}</view>
  245. <view class="recommended-score">
  246. <view class="score">{{item.score}}分</view>
  247. <view class="price">¥{{item.perCapita}}/人</view>
  248. </view>
  249. <view class="recommended-score">
  250. <view class="recommended-address">{{item.storeAddress}}</view>
  251. </view>
  252. <view class="recommended-distance">距离{{item.distance}}km</view>
  253. </view>
  254. </block>
  255. </view>
  256. </scroll-view>
  257. </van-tab>
  258. <van-tab title="价格">
  259. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  260. <view class="box">
  261. <block wx:for="{{list}}" wx:key="index">
  262. <view class="recommended-box" data-item="{{item}}" bindtap="storepackage">
  263. <image class="recommended-image" src="{{item.image[0]}}" />
  264. <view class="recommended-name">{{item.storeName}}</view>
  265. <view class="recommended-score">
  266. <view class="score">{{item.score}}分</view>
  267. <view class="price">¥{{item.perCapita}}/人</view>
  268. </view>
  269. <view class="recommended-score">
  270. <view class="recommended-address">{{item.storeAddress}}</view>
  271. </view>
  272. <view class="recommended-distance">距离{{item.distance}}km</view>
  273. </view>
  274. </block>
  275. </view>
  276. </scroll-view>
  277. </van-tab>
  278. </van-tabs>
  279. <block wx:for="{{list}}" wx:key="index">
  280. <view class="store" bindtap="storepackage">
  281. <view class="stores">
  282. <image class="store-image" src="{{item.image[0]}}" />
  283. <view class="store-box">
  284. <view class="box-name">{{item.storeName}}</view>
  285. <view class="price">¥{{item.perCapita}}/人</view>
  286. <view class="address">{{item.storeAddress}}</view>
  287. </view>
  288. </view>
  289. <view class="box-evaluation">
  290. <view class="store-evaluation">
  291. <van-rate readonly value="{{ item.score }}" allow-half void-icon="star" size="{{ 15 }}" void-color="#eee" color="#ffd21e" />
  292. <view class="evaluation">{{item.score}}</view>
  293. </view>
  294. <view class="sold">季售 {{item.sold?item.sold:'0'}}</view>
  295. </view>
  296. </view>
  297. </block> -->