index.wxml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!--nova-tourism/pages/homestay/homestay-detail/index.wxml-->
  2. <nav type="back" background-color="#ffffff" frontColor="#000000" title="{{storeList[0].storeName}}" />
  3. <view class="all" scroll-y="true" bindscroll="onScroll" style="height: {{contentHeight}}rpx;padding-bottom: {{bottomNavHeight}}rpx;">
  4. <!-- 轮播图 -->
  5. <view class="picturebox">
  6. <swiper autoplay="{{true}}" interval="{{3000}}" circular duration="{{500}}" class="img" bindchange="onSwiperChange">
  7. <block wx:for="{{imageUrls}}" wx:key="index" wx:for-item="img">
  8. <swiper-item class="img">
  9. <image src="{{img}}" mode="aspectFill"></image>
  10. </swiper-item>
  11. </block>
  12. </swiper>
  13. <view class="numberbox">{{index}}/{{imageUrls.length}}</view>
  14. </view>
  15. <view class="card">
  16. <view class="Legendary-Information">
  17. <view class="info-name">
  18. <view class="name-tex">{{storeList[0].storeName}}</view>
  19. <image class="name-pic" wx:if="{{!storeList[0].iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png"></image>
  20. <image class="name-pic" wx:if="{{storeList[0].iscollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  21. </view>
  22. <view class="info-intr">{{storeList[0].desc}}</view>
  23. <view class="info-map">
  24. <view class="map">
  25. <map class="map" enable-zoom="ture" enable-scroll="ture" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="20" markers="{{markers}}"></map>
  26. </view>
  27. <view class="info-call">
  28. <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241122/n7me1o092906284.png"></image>
  29. <view class="call-tex">联系望仙管家</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="roomcard">
  34. <van-sticky z-index='999' offset-top="{{statusBarHeight+customHeight-5}}">
  35. <view class="timebox" bindtap="onDisplay">
  36. <view class="time">
  37. <view class="time-tex" wx:if="{{istoday=='true'}}">今天</view>
  38. <view class="time-time">{{decodedDateStart}}</view>
  39. </view>
  40. <van-icon name="minus" size='30rpx' custom-style='font-weight: 600;margin-bottom: 4rpx;margin-right: 6rpx;' />
  41. <view class="time">
  42. <view class="time-tex" wx:if="{{istoday=='true'}}">明天</view>
  43. <view class="time-time">{{decodedDateEnd}}</view>
  44. </view>
  45. <view class="time_tex2">共{{daysBetween}}晚</view>
  46. </view>
  47. <van-calendar show="{{ show }}" show-confirm="{{ true }}" confirm-text="完成" confirm-disabled-text='完成' type="range" bind:close="onClose" bind:confirm="onConfirm" color='#46a9a4' position='bottom' />
  48. </van-sticky>
  49. <block wx:for="{{roomList}}" wx:key="index">
  50. <view class="room-card" wx:if="{{item.remaining>0}}">
  51. <view class="room-card1">
  52. <image src="{{item.images[0]}}"></image>
  53. <view class="room-card-textbox">
  54. <view class="room-card-textbox-titlebox">
  55. <view class="room-card-textbox-title">{{item.name}}</view>
  56. <van-icon name="arrow" custom-style='margin-top: 8rpx;' />
  57. </view>
  58. <view class="room-card-textbox-info">
  59. <block wx:for="{{item.tags}}" wx:for-item="tag">
  60. {{tag}}
  61. </block>
  62. </view>
  63. <view class="room-card-textbox-label">
  64. <block >
  65. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.discount.length>0}}">
  66. {{item.benefitMap.discount}}
  67. </view>
  68. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.gift.length>0}}">
  69. {{item.benefitMap.gift}}
  70. </view>
  71. </block>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="room-card2">
  76. <view class="price">¥{{item.price*daysBetween}}</view>
  77. <view class="submit" data-id="{{item.objectId}}" bindtap="navigate">订</view>
  78. </view>
  79. </view>
  80. <!-- 无房 -->
  81. <view class="room-card" style="opacity: 0.5;" wx:if="{{item.remaining==0}}">
  82. <view class="room-card1">
  83. <image src="{{item.images[0]}}"></image>
  84. <view class="room-card-textbox">
  85. <view class="room-card-textbox-titlebox">
  86. <view class="room-card-textbox-title">{{item.name}}</view>
  87. <van-icon name="arrow" custom-style='margin-top: 8rpx;' />
  88. </view>
  89. <view class="room-card-textbox-info">
  90. <block wx:for="{{item.tags}}" wx:for-item="tag">
  91. {{tag}}
  92. </block>
  93. </view>
  94. <view class="room-card-textbox-label">
  95. <block>
  96. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.discount.length>0}}">
  97. {{item.benefitMap.discount}}
  98. </view>
  99. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.gift.length>0}}">
  100. {{item.benefitMap.gift}}
  101. </view>
  102. </block>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="room-card2">
  107. <view class="no">时段无房</view>
  108. </view>
  109. </view>
  110. </block>
  111. </view>
  112. </view>
  113. </view>