index.wxml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <nav type="title" background-color="#ffffff" frontColor="#000000" title="望仙谷" />
  2. <scroll-view class="all" scroll-y="true" bindscroll="onScroll" 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" />
  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='#ff0000' position='top' />
  20. </view>
  21. </view>
  22. <!-- 卡片 -->
  23. <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
  24. <block wx:for="{{storeList}}">
  25. <view class="picbox" wx:if="{{index==1}}">
  26. <view class="pic-2"></view>
  27. <block wx:for="{{3}}">
  28. <view class="pic-1">
  29. <view class="pic-1tex">望仙乡</view>
  30. <view class="pic-1tex2">35%用户选择</view>
  31. </view>
  32. </block>
  33. </view>
  34. <view class="cardbox">
  35. <image class="pic" src="{{item.image[0]}}" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
  36. <view class="textobx">
  37. <view class="title" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  38. <view class="til">{{item.storeName}}</view>
  39. <image class="collect" wx:if="{{!item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
  40. <image class="collect" wx:if="{{item.iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  41. </view>
  42. <view class="miaosu" wx:if="{{item.desc}}" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  43. {{item.desc}}
  44. </view>
  45. <view class="bottom">
  46. <view class="qian" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  47. <view class="numbox">
  48. {{item.price}}
  49. </view>
  50. </view>
  51. <view class="soucang" wx:if="{{!item.iscollect}}" data-id="{{item.objectId}}" bindtap="submit" >收藏</view>
  52. <view class="soucang" wx:if="{{item.iscollect}}" data-id="{{item.objectId}}" bindtap="cancle" >取消</view>
  53. </view>
  54. </view>
  55. </view>
  56. </block>
  57. </view>
  58. <!-- 无搜索内容 -->
  59. <view class="Legendary-Information2" wx:if="{{storeList.length==0}}">
  60. <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无该店铺" />
  61. </view>
  62. </scroll-view>