12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <nav type="back" title="{{objMap[active].title}}" frontColor="#ffffff" background-color="{{activeColor}}" />
- <view class="flexd">
- <view class="nav-background" style="background-color: {{activeColor}};"></view>
- <view class="v-search">
- <van-search value="{{ value }}"
- background="transparent" placeholder="搜索你想要的生活" shape="round" use-action-slot bind:change="onChange">
- </van-search>
- </view>
- </view>
- <view style="margin: 128rpx 0 0 0;">
- <van-tabs active="{{active}}" id="tabs" bind:change="tabChange" color="{{activeColor}}"
- nav-class="tab_title" animated swipeable>
- <van-tab title="村落" />
- <van-tab title="美食" />
- <van-tab title="民宿" />
- <van-tab title="商超" />
- </van-tabs>
- <scroll-view style="height:calc(100vh - {{stickytop+ 98}}px);" scroll-y="{{true}}" bindscrolltolower="loadMore">
- <view wx:if="{{active==0}}" class="box">
- <block wx:for="{{listDate}}" wx:key="index">
- <view class="hotel" data-item="{{item}}" bindtap="goUrl" data-id="{{item.objectId}}">
- <image class="hotel-image" src="{{item.logo || item.bgImg}}" />
- <view class="hotel-name">{{item.name}}</view>
- <view class="price">
- <view class="hotel-price" style="color: {{activeColor}};">
- <text class="hotel-price-num">{{item.peopleAll}}</text>
- 人
- </view>
- </view>
- <view class="address">
- <view class="hotel-address">{{item.address}}</view>
- </view>
- </view>
- </block>
- </view>
- <view wx:else class="box">
- <block wx:if="{{listDate.length}}">
- <block wx:for="{{listDate}}" wx:key="index">
- <view class="hotel" data-item="{{item}}" bindtap="goUrl" data-id="{{item.objectId}}">
- <image class="hotel-image" src="{{item.cover}}" />
- <view class="hotel-name">{{item.storeName}}</view>
- <view class="price" wx:if="{{active<3}}">
- <view class="hotel-price" style="color: {{activeColor}};">
- ¥
- <text class="hotel-price-num">{{item.perCapita}}</text>
- <text wx:if="{{active==2}}">/晚</text>
- </view>
- </view>
- <view class="address">
- <view class="hotel-address">{{item.address}}</view>
- </view>
- </view>
- </block>
- </block>
- </view>
- <van-empty wx:if="{{!listDate.length}}" description="暂无列表" />
- </scroll-view>
- </view>
|