index.wxml 1.3 KB

1234567891011121314151617181920212223242526
  1. <nav type="back" background-color="{{activeColor}}" title="民宿详情" frontColor="#ffffff" />
  2. <view class="page-section swiper-images-wrapper">
  3. <swiper indicator-dots="{{indicatorDots}}" class="swiper-images" autoplay="{{SwiperInfo.autoplay}}" interval="{{SwiperInfo.interval}}" duration="{{SwiperInfo.duration}}">
  4. <block wx:for="{{hotel.image}}" wx:key="index">
  5. <swiper-item>
  6. <image class="swiper-item swiper-image " src="{{item}}"></image>
  7. </swiper-item>
  8. </block>
  9. </swiper>
  10. </view>
  11. <view class="page-section page-section-spacing shop-detail">
  12. <shop-detail-card shop="{{hotel}}" activeColor="{{activeColor}}"></shop-detail-card>
  13. </view>
  14. <view class="page-section">
  15. <scroll-view scroll-y="true" style="max-height:calc(100vh - 460rpx);" bindscrolltolower="loadMore">
  16. <goods-list list="{{rooms}}" activeColor="{{activeColor}}" mode="horizontal" bind:toDetail="details" bind:btnTap="details"></goods-list>
  17. </scroll-view>
  18. </view>
  19. <view class="page-section ">
  20. <view id="detail" wx:if="{{hotel.content}}">
  21. <rich-text nodes="{{hotel.content}}" style="width: 100%;height: 100%; margin-right: 0 auto;"></rich-text>
  22. </view>
  23. </view>
  24. <view class="page-section ">
  25. <comment-list comments="{{orders}}" title="房客评价" showMore="{{commentCount > 10? true:false}}"></comment-list>
  26. </view>