444 lines
24 KiB
Plaintext
444 lines
24 KiB
Plaintext
<view class="container" wx:if="{{ !loding }}">
|
|
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
|
|
|
<view class="" style="position: fixed;top: 0;right: 0;">
|
|
<view id="apartment">
|
|
<view class="apartment1-name">{{ targetData['title'] }}</view>
|
|
<view class="apartment1-introduce">{{ targetData['propaganda'] }}</view>
|
|
</view>
|
|
<view class="general-name1 flexacenter" id="general">{{ targetData['title'] }}</view>
|
|
</view>
|
|
|
|
<header-nav inner-text="Some text" isIndexPage="index">{{ topTitle }}</header-nav>
|
|
<!-- <header-nav inner-text="Some text" isIndexPage="index" position="{{ 'absolute' }}" bgcolor="linear-gradient(0deg, rgba(246, 246, 246, 1) 2%, rgba(98, 177, 255, 1) 333%)" topImage="{{ true }}"></header-nav> -->
|
|
|
|
<!-- 新的 首页轮播图 -->
|
|
<block wx:if="{{ false }}">
|
|
<!-- 搜索框 -->
|
|
<navigator url="/pages/search/search" hover-class="hover">
|
|
<view class="search-box flexacenter">
|
|
<image mode="widthFix" class="search-img" src="/img/search-icon.png"></image>
|
|
<input class="search-input flex1" disabled confirm-type="search" bindconfirm="search" placeholder="{{ search.placeholder }}" />
|
|
</view>
|
|
</navigator>
|
|
<view class="headSwiper">
|
|
<swiper class='headSwiper-swiper' current="{{ swiperCurrent }}" autoplay="{{ true }}" circular interval="{{ 3000 }}" duration="{{ 1000 }}" bindchange="bindchangeSwiper" style="height: {{ HeadSwiperHeight + 5 }}px;">
|
|
<block wx:for="{{ banner }}" wx:key="index">
|
|
<swiper-item>
|
|
<image class="headSwiper-img" mode="widthFix" bindtap="handleSwiper" data-appid="{{ item.appid }}" data-url="{{ item.url }}" src="{{ item.imageurl }}" bindload="loadHeadSwiper"></image>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
|
|
<view class="indication-point flexacenter">
|
|
<block wx:for="{{ banner }}" wx:key="index">
|
|
<view class="indication-point-item {{ index == swiperCurrent ? 'pitch' : '' }}"></view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:else>
|
|
<head-swiper attachment="{{ banner }}" isInner="1"></head-swiper>
|
|
<!-- 搜索 -->
|
|
<navigator url="/pages/search/search" class="search-btn" hover-class="hover">
|
|
<image class='searchbtn' src="../../img/search-6.png" />搜索房源或输入房源ID
|
|
</navigator>
|
|
</block>
|
|
|
|
<!-- 分类 -->
|
|
<view class="types-tab">
|
|
<navigator wx:for="{{ tabs }}" wx:key="index" class="item" url="{{ item.url}}" hover-class="hover">
|
|
<view class="img-box">
|
|
<image mode="widthFix" src="{{ item.icon }}"></image>
|
|
</view>
|
|
<view>{{ item.name }}</view>
|
|
</navigator>
|
|
<block wx:if="{{ false }}">
|
|
<navigator class="item" url="/pages/personList/personList" hover-class="hover">
|
|
<view class="img-box">
|
|
<image src="/img/hkperson.jpg"></image>
|
|
</view>
|
|
<!-- <view>香港个人房源</view> -->
|
|
<view>个人房源</view>
|
|
</navigator>
|
|
<navigator class="item" url="/pages/irentList/irentList" hover-class="hover">
|
|
<view class="img-box">
|
|
<image src="/img/hkbrands.jpg"></image>
|
|
</view>
|
|
<view>品牌公寓</view>
|
|
</navigator>
|
|
<!-- <navigator class="item" url="/pages/UK/UK" hover-class="hover">
|
|
<view class="img-box">
|
|
<image src="/img/uk-apartment.png"></image>
|
|
</view>
|
|
<view>英国学生公寓</view>
|
|
</navigator> -->
|
|
<navigator class="item" url="/pages/restOfWorld/restOfWorld" hover-class="hover">
|
|
<view class="img-box">
|
|
<image src="/img/uk-apartment.png"></image>
|
|
<!-- <image src="/img/worldother.jpg"></image> -->
|
|
</view>
|
|
<!-- <view>世界各地房源</view> -->
|
|
<view>求房源</view>
|
|
</navigator>
|
|
<!-- <navigator class="item" url="/pages/chooseLocation/chooseLocation" hover-class="hover"> -->
|
|
<navigator class="item" url="/pages/edit/edit?cityName=香港&alias=Hongkong&uniqid=kbu4a9v7CjzvjJ__vUlA_jYDaTVRHWsf93n0bXfpkc4Q5XuCsk2ubBTz-qLRaUT_87YAS_ET7pf5tt0itORxLtPJJ7C76Q5_qXBATZgDTr_uyuBsaOnC0YA0Gm239lTdshoOpmqksJ85qQMXI_-jSNt7O4wZA5bropLHPIPdq6sX51OVn1WobolXqAcUbe-4mXPFIFpawZNCwmPlLf8e2ZZdkxkmfq_fCw7Pd8jj5rFiJh2_Im7unspYmE8nOO4iePI0wmW9F50tai27VeWj2s2mmGO6kiqhIb3B_Irub_WT3ys-0-1Yvf9oHop6dz0TAXgc6-ReM_tIZDE0NQ~~" hover-class="hover">
|
|
<view class="img-box addhousingresource-icon">
|
|
<view class="addhousingresource-yellow">
|
|
<view class="across"></view>
|
|
<view class="vertical"></view>
|
|
</view>
|
|
</view>
|
|
<view style="color: #ffc05f;">发布房源</view>
|
|
</navigator>
|
|
</block>
|
|
|
|
</view>
|
|
|
|
<view></view>
|
|
<!-- 区域选择 新 -->
|
|
<view class="area-selection" wx:if="{{ false }}">
|
|
<view class="head flexacenter shadow">
|
|
<!-- <view class="head-item flexcenter flex1 {{ index == areaIndex ? 'pitch' : '' }}" wx:for="{{ combination }}" wx:key="index" bindtap="setValue" data-key="areaIndex" data-value="{{ index }}"> -->
|
|
<view class="head-item flexflex flex1 {{ index == areaIndex ? 'pitch' : '' }}" wx:for="{{ combination }}" wx:key="index" bindtap="setValue" data-key="areaIndex" data-value="{{ index }}">
|
|
<view class="head-item-pitch head-item-pitch-left"></view>
|
|
<view class="head-item-pitch head-item-pitch-right"></view>
|
|
<view class="head-name">{{ item.name }}</view>
|
|
<view class="head-underline" wx:if="{{ index == areaIndex }}"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- <view class="area-content shadow"> -->
|
|
<view class="area-content">
|
|
<view class="area-data flexcenter">
|
|
<image class="area-icon" mode="widthFix" src="/img/area-icon.png"></image>
|
|
当前共有 <view class="area-amount">{{ combination[areaIndex] && combination[areaIndex].num }}</view> 个房源
|
|
</view>
|
|
|
|
<view wx:if="{{ areaIndex == 0 }}" class="area-list area-school flexflex">
|
|
<view class="area-item flexcenter" bindtap="skipPersonList" wx:for="{{ combination[areaIndex].where }}" wx:key="index" data-id="{{ item.id }}" data-key="school">{{ item.name }}</view>
|
|
</view>
|
|
|
|
<view wx:if="{{ areaIndex == 1 }}" class="area-list area-district flexflex">
|
|
<view class="area-item flexcenter" bindtap="openAreaPop" data-index="{{ index }}" wx:for="{{ combination[areaIndex].where }}" wx:key="index" data-id="{{ item.id }}">{{ item.name }}</view>
|
|
</view>
|
|
|
|
<block wx:if="{{ areaIndex == 2 }}">
|
|
<view class="area-list area-type flexflex" wx:for="{{ combination[areaIndex].where }}" wx:for-item="ite">
|
|
<view class="area-type-name">{{ ite.name }}</view>
|
|
<view class="area-type-block flex1 flexflex">
|
|
<view class="area-item flexcenter" bindtap="skipPersonList" data-id="{{ it.id }}" data-key="types" wx:for="{{ ite.data }}" wx:for-item="it" wx:key="index">{{ it.name }}</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
<view></view>
|
|
|
|
<!-- 公寓列表 新 -->
|
|
<view class="apartment-block" wx:if="{{ false }}">
|
|
<scroll-view scroll-x="{{ true }}" class="scroll">
|
|
<view class="apartment-list flexflex">
|
|
<view class="apartment-item flexflex" wx:for="{{ apartment }}" wx:key="index" bindtap="publicJumps" data-url="/pages/irentDetail/irentDetail?uniqid={{ item.id }}">
|
|
<view class="apartment-name one-line-display">{{ item.title }}</view>
|
|
<view class="apartment-introduce one-line-display">{{ item.propaganda }}</view>
|
|
|
|
<view class="apartment-image-list flexacenter">
|
|
<block wx:for="{{ item.images }}" wx:key="index">
|
|
<image class="apartment-image-item" wx:if="{{ index < 2}}" src="{{ item }}"></image>
|
|
</block>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
|
|
|
|
<!-- 数据列表 tab 新 -->
|
|
<view class="tab-list flexacenter" wx:if="{{ false }}">
|
|
<view class="tab-item {{ item.select ? 'pitch' : '' }}" wx:for="{{ recommendedTab }}" wx:key="index" bindtap="cutTab" data-type="{{ item.type }}" data-index="{{ index }}">{{ item.name }}</view>
|
|
</view>
|
|
<!-- 列表 -->
|
|
<view class="pinterest-list flexflex" wx:if="{{ false }}">
|
|
<view class="pinterest-list-left flex1">
|
|
<block wx:for="{{ listDataLeft }}" wx:key="index">
|
|
<block wx:if="{{item.type == 'adv'}}">
|
|
<template is="adv" data="{{ item }}"></template>
|
|
</block>
|
|
<block wx:elif="{{item.type == 'apartment'}}">
|
|
<template is="apartment" data="{{ item }}"></template>
|
|
</block>
|
|
<block wx:else>
|
|
<template is="general" data="{{ item }}"></template>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
|
|
<view class="pinterest-list-left flex1" style="display:flex;flex-direction:column;align-items: flex-end;">
|
|
<block wx:for="{{ listDataRight }}" wx:key="index">
|
|
<block wx:if="{{item.type == 'adv'}}">
|
|
<template is="adv" data="{{ item }}"></template>
|
|
</block>
|
|
<block wx:elif="{{item.type == 'apartment'}}">
|
|
<template is="apartment" data="{{ item }}"></template>
|
|
</block>
|
|
<block wx:else>
|
|
<template is="general" data="{{ item }}"></template>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<block wx:if="{{ true }}">
|
|
<!-- 个人房源 -->
|
|
<view class="house-block">
|
|
<navigator url="/pages/personList/personList" hover-class="hover" class="title">
|
|
<view>个人房源</view>
|
|
<view class="more">
|
|
more
|
|
<image src="/img/more-yellow.png"></image>
|
|
</view>
|
|
</navigator>
|
|
<scroll-view scroll-x="true" class="scroll">
|
|
<view class="inner-scroll">
|
|
<block wx:for="{{ HKhousing }}" wx:key="index">
|
|
<block wx:if="{{ index<HKhousing.length-1 }}">
|
|
<!-- 非广告 -->
|
|
<navigator class="item" hover-class="hover" url="/pages/show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}&cityid=1" wx:if="{{ !advListHKhousing[index+1] }}">
|
|
<view class="card">
|
|
<card-person isads="{{false}}" item="{{ item }}"></card-person>
|
|
</view>
|
|
</navigator>
|
|
<!-- 广告 -->
|
|
<navigator class="item" hover-class="hover" url="/{{ advListHKhousing[index+1].path }}" wx:if="{{ advListHKhousing[index+1] }}">
|
|
<view class="card">
|
|
<card-person bindcloseAd="closeAd" bindclickAD="clickAD" isads="true" item="{{ advListHKhousing[index+1] }}"></card-person>
|
|
</view>
|
|
</navigator>
|
|
</block>
|
|
|
|
</block>
|
|
<navigator class="item" hover-class="hover" url="/pages/personList/personList" wx:if="{{ HKhousing.length>0}}">
|
|
<view class="card">
|
|
<card-person item="{{ HKhousing[HKhousing.length-1] }}"></card-person>
|
|
</view>
|
|
<view class="last-child">
|
|
<view class="btn">查看更多
|
|
<image src="/img/more-white.png"></image>
|
|
</view>
|
|
</view>
|
|
</navigator>
|
|
<view class="right"></view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
|
|
<!-- 品牌公寓 -->
|
|
<view class="house-block house-brands">
|
|
<navigator url="/pages/irentList/irentList" hover-class="hover" class="title">
|
|
<view>品牌公寓</view>
|
|
<view class="more">
|
|
more
|
|
<image src="/img/more-blue.png"></image>
|
|
</view>
|
|
</navigator>
|
|
<scroll-view scroll-x="true" class="scroll">
|
|
<view class="inner-scroll">
|
|
<block wx:for="{{ HKapartment }}" wx:key="index">
|
|
<navigator class="item" hover-class="hover" url="/pages/irentDetail/irentDetail?uniqid={{item.uniqid}}" wx:if="{{ index<HKapartment.length-1 }}">
|
|
<view class="card">
|
|
<card-brands bindplay="play" item="{{ item }}" index="{{ index }}"></card-brands>
|
|
</view>
|
|
</navigator>
|
|
</block>
|
|
<navigator class="item" hover-class="hover" url="/pages/irentList/irentList" wx:if="{{ HKapartment.length>0}}">
|
|
<view class="card">
|
|
<card-brands bindplay="play" item="{{ HKapartment[HKapartment.length-1] }}"></card-brands>
|
|
</view>
|
|
<view class="last-child">
|
|
<view class="btn">查看更多
|
|
<image src="/img/more-white.png"></image>
|
|
</view>
|
|
</view>
|
|
</navigator>
|
|
<view class="right"></view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
|
|
<!-- 世界各地房源 -->
|
|
<view wx:if="{{ otherHousing.length>0 }}" class="house-block world-block">
|
|
<navigator url="/pages/restOfWorld/restOfWorld" hover-class="hover" class="title">
|
|
<!-- <view>世界各地房源</view> -->
|
|
<view>求房源</view>
|
|
<view class="more">
|
|
more
|
|
<image src="/img/more-green.png"></image>
|
|
</view>
|
|
</navigator>
|
|
<scroll-view scroll-x="true" class="scroll">
|
|
<view class="inner-scroll">
|
|
<!-- <block wx:for="{{ otherHousing }}" wx:key="index"> -->
|
|
<block wx:for="{{ findHouseSource }}" wx:key="index">
|
|
<block wx:if="{{ index<otherHousing.length-1 }}">
|
|
<!-- 非广告 -->
|
|
<navigator class="item" hover-class="hover" url="/pages/show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}" wx:if="{{ !advListotherHousing[index+1] }}">
|
|
<view class="card">
|
|
<card-person world="true" bindclickAD="clickAD" bindcloseAd="closeAd" isads="{{ false }}" item="{{ item }}"></card-person>
|
|
</view>
|
|
</navigator>
|
|
<!-- 广告 -->
|
|
<navigator class="item" hover-class="hover" url="/{{ advListotherHousing[index+1].path}}" wx:if="{{ advListotherHousing[index+1] }}">
|
|
<view class="card">
|
|
<card-person world="true" bindclickAD="clickAD" bindcloseAd="closeAd" isads="{{ true }}" item="{{ advListotherHousing[index+1] }}"></card-person>
|
|
</view>
|
|
</navigator>
|
|
</block>
|
|
|
|
</block>
|
|
<navigator class="item" hover-class="hover" url="/pages/restOfWorld/restOfWorld" wx:if="{{ otherHousing.length>0}}">
|
|
<view class="card">
|
|
<card-person world="true" item="{{ otherHousing[otherHousing.length-1] }}"></card-person>
|
|
</view>
|
|
<view class="last-child">
|
|
<view class="btn">查看更多
|
|
<image src="/img/more-white.png"></image>
|
|
</view>
|
|
</view>
|
|
</navigator>
|
|
<view class="right"></view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
|
|
<!-- 服务号推广 -->
|
|
<image mode='widthFix' show-menu-by-longpress class="popularize" src="{{ service }}" bindtap="copy"></image>
|
|
</block>
|
|
|
|
<fix-footer unreadMessages="{{ unreadMessages }}" bottomLift="{{ bottomLift }}"></fix-footer>
|
|
<view class='video-box' wx:if="{{ video }}">
|
|
<!-- <image src="../../img/close.png" class='close' bindtap='close_video'></image> -->
|
|
<video src="{{ video }}" custom-cache="{{false}}" autoplay='true'>
|
|
<cover-view bindtap="closePage" style="top:{{ screen_data.statusBarHeight -5 }}px;height:{{ screen_data.titleBarHeight +10 }}px;width:{{ screen_data.titleBarHeight +10 }}px" class="cover">
|
|
<cover-image class="image" src="/img/close-f.png"></cover-image>
|
|
|
|
</cover-view>
|
|
</video>
|
|
</view>
|
|
|
|
<!-- 区域找房的 弹窗 -->
|
|
<page-container show="{{ areaPopState }}" z-index="{{ 1001 }}">
|
|
<view class="area-pop-header" style="height: {{ screen_data.totalTopHeight }}px;">
|
|
<view style="height:{{screen_data.statusBarHeight}}px"></view>
|
|
<view class="flexacenter" style="height:{{screen_data.titleBarHeight}}px">
|
|
<view class="area-pop-header-left flexacenter flex1" bindtap="openAreaPop">
|
|
<image mode="widthFix" class="" src="/img/back.png"></image>
|
|
</view>
|
|
<view class="area-pop-header-title">区域找房</view>
|
|
<view class=" flex1"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="area-pop-content flexflex" style="top: {{ screen_data.totalTopHeight }}px;">
|
|
<view class="flexflex flex1">
|
|
<view class="area-pop-content-left">
|
|
<view class="area-pop-content-left-item flexcenter {{ index == areaPopId ? 'pitch' : '' }}" wx:for="{{ getLocationList }}" wx:key="index" bindtap="areaPopItemUnlimited" data-areaPopId="{{ index }}">{{ item.name }}</view>
|
|
</view>
|
|
<view class="area-pop-content-right flex1">
|
|
<view class="area-pop-content-right-item flexacenter" bindtap="areaPopItemUnlimited">
|
|
<view class="area-pop-content-right-name">不限</view>
|
|
<view class="area-pop-content-right-operate-unlimited-pitch flexcenter" wx:if="{{ areaPopList.length == 0 }}">
|
|
<image class="" mode="widthFix" src="/img/black-hook.svg"></image>
|
|
</view>
|
|
<view class="area-pop-content-right-operate-unlimited" wx:else></view>
|
|
</view>
|
|
<view class="area-pop-content-right-item flexacenter" wx:for="{{ getLocationList[areaPopId].data }}" wx:key="index" bindtap="areaPopItem" data-key="{{ item.key }}" data-index="{{ index }}">
|
|
<view class="area-pop-content-right-name">{{ item.name }}</view>
|
|
<image class="area-pop-content-right-operate operate-pitch" wx:if="{{ item.pitch }}" src="/img/green-block-pitch.svg"></image>
|
|
<view class="area-pop-content-right-operate" wx:else></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="area-pop-bottom flexacenter">
|
|
<view class="area-pop-reset-btn flexcenter" bindtap="areaPopItemUnlimited">
|
|
<image class="" src="/img/reset.svg"></image>
|
|
重置
|
|
</view>
|
|
<view class="area-pop-confirm-btn flex1 flexcenter" bindtap="handleAreaPopConfirm">确定</view>
|
|
</view>
|
|
</view>
|
|
</page-container>
|
|
|
|
<announcement-popup interface="home" init="{{ initState }}"></announcement-popup>
|
|
</view>
|
|
|
|
<!-- 广告 -->
|
|
<template name="adv">
|
|
</template>
|
|
|
|
<!-- 公寓 -->
|
|
<template name="apartment">
|
|
<navigator url="/pages/irentDetail/irentDetail?uniqid={{ item.id }}" hover-class="none">
|
|
<!-- <navigator url="/pages/irentDetail/irentDetail?uniqid=jKPD401ujqHf" hover-class="none"> -->
|
|
<view class="pinterest-list-item apartment">
|
|
<view class="apartment-top flexcenter">
|
|
<image class="apartment-icon" mode="widthFix" src="/img/apartment-icon.png"></image>
|
|
<image class="apartment-text" mode="widthFix" src="/img/apartment-text.png"></image>
|
|
</view>
|
|
<image class="apartment-img" mode="widthFix" src="{{ item.imageLocal || item.image }}"></image>
|
|
<view class="apartment-name">{{ item.title }}</view>
|
|
<view class="apartment-introduce">{{ item.propaganda }}</view>
|
|
<view class="apartment-price">
|
|
<block wx:for="{{ item.specifications }}" wx:for-item="it" wx:key="index">
|
|
<view wx:if="{{ index < 2 }}" class="apartment-price-item flexacenter">
|
|
<view class="apartment-price-name one-line-display">{{ it.title }}</view>
|
|
<view class="apartment-price-cost flex1 flexacenter">
|
|
<view class="apartment-price-unit">HK$</view>
|
|
<view class="apartment-price-number">{{ it.value }}</view>
|
|
/月
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view wx:if="{{ item.specifications.length > 2 }}" class="apartment-price-more flexcenter">更多</view>
|
|
<!-- <view class="color-scheme"></view> -->
|
|
|
|
</view>
|
|
</navigator>
|
|
|
|
</template>
|
|
|
|
<!-- 普通 -->
|
|
<template name="general">
|
|
<navigator url="/pages/show/show?uniqid={{ item.uniqid }}" hover-class="none">
|
|
<view class="pinterest-list-item general">
|
|
<view class="top-right-corner flexcenter" wx:if="{{ item.gptype }}">{{ item.gptype }}</view>
|
|
<image class="general-img" mode="widthFix" src="{{ item.imageLocal || item.image }}"></image>
|
|
<view class="general-name flexacenter" wx:if="{{ item.title }}">
|
|
<view class="general-tag flexcenter" wx:if="{{ item.leaseterm }}">{{ item.leaseterm }}</view>
|
|
{{ item.title }}
|
|
</view>
|
|
|
|
<view class="label-list flexacenter">
|
|
<view class="label-item" wx:if="{{ item.housingtype }}">{{ item.housingtype }}</view>
|
|
<view class="label-item" wx:if="{{ item.gender }}">{{ item.gender }}</view>
|
|
<view class="label-item" wx:if="{{ item.leaseterm }}">{{ item.leaseterm }}</view>
|
|
</view>
|
|
|
|
<view class="general-cost flex1 flexacenter">
|
|
<view class="general-unit">HK$</view>
|
|
<view class="general-number">{{ item.rent }}</view>
|
|
/月
|
|
</view>
|
|
|
|
<!-- 右下角的颜色标识 #50e3c2 黄色 #fddf6d 绿色 不要删除 新版上线 使用 -->
|
|
<!-- <view class="color-scheme" style="--scheme-bg:{{ 'pink' }}"></view> -->
|
|
</view>
|
|
</navigator>
|
|
</template> |