index.wxml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. 已有<span>5,666</span>人打卡自己自由之旅
  9. </view>
  10. </view>
  11. <!-- <van-search value="{{ value }}" placeholder="请输入搜索关键词" shape="round" use-action-slot bind:change="search" bind:blur="search"></van-search> -->
  12. <van-search shape="round" type="text" placeholder="请输入搜索关键词" model:value="{{searchVal}}" bind:search="search" use-action-slot bind:clear="searchClear" >
  13. <!-- <view slot="action" bind:tap="search" >搜索</view> -->
  14. </van-search>
  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-id="{{index}}" data-type="{{item.type}}" 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/khgbeQmvYZ/20230530/flrba1042910003.png" />
  39. <view class="head-text">酒店风格</view>
  40. </view>
  41. <view class="item">
  42. <image src="https://file-cloud.fmode.cn/khgbeQmvYZ/20230530/p2u910042910401.png" />
  43. <view class="head-text">自然风格</view>
  44. </view>
  45. <view class="item">
  46. <image src="https://file-cloud.fmode.cn/khgbeQmvYZ/20230530/o1dgm1042910641.png" />
  47. <view class="head-text">居家风格</view>
  48. </view>
  49. </view>
  50. <goods-list list="{{rooms}}" mode="vertical" bind:toDetail="details"></goods-list>
  51. </scroll-view>
  52. </block>
  53. <block wx:if="{{tabIndex == 1}}">
  54. <!-- <view class="kind">
  55. <view class="item">
  56. <image src="https://i.328888.xyz/2023/04/10/im315q.png" />
  57. <view class="head-text">酒店风格</view>
  58. </view>
  59. <view class="item">
  60. <image src="https://i.328888.xyz/2023/04/10/im391A.png" />
  61. <view class="head-text">自然风格</view>
  62. </view>
  63. <view class="item">
  64. <image src="https://i.328888.xyz/2023/04/10/im3oit.png" />
  65. <view class="head-text">居家风格</view>
  66. </view>
  67. </view> -->
  68. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}">
  69. <goods-list list="{{rooms}}" mode="vertical" bind:toDetail="details"></goods-list>
  70. </scroll-view>
  71. </block>
  72. </view>
  73. </view>
  74. <!-- <van-tabs wx:if="{{showTab}}" active="{{active}}" id="tabs" bind:change="tabChange" color="#FFE300" nav-class="tab_title">
  75. <van-tab title="推荐" name="recommend" >
  76. </van-tab>
  77. <van-tab title="价格" name="price">
  78. </van-tab>
  79. </van-tabs>
  80. <scroll-view style="height:calc(100vh - {{stickytop+ 148}}px);" scroll-y="{{true}}" bindscrolltolower="loadMore">
  81. <goods-list list="{{rooms}}" mode="vertical" bind:toDetail="details"></goods-list>
  82. </scroll-view> -->