index.wxml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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-intr2" bindtap="callMap">
  24. <van-icon size='36rpx' name="location-o" /> {{storeList[0].storeAddress}}
  25. </view>
  26. <view class="info-map">
  27. <view class="map">
  28. <map class="map" enable-zoom="ture" enable-scroll="true" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="14" markers="{{markers}}"></map>
  29. </view>
  30. <view class="info-call" bindtap="phone">
  31. <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241212/e9muh5104028782.png"></image>
  32. <view class="call-tex">联系望仙管家</view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="roomcard">
  37. <van-sticky z-index='99' offset-top="{{statusBarHeight+customHeight-5}}">
  38. <view class="timebox" bindtap="onDisplay">
  39. <view class="time">
  40. <view class="time-tex" wx:if="{{istoday=='true'}}">今天</view>
  41. <view class="time-time">{{decodedDateStart}}</view>
  42. </view>
  43. <van-icon name="minus" size='30rpx' custom-style='font-weight: 600;margin-bottom: 4rpx;margin-right: 6rpx;' />
  44. <view class="time">
  45. <view class="time-tex" wx:if="{{istoday=='true'}}">明天</view>
  46. <view class="time-time">{{decodedDateEnd}}</view>
  47. </view>
  48. <view class="time_tex2">共{{daysBetween}}晚</view>
  49. </view>
  50. <van-calendar show="{{ show }}" show-confirm="{{ true }}" confirm-text="完成" confirm-disabled-text='完成' type="range" bind:close="onClose" bind:confirm="onConfirm" color='#46a9a4' position='bottom' />
  51. </van-sticky>
  52. <block wx:for="{{roomList}}" wx:key="index">
  53. <view class="room-card" wx:if="{{item.isroom}}">
  54. <view class="room-card1" data-index="{{index}}" bind:tap="showRoom">
  55. <image src="{{item.images[0]}}" mode="aspectFill"></image>
  56. <view class="room-card-textbox">
  57. <view class="room-card-textbox-titlebox">
  58. <view class="room-card-textbox-title">{{item.name}}</view>
  59. <van-icon name="arrow" custom-style='margin-top: 8rpx;' />
  60. </view>
  61. <view class="room-card-textbox-info">
  62. <block wx:for="{{item.tags}}" wx:key="index" wx:for-item="tag">
  63. {{tag}}
  64. </block>
  65. </view>
  66. <view class="room-card-textbox-label">
  67. <block>
  68. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.discount.length>0}}">
  69. {{item.benefitMap.discount}}
  70. </view>
  71. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.gift.length>0}}">
  72. {{item.benefitMap.gift}}
  73. </view>
  74. </block>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="room-card2">
  79. <view class="price">¥{{item.price*daysBetween}}</view>
  80. <view class="submit" data-id="{{item.objectId}}" bindtap="navigate">订</view>
  81. </view>
  82. </view>
  83. <!-- 无房 -->
  84. <view class="room-card" style="opacity: 0.5;" wx:if="{{!item.isroom}}">
  85. <view class="room-card1">
  86. <image src="{{item.images[0]}}" mode="aspectFill"></image>
  87. <view class="room-card-textbox">
  88. <view class="room-card-textbox-titlebox">
  89. <view class="room-card-textbox-title">{{item.name}}</view>
  90. <van-icon name="arrow" custom-style='margin-top: 8rpx;' />
  91. </view>
  92. <view class="room-card-textbox-info">
  93. <block wx:for="{{item.tags}}" wx:for-item="tag">
  94. {{tag}}
  95. </block>
  96. </view>
  97. <view class="room-card-textbox-label">
  98. <block>
  99. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.discount.length>0}}">
  100. {{item.benefitMap.discount}}
  101. </view>
  102. <view class="room-card-textbox-label2" wx:if="{{item.benefitMap.gift.length>0}}">
  103. {{item.benefitMap.gift}}
  104. </view>
  105. </block>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="room-card2">
  110. <view class="no">时段无房</view>
  111. </view>
  112. </view>
  113. </block>
  114. </view>
  115. </view>
  116. </view>
  117. <van-popup custom-style="height: 80vh;" round position="bottom" style="z-index: 999;" show="{{ showRoom }}" bind:close="onCloseRoom">
  118. <view class="roomBox">
  119. <view class="titleBox" style="position: fixed;z-index: 9999;">
  120. <image bind:tap="onCloseRoom" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250221/huih91105813716.png" mode="" />
  121. <view class="text">
  122. 房屋详情
  123. </view>
  124. </view>
  125. <view class="titleBox">
  126. <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250221/huih91105813716.png" mode="" />
  127. <view class="text">
  128. 房屋详情
  129. </view>
  130. </view>
  131. <block wx:if="{{chickRoom.images.length}}">
  132. <view class="picturebox">
  133. <swiper autoplay="{{true}}" interval="{{3000}}" circular duration="{{500}}" class="img" bindchange="onRoomChange">
  134. <block wx:for="{{chickRoom.images}}" wx:key="index" wx:for-item="img">
  135. <swiper-item class="img">
  136. <image src="{{img}}" mode="aspectFill"></image>
  137. </swiper-item>
  138. </block>
  139. </swiper>
  140. <view class="numberbox">{{roomIndex}}/{{chickRoom.images.length}}</view>
  141. </view>
  142. </block>
  143. <view class="tagBox">
  144. <view class="title">{{chickRoom.name}}</view>
  145. <view class="tags">
  146. <block wx:for="{{chickRoom.tags}}" wx:key="index" wx:for-item="tag">
  147. <view class="tag">{{tag}}</view>
  148. </block>
  149. </view>
  150. </view>
  151. <view class="serverBox tagBox">
  152. <view class="title">服务设施</view>
  153. <view class="tags">
  154. <view class="tag2">免费停车位</view>
  155. <view class="tag2">行李寄存 </view>
  156. <view class="tag2">前台接待</view>
  157. <view class="tag2">床品1客1换</view>
  158. <view class="tag2">免费接站</view>
  159. <view class="tag2">团建会议</view>
  160. <view class="tag2">提供餐食</view>
  161. <view class="tag2"></view>
  162. <view class="tag2"></view>
  163. <view class="tag2">热水</view>
  164. <view class="tag2">独立卫浴</view>
  165. <view class="tag2">电吹风</view>
  166. <view class="tag2">洗浴用品</view>
  167. <view class="tag2">牙具</view>
  168. <view class="tag2">投影设备</view>
  169. <view class="tag2">卡拉OK</view>
  170. <view class="tag2">麻将机</view>
  171. <view class="tag2">桌角防护</view>
  172. <view class="tag2">壁炉</view>
  173. <view class="tag2">智能马桶</view>
  174. <view class="tag2">智能窗帘</view>
  175. </view>
  176. </view>
  177. <view class="ruleBox tagBox">
  178. <view class="title">预定须知</view>
  179. <view class="sub_title">以下规则由房东制定,请仔细阅读并遵守</view>
  180. <view class="list">
  181. <view class="key">入离</view>
  182. <view class="value">12:00后入住,12:00前退房</view>
  183. </view>
  184. <view class="list">
  185. <view class="key">发票</view>
  186. <view class="value">发票由民宿经营者(房东)提供</view>
  187. </view>
  188. <view class="list">
  189. <view class="key">退订</view>
  190. <view class="value" style="color: #7E9F86;">仅限30分钟内免费取消</view>
  191. </view>
  192. <view class="list">
  193. <view class="key">     </view>
  194. <view class="value">
  195. <text>订单确认30分钟后,取消订单将扣除当日全部房费(订单需\n等商家确认后生效,订单确认结果以公众号,短信为准,\n如订单不确认将全额退款至您的付款账号)</text>
  196. </view>
  197. </view>
  198. </view>
  199. <view class="payBox"></view>
  200. <view class="payBox" style="position: fixed;z-index: 99999;bottom: 0rpx;">
  201. <view class="phonBox">
  202. <view bindtap="phone">
  203. <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241212/e9muh5104028782.png" mode="" />
  204. <text>电话咨询</text>
  205. </view>
  206. </view>
  207. <view class="pay">
  208. <text>优惠0 实付¥{{chickRoom.price||0}}</text>
  209. </view>
  210. </view>
  211. </view>
  212. </van-popup>