<nav type="title" background-color="#ffffff" frontColor="#000000" title="云上望仙" />
<scroll-view bindscroll="onScroll" class="all" id="scroller" scroll-y="true" bindscrolltolower="getShopStore" style="height: {{contentHeight}}rpx;">
  <view class="picturebox">
    <view class="img">
      <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250419/l1fsbm101248703.jpg"></image>
    </view>
  </view>

  <!-- 日期 -->
  <view class="Inforbox" style="{{scrollTop > 162 ? 'position: fixed; top: ' + topheight + 'rpx;margin-top: 0rpx;' : ''}}">
    <view class="infobox">
      <view class="seach">
        <van-icon name="search" size='40rpx' />
        <input class="input" bindinput='changeValue' model:value='{{value}}' type="text" placeholder="搜索 地点/门店名称 关键词" placeholder-style="font-size: 26rpx;" />
      </view>
      <view class="datebox" bindtap="onDisplay">
        <view class="start">{{date_start}}</view>
        <view class="today">{{specDateMap[date_start]}}</view>
        <view class="day">共{{daysBetween}}晚</view>
        <view class="end">{{date_end}}</view>
        <view class="today">{{specDateMap[date_end]}}</view>
      </view>
      <van-calendar show="{{ show }}" show-confirm="{{ true }}" confirm-text="完成" confirm-disabled-text='完成' type="range" bind:close="onClose" bind:confirm="onConfirm" color='#46a9a4' position='top' />
    </view>
  </view>
  <!-- 卡片 -->
  
  <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
    <block wx:for="{{storeList}}" wx:key="item">
      <block wx:if="{{index==1&&showRoom.length==3}}">
        <view class="picbox">
          <view style="margin-top: 60rpx;">
            <block wx:for="{{showRoom}}" wx:for-item="showItem" wx:key="showItem" >
              <view class="pic" data-store_id="{{showItem.objectId}}" bindtap="toStore">
                <view class="pic-1tex">{{showItem.storeName}}</view>
                <view class="pic-1tex2">50%用户选择</view>
              </view>
            </block>
          </view>
        </view>
      </block>
      <view class="container">
        <view class="cardbox">
          <image class="pic" mode="aspectFill" src="{{item.cover}}" data-store_id="{{item.objectId}}" bindtap="toStore"></image>
          <view class="textobx">
            <view class="title" data-store_id="{{item.objectId}}" bindtap="toStore">
              <view class="til">{{item.storeName}}</view>
              <image class="collect" wx:if="{{!item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
              <image class="collect" wx:if="{{item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
            </view>
            <view class="miaosu" wx:if="{{item.desc}}" data-store_id="{{item.objectId}}" bindtap="toStore">
              {{item.desc}}
            </view>
            <view class="bottom">
              <view class="qian" data-store_id="{{item.objectId}}" bindtap="toStore">
                ￥<view class="numbox">{{item.minPrice*daysBetween||0}}</view>
              </view>
              <view class="soucang" data-index="{{index}}" bindtap="collect">{{item.iscollect?'取消':'收藏'}}</view>
            </view>
          </view>
        </view>
      </view>
    </block>
    <block wx:if="{{storeList.length%2!=0}}">
      <view class="container" style="background:url('https://file-cloud.fmode.cn/EbxZUK5lBI/20250313/9l2529104740741.jpg') no-repeat;background-size:100% 100%;"></view>
    </block>
  </view>
  <view class="bottom2" wx:if="{{noMoreItems}}">没有更多民宿了...</view>
  <!-- 无搜索内容 -->
  <view class="Legendary-Information2" wx:if="{{storeList.length==0}}">
    <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无该店铺" />
  </view>
</scroll-view>