index.wxml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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">
  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-sticky>
  48. <block wx:for="{{roomList}}" wx:key="index">
  49. <view class="room-card" wx:if="{{item.remaining>0}}">
  50. <view class="room-card1">
  51. <image src="{{item.images[0]}}"></image>
  52. <view class="room-card-textbox">
  53. <view class="room-card-textbox-titlebox">
  54. <view class="room-card-textbox-title">{{item.name}}</view>
  55. <van-icon name="arrow" custom-style='margin-top: 8rpx;' />
  56. </view>
  57. <view class="room-card-textbox-info">
  58. <block wx:for="{{item.tags}}" wx:for-item="tag">
  59. {{tag}}
  60. </block>
  61. </view>
  62. <view class="room-card-textbox-label">
  63. <block >
  64. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.discount.length>0}}">
  65. {{item.benefitMap.discount}}
  66. </view>
  67. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.gift.length>0}}">
  68. {{item.benefitMap.gift}}
  69. </view>
  70. </block>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="room-card2">
  75. <view class="price">¥{{item.price*daysBetween}}</view>
  76. <view class="submit" data-id="{{item.objectId}}" bindtap="navigate">订</view>
  77. </view>
  78. </view>
  79. <!-- 无房 -->
  80. <view class="room-card" style="opacity: 0.5;" wx:if="{{item.remaining==0}}">
  81. <view class="room-card1">
  82. <image src="{{item.images[0]}}"></image>
  83. <view class="room-card-textbox">
  84. <view class="room-card-textbox-titlebox">
  85. <view class="room-card-textbox-title">{{item.name}}</view>
  86. <van-icon name="arrow" custom-style='margin-top: 8rpx;' />
  87. </view>
  88. <view class="room-card-textbox-info">
  89. <block wx:for="{{item.tags}}" wx:for-item="tag">
  90. {{tag}}
  91. </block>
  92. </view>
  93. <view class="room-card-textbox-label">
  94. <block>
  95. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.discount.length>0}}">
  96. {{item.benefitMap.discount}}
  97. </view>
  98. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.gift.length>0}}">
  99. {{item.benefitMap.gift}}
  100. </view>
  101. </block>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="room-card2">
  106. <view class="no">时段无房</view>
  107. </view>
  108. </view>
  109. </block>
  110. </view>
  111. </view>
  112. </view>