You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.9 KiB
33 lines
1.9 KiB
<!--pages/list/hotel/index.wxml-->
|
|
<search bind:onload="search"></search>
|
|
<view style="position:relative">
|
|
<image lazy-load src="https://static.ticket.sz-trip.com/xcxImages/listtop/hotel_top.png" mode="widthFix" class="topimg"></image>
|
|
<image lazy-load src="https://static.ticket.sz-trip.com/xcxImages/listtop/hotel1.png" class="hotelimg" mode="widthFix"></image>
|
|
</view>
|
|
<view class="hotel-types">
|
|
<view class="hotel-type{{type==8?' active':''}}" bindtap="changeType" data-type="8">特色民宿</view>
|
|
<view class="hotel-type{{type==5?' active':''}}" bindtap="changeType" data-type="5">精品酒店</view>
|
|
<view class="hotel-type{{type==6?' active':''}}" bindtap="changeType" data-type="6">舒适酒店</view>
|
|
<view class="hotel-type{{type==7?' active':''}}" bindtap="changeType" data-type="7">经济连锁</view>
|
|
|
|
</view>
|
|
<view class="sort-btn" style="{{isDistanceSort?'':'color:#333'}}">
|
|
<view bindtap="changeSort">距离最近</view>
|
|
</view>
|
|
<view bindtap="gotoDetail" data-item="{{item}}" url="/pages/info/hotelProductInfo/index?id={{item.id}}" class="hotel-item" wx:for="{{list}}">
|
|
<image lazy-load mode="aspectFill" class="headimg" src="{{item.headimg}}"></image>
|
|
<view class="top-bg" wx:if="{{index<3}}">
|
|
<!-- <image lazy-load src="https://static.ticket.sz-trip.com/xcxImages/listtop/hotel_top_bg.png" mode="widthFix"></image> -->
|
|
<text>TOP{{index+1}}</text>
|
|
</view>
|
|
<view class="infos">
|
|
<view class="textOver">{{item.title}}</view>
|
|
<view class="address" wx:if="{{item.distance}}">{{item.address}} 距您直线距离<text>{{item.distance}}</text></view>
|
|
<view class="address" wx:else>{{item.address}}</view>
|
|
<view class="tags textOver">
|
|
<view></view>
|
|
<!-- <view class="tag" wx:for="{{item.display_tags}}">{{item}}</view> -->
|
|
<view class="price"><text>¥</text><text>{{item.price?item.price/100:0}}</text><text>起</text></view>
|
|
</view>
|
|
</view>
|
|
</view>
|