index.wxml 6.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <nav type="title" background-color="#ffffff" frontColor="#000000" title="望仙谷" />
  2. <scroll-view class="all" scroll-y="true" bindscrolltolower="loadMoreData" style="height: {{contentHeight}}rpx;">
  3. <view class="picturebox">
  4. <view class="img">
  5. <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/jc17lo114657420.jpg"></image>
  6. </view>
  7. <!-- 日期 -->
  8. <view class="infobox">
  9. <view class="seach">
  10. <van-search shape="round" model:value="{{ value }}" placeholder="请输入地点/门店名称/关键词" bind:search="search" bind:change="change" bind:clear='clear'/>
  11. </view>
  12. <view class="datebox" bindtap="onDisplay">
  13. <view class="start">{{date_start}}</view>
  14. <view class="today" wx:if="{{istoday}}">今天</view>
  15. <view class="day">共{{daysBetween}}晚</view>
  16. <view class="end">{{date_end}}</view>
  17. <view class="today" wx:if="{{istoday}}">明天</view>
  18. </view>
  19. <van-calendar show="{{ show }}" show-confirm="{{ true }}" confirm-text="完成" confirm-disabled-text='完成' type="range" bind:close="onClose" bind:confirm="onConfirm" color='#46a9a4' position='top' />
  20. </view>
  21. </view>
  22. <!-- 卡片 -->
  23. <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
  24. <block>
  25. <view class="container">
  26. <block wx:for="{{storeList}}" wx:if="{{index%2==0}}">
  27. <view class="cardbox">
  28. <image class="pic" src="{{item.cover}}" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
  29. <view class="textobx">
  30. <view class="title" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  31. <view class="til">{{item.storeName}}</view>
  32. <image class="collect" wx:if="{{!item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
  33. <image class="collect" wx:if="{{item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  34. </view>
  35. <view class="miaosu" wx:if="{{item.desc}}" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  36. {{item.desc}}
  37. </view>
  38. <view class="bottom">
  39. <view class="qian" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  40. ¥<view class="numbox">{{item.price}}</view>
  41. </view>
  42. <view class="soucang" wx:if="{{!item.iscollect}}" data-id="{{item.objectId}}" bindtap="submit">收藏</view>
  43. <view class="soucang" wx:if="{{item.iscollect}}" data-id="{{item.objectId}}" bindtap="cancle">取消</view>
  44. </view>
  45. </view>
  46. </view>
  47. </block>
  48. </view>
  49. <view class="container">
  50. <block wx:for="{{storeList}}" wx:if="{{index%2==1}}">
  51. <block wx:if="{{index == 3}}">
  52. <view class="picbox">
  53. <view class="pic-2"></view>
  54. <block wx:for="{{3}}">
  55. <view class="pic-1">
  56. <view class="pic-1tex">望仙乡</view>
  57. <view class="pic-1tex2">35%用户选择</view>
  58. </view>
  59. </block>
  60. </view>
  61. </block>
  62. <view class="cardbox">
  63. <image class="pic" src="{{item.cover}}" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
  64. <view class="textobx">
  65. <view class="title" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  66. <view class="til">{{item.storeName}}</view>
  67. <image class="collect" wx:if="{{!item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
  68. <image class="collect" wx:if="{{item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  69. </view>
  70. <view class="miaosu" wx:if="{{item.desc}}" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  71. {{item.desc}}
  72. </view>
  73. <view class="bottom">
  74. <view class="qian" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  75. ¥<view class="numbox">{{item.price}}</view>
  76. </view>
  77. <view class="soucang" wx:if="{{!item.iscollect}}" data-id="{{item.objectId}}" bindtap="submit">收藏</view>
  78. <view class="soucang" wx:if="{{item.iscollect}}" data-id="{{item.objectId}}" bindtap="cancle">取消</view>
  79. </view>
  80. </view>
  81. </view>
  82. </block>
  83. </view>
  84. </block>
  85. </view>
  86. <view class="bottom" wx:if="{{noMoreItems}}">没有更多民宿了...</view>
  87. <!-- 无搜索内容 -->
  88. <view class="Legendary-Information2" wx:if="{{storeList.length==0}}">
  89. <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无该店铺" />
  90. </view>
  91. </scroll-view>