87 lines
4.9 KiB
Plaintext
87 lines
4.9 KiB
Plaintext
<import src="../common/common.wxml" />
|
|
<view class="container" wx:if="{{ !isloding }}">
|
|
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
|
<header-nav bgcolor="rgba(246, 246, 246, 1)" notShowIndex="{{ true }}" inner-text="Some text">搜索</header-nav>
|
|
|
|
<!-- <template is="header-search" data="{{ focus,kw,isNeedMap: true }}"></template> -->
|
|
<view class='header-search flexacenter'>
|
|
<view class="header-search-box flexacenter" bindsubmit="submit" report-submit='true' data-types="confirm">
|
|
<image class="search-icon" src="../../img/search-icon.svg"></image>
|
|
<input style="width: 490rpx;" disabled="{{ disabled }}" placeholder='搜索房源或输入房源ID' placeholder-class='placeholder' confirm-type='search' value='{{ kw }}' bindinput='input' bindconfirm='submit' focus="{{ focus }}"></input>
|
|
<view class="clear" bindtap="clearKW" wx:if="{{ kw.length != 0 }}">
|
|
<image class="clear-icon" src="/img/gray-cross.png"></image>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{ isMapFindState }}" class="map-btn flexcenter" bindtap="publicJumps" data-url="/mapFind/pages/placeMap/index">
|
|
<image class="map-btn-icon" mode="widthFix" src="https://app.gter.net/image/miniApp/HKRenting/map-icon.png"></image>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="search-initial" wx:if="{{ !search }}">
|
|
<view class='keywords history' wx:if="{{ log.length>0 }}">
|
|
<view class='name'>
|
|
历史搜索
|
|
<view class="del" bindtap='clear_keywords' wx:if="{{ false }}">
|
|
<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" wx:if="{{ !isAskingSearch }}">
|
|
<view class="{{ tab =='personal' ? 'tab active' :'tab' }}" bindtap="changeTab" data-tab="personal">
|
|
<view class="text">个人房源 {{ personal['count'] || 0 }}</view>
|
|
</view>
|
|
<view class="{{tab =='intermediary' ? 'tab active' :'tab'}}" bindtap="changeTab" data-tab="intermediary">
|
|
<view class="text">中介房源 {{ intermediary['count'] || 0 }}</view>
|
|
</view>
|
|
<view class="{{tab =='studentapartment' ? 'tab active' :'tab'}}" bindtap="changeTab" data-tab="studentapartment">
|
|
<view class="text">品牌公寓 {{ studentapartment['count'] || 0 }}</view>
|
|
</view>
|
|
</view>
|
|
<view id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}" style="top: {{ screen_data.totalTopHeight - 1 }}px;">
|
|
<list-operations tabTitle="搜索" property="{{ property }}" school="{{ school }}" types="{{ types }}" location="{{ location }}" operationstype="{{ operationstype }}" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
|
</view>
|
|
<block wx:if="{{ tab == 'personal' && isAskingSearch }}">
|
|
<common-list wx:for="{{ asking.list }}" wx:key="index" item="{{ item }}"></common-list>
|
|
<template wx:if="{{ asking.count == 0 }}" is="empty-icon"></template>
|
|
</block>
|
|
<block wx:if="{{ tab == 'personal' && !isAskingSearch }}">
|
|
<common-list wx:for="{{ personal.list }}" wx:key="index" item="{{ item }}"></common-list>
|
|
<template wx:if="{{ personal.count == 0 }}" is="empty-icon"></template>
|
|
</block>
|
|
<block wx:if="{{ tab == 'intermediary' }}">
|
|
<block wx:for="{{ intermediary.list }}" wx:key="index">
|
|
<common-list item="{{ item }}"></common-list>
|
|
</block>
|
|
<template wx:if="{{ intermediary.count == 0 }}" is="empty-icon"></template>
|
|
</block>
|
|
<block wx:if="{{ tab == 'studentapartment' }}">
|
|
<view class="house-list flexflex">
|
|
<template wx:for="{{ studentapartment.list }}" wx:key="index" data="{{ item }}" is="apartment-item"></template>
|
|
</view>
|
|
<template wx:if="{{ studentapartment.count == 0 }}" is="empty-icon"></template>
|
|
</block>
|
|
|
|
<template is="loading" wx:if="{{ resultListLoad }}"></template>
|
|
|
|
</block>
|
|
</view>
|
|
<template name="loading">
|
|
<view class="loading">
|
|
<view></view>
|
|
<view></view>
|
|
<view></view>
|
|
<view></view>
|
|
<view></view>
|
|
</view>
|
|
</template> |