131 lines
4.8 KiB
Plaintext
131 lines
4.8 KiB
Plaintext
<view class="hotel_home">
|
|
<view class="content">
|
|
<view class="scroll_banner">
|
|
<block wx:if="{{carousels_arr}}">
|
|
<swiper interval="{{3000}}" style="height: 100%;" indicator-dots="{{true}}" autoplay="{{true}}" circular="{{true}}"
|
|
indicator-active-color="#f15353">
|
|
<block wx:key="{{index}}" wx:for="{{carousels_arr}}">
|
|
<swiper-item>
|
|
<image catchtap="imgHref" data-link="{{item.small_link}}" src="{{item.thumb}}" mode='widthFix' />
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
</block>
|
|
</view>
|
|
<view class="position">
|
|
<view class="search">
|
|
<view class="ul box">
|
|
<view class="li city">
|
|
<view class="span city_cur">{{city }}</view>
|
|
<view class="current" catchtap="routerGo" data-mum="{{1}}">
|
|
<view class="iconTop">
|
|
<icon class="iconfont icon-location"></icon>
|
|
</view>
|
|
<view class="span">当前位置</view>
|
|
</view>
|
|
</view>
|
|
<view class="li select_date">
|
|
<view class="span" catchtap="show2btn">
|
|
<view class="font">{{start_time ?start_time:"请选择入住日期"}}</view>
|
|
</view>
|
|
<view class="span" catchtap="show3btn">
|
|
<view class="font">{{end_time ? end_time:"请选择离开日期"}}</view>
|
|
</view>
|
|
<view class="right" wx:if="{{night_day}}">共{{ night_day }}晚
|
|
<van-icon size="36rpx" color="#c9c9c9" name="arrow" />
|
|
</view>
|
|
</view>
|
|
<view class="li nearby" catchtap="gotoSearch">
|
|
<view class="span">我的附近</view>
|
|
<input type="text" placeholder="{{'搜索关键字/位置/品牌/' + PageNameList.hotel_find_name}}" disabled />
|
|
<van-icon size="36rpx" color="#c9c9c9" name="arrow" />
|
|
</view>
|
|
<view class="li price" catchtap="show1btn">
|
|
<input type="text" placeholder="价格/星级" disabled />
|
|
<van-icon size="36rpx" color="#c9c9c9" name="arrow" />
|
|
</view>
|
|
</view>
|
|
<view class="button" catchtap="gotoSearch2">
|
|
{{ PageNameList.hotel_find }}
|
|
</view>
|
|
</view>
|
|
<view class="menu_icon">
|
|
<view class="ul icon_box">
|
|
<view class="li" wx:key="{{index}}" wx:for="{{catagory_arr}}" data-item="{{item}}" catchtap="goCatagory">
|
|
<view class="img">
|
|
<image src="{{item.thumb}}" mode='widthFix' />
|
|
</view>
|
|
<view class="span">{{ item.name }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="fixed_banner" wx:if="{{bannerObj.img}}" data-link="{{bannerObj.small_link}}" catchtap="imgHref">
|
|
<image src="{{bannerObj.img}}" mode='widthFix' />
|
|
</view>
|
|
<view class="like_box">
|
|
<view class="title">
|
|
<view class="line_left"></view>
|
|
<view class="h1">猜你喜欢</view>
|
|
<view class="line_right"></view>
|
|
</view>
|
|
<view class="goods_box">
|
|
<hotelList hoteldatas="{{hotel_arr}}"></hotelList>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<van-popup bind:click-overlay="show1closebtn" show="{{show1}}" position="bottom" custom-style="" overlay="{{true}}">
|
|
<view class="price_box">
|
|
<view class="price">
|
|
<view class="p title">
|
|
价格<text class="span">当前:{{language['money']}}{{ value }}</text>
|
|
</view>
|
|
<view class="p number">
|
|
<view class="span">{{language['money']}}0</view>
|
|
<view class="span">{{language['money']}}1000</view>
|
|
</view>
|
|
<view class="slider">
|
|
<van-slider value="{{valueData}}" step="{{5}}" bar-height="10rpx" min="{{0}}" max="{{100}}" bind:Change="slideChange"
|
|
bind:drag="slidedrag" />
|
|
</view>
|
|
</view>
|
|
<view class="grade">
|
|
<view class="p title">等级</view>
|
|
<view class="grade_box">
|
|
<view class="button {{current_index == index?'cur':''}}" wx:key="{{index}}" wx:for="{{star_arr}}" catchtap="starChoose" data-index="{{index}}"
|
|
data-item="{{item}}">
|
|
{{ item.name }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom">
|
|
<view class="button" data-val="reset" catchtap="starSubmit">重置</view>
|
|
<view class="button" data-val="complete" catchtap="starSubmit">完成</view>
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
<view class="y5" catchtap="showToolbar">
|
|
<view class="y6" wx:if="{{toolbar}}">
|
|
<view class="a y8" catchtap="gohome">
|
|
首页
|
|
</view>
|
|
<view class="yb a" catchtap="goorderlist">
|
|
订单
|
|
</view>
|
|
<view class="yc a" catchtap="gomember">
|
|
我的
|
|
</view>
|
|
<icon class="yd"></icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<van-popup bind:click-overlay="show2closebtn" show="{{show2}}" position="bottom" custom-style="width:100%;height: 80%;"
|
|
overlay="{{true}}">
|
|
<datePicker type="入住" bindtimeChange="acceptTime" top="{{false}}" bindclose="closeHander"></datePicker>
|
|
</van-popup>
|
|
<van-popup bind:click-overlay="show3closebtn" show="{{show3}}" position="bottom" custom-style="width:100%;height: 80%;"
|
|
overlay="{{true}}">
|
|
<datePicker type="离店" bindtimeChange="acceptTime" top="{{false}}" bindclose="closeHander"></datePicker>
|
|
</van-popup>
|
|
<shopfoot></shopfoot>
|