index.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <nav type="title" background-color="#ffffff" frontColor="#000000" title="云上望仙" />
  2. <scroll-view bindscroll="onScroll" class="all" id="scroller" scroll-y="true" bindscrolltolower="getShopStore" 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. </view>
  8. <!-- 日期 -->
  9. <view class="Inforbox" style="{{scrollTop > 162 ? 'position: fixed; top: ' + topheight + 'rpx;margin-top: 0rpx;' : ''}}">
  10. <view class="infobox">
  11. <view class="seach">
  12. <van-icon name="search" size='40rpx' />
  13. <input class="input" bindinput='changeValue' model:value='{{value}}' type="text" placeholder="搜索 地点/门店名称 关键词" placeholder-style="font-size: 26rpx;" />
  14. </view>
  15. <view class="datebox" bindtap="onDisplay">
  16. <view class="start">{{date_start}}</view>
  17. <view class="today">{{specDateMap[date_start]}}</view>
  18. <view class="day">共{{daysBetween}}晚</view>
  19. <view class="end">{{date_end}}</view>
  20. <view class="today">{{specDateMap[date_end]}}</view>
  21. </view>
  22. <van-calendar show="{{ show }}" show-confirm="{{ true }}" confirm-text="完成" confirm-disabled-text='完成' type="range" bind:close="onClose" bind:confirm="onConfirm" color='#46a9a4' position='top' />
  23. </view>
  24. </view>
  25. <!-- 卡片 -->
  26. <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
  27. <block wx:for="{{storeList}}" wx:key="item">
  28. <block wx:if="{{index==1&&showRoom.length==3}}">
  29. <view class="picbox">
  30. <view style="margin-top: 60rpx;">
  31. <block wx:for="{{showRoom}}" wx:for-item="showItem" wx:key="showItem" >
  32. <view class="pic" data-store_id="{{showItem.objectId}}" bindtap="toStore">
  33. <view class="pic-1tex">{{showItem.storeName}}</view>
  34. <view class="pic-1tex2">50%用户选择</view>
  35. </view>
  36. </block>
  37. </view>
  38. </view>
  39. </block>
  40. <view class="container">
  41. <view class="cardbox">
  42. <image class="pic" mode="aspectFill" src="{{item.cover}}" data-store_id="{{item.objectId}}" bindtap="toStore"></image>
  43. <view class="textobx">
  44. <view class="title" data-store_id="{{item.objectId}}" bindtap="toStore">
  45. <view class="til">{{item.storeName}}</view>
  46. <image class="collect" wx:if="{{!item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
  47. <image class="collect" wx:if="{{item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  48. </view>
  49. <view class="miaosu" wx:if="{{item.desc}}" data-store_id="{{item.objectId}}" bindtap="toStore">
  50. {{item.desc}}
  51. </view>
  52. <view class="bottom">
  53. <view class="qian" data-store_id="{{item.objectId}}" bindtap="toStore">
  54. ¥<view class="numbox">{{item.minPrice*daysBetween||0}}</view>
  55. </view>
  56. <view class="soucang" data-index="{{index}}" bindtap="collect">{{item.iscollect?'取消':'收藏'}}</view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </block>
  62. <block wx:if="{{storeList.length%2!=0}}">
  63. <view class="container" style="background:url('https://file-cloud.fmode.cn/EbxZUK5lBI/20250313/9l2529104740741.jpg') no-repeat;background-size:100% 100%;"></view>
  64. </block>
  65. </view>
  66. <view class="bottom2" wx:if="{{noMoreItems}}">没有更多民宿了...</view>
  67. <!-- 无搜索内容 -->
  68. <view class="Legendary-Information2" wx:if="{{storeList.length==0}}">
  69. <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无该店铺" />
  70. </view>
  71. </scroll-view>