2023-04-17 16:14:18 +08:00

91 lines
4.7 KiB
Plaintext

<import src="../common/common.wxml"/>
<view class="container" wx:if="{{ !isloding }}">
<to-top wx:if="{{ showTOTOP }}"></to-top>
<header-nav inner-text="Some text">搜索</header-nav>
<view class='header'>
<form bindsubmit="submit" report-submit='true'data-types="confirm">
<image class="search-btn" src="../../img/search-6.png"></image>
<input placeholder='试试输入地段、学校等关键词' placeholder-class='placeholder' confirm-type='search' value='{{kw}}' bindinput='input' bindconfirm='submit' focus="{{focus}}"></input>
<view class="clear" bindtap="clearKW" hidden="{{ kw.length==0 }}">
<view class="close"><image src="/img/close-f.png"></image></view>
</view>
</form>
<view wx:if="{{ search }}" bindtap='cancle' class='navigator'>取消</view>
<view class="navigator color-red" bindtap='submit' wx:if="{{ !search }}" >搜索</view>
</view>
<view class="border-top20" wx:if="{{ !search }}">
<view class='keywords history' wx:if="{{ log.length>0 }}" >
<view class='name'>
历史搜索
<view class="del" bindtap='clear_keywords'><image src="/img/del-6.png"></image></view>
</view>
<view class='box' >
<view wx:for="{{ log }}" wx:key="index" bindtap='select_kw' data-kw="{{ item }}" class='label'>{{ item }}</view>
</view>
</view>
<view class='keywords' wx:if="{{ hot.length>0}}" >
<view class='name'>
热门搜索
</view>
<view class='box'>
<view wx:for="{{ hot }}" wx:key="index" bindtap='select_kw' data-kw="{{ item }}" class='label'>{{ item }}</view>
</view>
</view>
</view>
<block wx:if="{{ search }}">
<view class="tab-box">
<view class="{{tab =='hongkongrental' ? 'tab active' :'tab'}}" bindtap="changeTab" data-tab="hongkongrental"><view class="text">个人房源</view></view>
<view class="{{tab =='studentapartment' ? 'tab active' :'tab'}}" bindtap="changeTab" data-tab="studentapartment"><view class="text">品牌公寓</view></view>
<!-- <view class="{{tab =='otherrental' ? 'tab active' :'tab'}}" bindtap="changeTab" data-tab="otherrental"><view class="text">世界各地房源</view></view> -->
<!-- <view class="{{tab =='otherrental' ? 'tab active' :'tab'}}" bindtap="changeTab" data-tab="otherrental"><view class="text">其他地区房源</view></view> -->
<view class="{{tab =='otherrental' ? 'tab active' :'tab'}}" bindtap="changeTab" data-tab="otherrental"><view class="text">求房源</view></view>
</view>
<template is="loading" wx:if="{{ loading }}"></template>
<view hidden="{{ tab !='hongkongrental'}}" class="hongkongrental">
<view class='list list2'>
<block wx:for="{{ hongkongrental.list }}" wx:key="index">
<template is="personalList" wx:if="{{ !item.isad }}" data="{{ item:item }}"/>
<ads isList="true" wx:if="{{ item.isad }}" data-tab="hongkongrental" data-index="{{ index }}" bindclickAD="clickAD" bindcloseAD="closeAD" item="{{ item }}"></ads>
</block>
</view>
<template is="loading" wx:if="{{ hongkongrental.loading }}"></template>
<template is="nocontent" wx:if="{{ !hongkongrental.loading && hongkongrental.list.length==0}}"></template>
</view>
<view class="studentapartment" hidden="{{ tab !='studentapartment'}}">
<block wx:for="{{ studentapartment.list }}" wx:key="index">
<brands-item item="{{ item }}"></brands-item>
</block>
<template is="loading" wx:if="{{ studentapartment.loading }}"></template>
<template is="nocontent" wx:if="{{ !studentapartment.loading && studentapartment.list.length==0}}"></template>
</view>
<view class="otherrental {{ !otherrental.loading && otherrental.list.length==0 ?'otherrental-empty':''}}" hidden="{{ tab !='otherrental'}}">
<block wx:for="{{ otherrental.list }}" wx:key="index" >
<navigator wx:if="{{ !item.isad }}" url="/pages/show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
<house-item item="{{ item }}" isSearchPage="true"></house-item>
</navigator>
<ads isList="true" wx:if="{{ item.isad }}" data-index="{{ index }}" bindclickAD="clickAD" data-tab="otherrental" bindcloseAD="closeAD" item="{{ item }}"></ads>
</block>
<template is="loading" wx:if="{{ otherrental.loading }}"></template>
<template is="nocontent" wx:if="{{ !otherrental.loading && otherrental.list.length==0}}"></template>
</view>
</block>
</view>
<template name="loading">
<view class="loading" >
<view></view>
<view></view>
<view></view>
<view></view>
<view></view>
</view>
</template>
<template name="nocontent">
<view class='nocontent'>
<image src="/img/nocontent.png" class='file'></image>
没有找到相关信息
</view>
</template>