提交
This commit is contained in:
parent
f7ed029d79
commit
1efedf49f7
BIN
img/camera.png
Normal file
BIN
img/camera.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
21
img/frontPlay.svg
Normal file
21
img/frontPlay.svg
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="46px" height="46px" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<filter x="-50.00%" y="-50.00%" width="200.00%" height="200.00%" filterUnits="objectBoundingBox" id="filter493">
|
||||
<feColorMatrix type="matrix" values="1 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 1 0 " in="SourceGraphic" />
|
||||
</filter>
|
||||
<filter x="206px" y="1069px" width="46px" height="46px" filterUnits="userSpaceOnUse" id="filter494">
|
||||
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetInner" />
|
||||
<feGaussianBlur stdDeviation="5" in="shadowOffsetInner" result="shadowGaussian" />
|
||||
<feComposite in2="shadowGaussian" operator="atop" in="SourceAlpha" result="shadowComposite" />
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.662745098039216 0 " in="shadowComposite" />
|
||||
</filter>
|
||||
<g id="widget495">
|
||||
<image preserveAspectRatio="none" style="overflow:visible" width="26" height="26" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAEVElEQVR4Ae2bvY7TQBDHly8JJIqUdFxJR3gCTEdHrqMjPMFBR3fhDe4NYp4guSe40NFd7g1S0iWRKJD4OH6j+KSNbzdex7N2LLzSyvYyOzP//87Mrp3DmK51DHQMdAz8xwzcqQP7fWNeYieh9+lH15srt9sNZ+aMLOhynf025ivXdrYHxrwD+OSeMddVuugQXa1goWdMD4dPAbysAtozdym6xcZBkhEReD6ClkTEycGQgDN9wF96Vi3vvNqz2BTbjRIhK1E38Ly9xqIBR8Z5Zxp8HtcWCVmhu2gQrDONSInJPgWy9DkAQxfs40ltjJcwBJgpZ4fjElMMCxneEJZQG4TPqF3y2d3NQes81HIwARSbD6z8p1DFDcrJrrT+a8y3EB+CUkC2GxRehig8FBki4cWvzZF6p0vIFTdWXkK/VS3U58IUIJxGKHurgZ5wu0LPI/pDDX0FOp6USQWnLtlWYEjrXJ+KEZAf4dgcvc7tTHl8WbQ17kyBHxQ+fEZH9cbqL0TLT66PN9vol+paCzX0MgyFgk4BxdW/llTKG5GdRXnFXVG1zNu1n70RgHNDBFVW3zZo31Olz4iMV4yt7XHle0njgU+nlwAKn3eST9k+45zcZjiRQIQUyCgN3UOf4l0EvPFN0h6X/VrqAo4Gn+DK+MBierE4CSBfkzIGNGRXxqyIhgEkfNbQl9fhw+QkgMlJXkFdz5AwwtYxXbsuJOi81XwE9G9J1jjwh7c6HNOuC05MPgKe1ojXaSpCXXBichJA0XCy5fQ04qBmXfBhchIQEdNeqqUu4Oh7JmvXBdMKAoQ1UiLlMqSrttYQoIraUtYaArLj7NjyXeW2FQRwiDkF7YTeU0FtKXESwGnsypJp7Ba08lvjhAo+quqED5OTAIwtqhqsOl++Q/IuL5/gB1V1ZfMXLj0+AuYu4brGJN/5CCvg+4o2nZh8BMwUDZdSFTHfnZiwd7vJOzqrUGvrke+E/Fgx5Lf8F0xbA9mDLwIMRePcNSHGmHwoVc73LTd3YdlFwHRLS6QHQjDhlHepnO9b3qI73RqwHrwEZEdP9bO3ZdtQ6U9w7oIxMiBaW8vrtU+7lwCZQOic+SZWGQetfKgcU+mj6Ld9q4Qhc3SFs67PzWXHUnEs+2Gkrj+pWQkGm5DS9+ToSIkA+W1AgGv90lS4AKTYhyLAREhxw/E5ufq8WPJwJAB2xdbXL/JoZw24mYyy4c19W66hPhORxY1i9Z0oWBMFr4ulm5dgVT+yi03VPYGtlF6Yew3LpOrAbYVEwrRhgN4FEN9sX6Pc99hWDpEE8Ul8iwLapfTA0iF1+Rh9TPbZptMhZK+PSgQOyJ+lzesmQmyK7ajgyijPokHr2OwtdBC9anzVfcRkBVKOzjGIWLHqo1oLnQ9oyDgkDKQyV02NTMcgxOY+MkHvAvsotucAIuFZuuSs/Kcp53uFnN/59wV9Tpf/NDXj2rWOgY6BjoGOgVgM/AP9HjGMza5aZwAAAABJRU5ErkJggg==" x="216px" y="1079px" filter="url(#filter493)" />
|
||||
</g>
|
||||
</defs>
|
||||
<g transform="matrix(1 0 0 1 -206 -1069 )">
|
||||
<use xlink:href="#widget495" filter="url(#filter494)" />
|
||||
<use xlink:href="#widget495" />
|
||||
</g>
|
||||
</svg>
|
@ -23,7 +23,7 @@
|
||||
<image class='videobtn' wx:if="{{ item.isvideo }}" src="../../img/videologo.png" />
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
{{ item.subject }}
|
||||
<image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image>
|
||||
<!-- <image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image> -->
|
||||
</view>
|
||||
<view class='tips'>
|
||||
<view class='i' wx:if="{{ item.location }}">{{ item.location }}</view>
|
||||
@ -149,7 +149,7 @@
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
{{ item.subject }}
|
||||
<image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image>
|
||||
<!-- <image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image> -->
|
||||
</view>
|
||||
<view class="housingInfo">
|
||||
<view class="housingSite">
|
||||
|
@ -401,7 +401,6 @@
|
||||
<view class="leaseTime pop-up">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
|
||||
</view>
|
||||
<view class="pop-up-title">{{ item.title || popUpTitle }}</view>
|
||||
@ -626,6 +625,9 @@
|
||||
<view class="yellowDot"></view><text>微信</text>
|
||||
</view>
|
||||
<view class="contactInformation-wechat" wx:if="{{ contactInformationState == 0 }}">
|
||||
<view class="contactInformation-wechat-item" hover-class="option-hover" hover-stay-time="50" bindtap="contactInformationwechatcut" data-state="1">
|
||||
<image mode="widthFix" src="/img/pengreydark.png"></image><text>填写微信号</text>
|
||||
</view>
|
||||
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2">
|
||||
<image src="/img/u789.svg"></image>
|
||||
<image class="contactInformation-recommend" src="/img/u666.png"></image>
|
||||
|
@ -97,7 +97,6 @@ Page({
|
||||
getNewInit() {
|
||||
miucms.wxget(`${app.globalData.baseURL}/tenement/v2/api/home`).then(res => {
|
||||
let data = res.data
|
||||
// console.log(data);
|
||||
let {
|
||||
recommendedTab
|
||||
} = data
|
||||
@ -458,15 +457,12 @@ Page({
|
||||
type: this.data.listType,
|
||||
pagevalue: this.data.pagevalue || 0,
|
||||
}).then(res => {
|
||||
// this.getListDataState = false
|
||||
|
||||
if (res.code != 200) return
|
||||
let data = res.data.data
|
||||
|
||||
let pagevalue = res.data.pagevalue
|
||||
let recommendedTab = this.data.recommendedTab
|
||||
|
||||
|
||||
this.setData({
|
||||
listPage: this.data.listPage + 1,
|
||||
listData: data,
|
||||
@ -474,8 +470,13 @@ Page({
|
||||
recommendedTab
|
||||
})
|
||||
|
||||
this.listDataIndex = 0
|
||||
this.calculateProcessingCenter()
|
||||
|
||||
this.calculationBefore(data)
|
||||
|
||||
|
||||
// this.listDataIndex = 0
|
||||
// this.listDataIndex = 9
|
||||
// this.calculateProcessingCenter()
|
||||
|
||||
}).catch(() => {
|
||||
this.getListDataState = false
|
||||
@ -484,10 +485,35 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
calculationBefore(data = [...data]) {
|
||||
let listDataLeft = this.data.listDataLeft
|
||||
let listDataRight = this.data.listDataRight
|
||||
|
||||
data = data.slice(0, 10)
|
||||
|
||||
data.forEach((el, index) => {
|
||||
if (index % 2 === 0) listDataLeft.push(el)
|
||||
else listDataRight.push(el)
|
||||
})
|
||||
|
||||
this.setData({
|
||||
listDataLeft,
|
||||
listDataRight,
|
||||
})
|
||||
|
||||
this.top10State = true
|
||||
|
||||
return
|
||||
this.pinterestImgLoadIndex = 0
|
||||
this.listDataIndex = 9
|
||||
this.calculateProcessingCenter()
|
||||
},
|
||||
|
||||
listDataIndex: 0,
|
||||
leftHeight: 0, // px 单位
|
||||
rightHeight: 0,
|
||||
ratio: 0,
|
||||
pinterestImgLoadIndex: 0, // 加载了建施图
|
||||
|
||||
// 计算
|
||||
calculateProcessingCenter() {
|
||||
@ -556,6 +582,25 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
pinterestImgLoad(e) {
|
||||
this.pinterestImgLoadIndex++
|
||||
|
||||
if (this.pinterestImgLoadIndex >= 10 && this.top10State) {
|
||||
this.top10State = false
|
||||
this.pinterestImgLoadIndex = 0
|
||||
this.listDataIndex = 10
|
||||
let query = wx.createSelectorQuery();
|
||||
query.select("#pinterest-list-left").boundingClientRect()
|
||||
query.select("#pinterest-list-right").boundingClientRect()
|
||||
query.exec(rect => {
|
||||
this.leftHeight = rect[0].height
|
||||
this.rightHeight = rect[1].height
|
||||
this.calculateProcessingCenter()
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
// 获取图片高度
|
||||
getPictureHeight(src) {
|
||||
return new Promise((resolve, reject) => {
|
||||
@ -580,6 +625,7 @@ Page({
|
||||
|
||||
// 上拉到底部
|
||||
onReachBottom() {
|
||||
// return
|
||||
this.getListData()
|
||||
},
|
||||
|
||||
|
@ -127,7 +127,7 @@
|
||||
<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 || areaIndex == 1 }}" class="area-list area-school flexflex">
|
||||
<view class="area-item flexcenter" bindtap="{{ areaIndex == 0 ? 'skipPersonList' : 'openAreaPop' }}" wx:for="{{ combination[areaIndex].where }}" wx:key="index" data-id="{{ item.id }}" data-index="{{ index }}" data-key="school">{{ item.name }}</view>
|
||||
</view> -->
|
||||
@ -164,7 +164,11 @@
|
||||
|
||||
<view class="apartment-image-list flexacenter">
|
||||
<block wx:for="{{ item.images }}" wx:key="index">
|
||||
<image class="apartment-image-item" mode="aspectFill" wx:if="{{ index < 2}}" src="{{ item }}"></image>
|
||||
<view class="apartment-image-item">
|
||||
<image class="" mode="aspectFill" wx:if="{{ index < 2}}" src="{{ item }}"></image>
|
||||
<image mode="widthFix" class="apartment-image-item-icon" src="/img/frontPlay.svg"></image>
|
||||
</view>
|
||||
|
||||
</block>
|
||||
|
||||
</view>
|
||||
@ -180,7 +184,7 @@
|
||||
</view>
|
||||
<!-- 列表 -->
|
||||
<view class="pinterest-list flexflex">
|
||||
<view class="pinterest-list-left flex1">
|
||||
<view id="pinterest-list-left" class="pinterest-list-left flex1">
|
||||
<block wx:for="{{ listDataLeft }}" wx:key="index">
|
||||
<block wx:if="{{item.type == 'adv'}}">
|
||||
<template is="adv" data="{{ item }}"></template>
|
||||
@ -194,7 +198,7 @@
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class="pinterest-list-left flex1" style="display:flex;flex-direction:column;align-items: flex-end;">
|
||||
<view id="pinterest-list-right" class="pinterest-list-right 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>
|
||||
@ -391,13 +395,13 @@
|
||||
</view>
|
||||
</view>
|
||||
</page-container>
|
||||
|
||||
|
||||
<announcement-popup interface="home" init="{{ initState }}"></announcement-popup>
|
||||
</view>
|
||||
|
||||
<!-- 广告 -->
|
||||
<template name="adv">
|
||||
<image class="pinterest-list-item" mode="widthFix" src="{{ item.imageLocal || item.image }}" bindtap="handleSwiper" data-advertisingtype="{{ 'slideshow' }}" data-statid="{{ item.statid }}" data-id="{{ item.id }}" data-url="{{ item.path || item.url }}"></image>
|
||||
<image class="pinterest-list-item" mode="widthFix" bindload="pinterestImgLoad" lazy-load="{{ true }}" src="{{ item.imageLocal || item.image }}" bindtap="handleSwiper" data-advertisingtype="{{ 'slideshow' }}" data-statid="{{ item.statid }}" data-id="{{ item.id }}" data-url="{{ item.path || item.url }}"></image>
|
||||
</template>
|
||||
|
||||
<!-- 公寓 -->
|
||||
@ -408,7 +412,7 @@
|
||||
<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="aspectFill" src="{{ item.imageLocal || item.image }}"></image>
|
||||
<image class="apartment-img" mode="aspectFill" bindload="pinterestImgLoad" src="{{ item.imageLocal || item.image }}" lazy-load="{{ true }}"></image>
|
||||
<view class="apartment-name one-line-display">{{ item.title }}</view>
|
||||
<view class="apartment-introduce one-line-display">{{ item.propaganda }}</view>
|
||||
<view class="apartment-price">
|
||||
@ -425,18 +429,16 @@
|
||||
</view>
|
||||
<view 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.intermediarytext }}">{{ item.intermediarytext }}</view>
|
||||
<image class="general-img" mode="aspectFill" src="{{ item.imageLocal || item.image }}"></image>
|
||||
<view class="top-right-corner flexcenter">{{ item.intermediarytext || '其他' }}</view>
|
||||
<image class="general-img" mode="aspectFill" bindload="pinterestImgLoad" src="{{ item.imageLocal || item.image }}" lazy-load="{{ true }}"></image>
|
||||
<view class="general-name flexacenter" wx:if="{{ item.title }}">
|
||||
<view class="general-tag flexcenter" wx:if="{{ item.gptype }}">{{ item.gptype }}</view>
|
||||
{{ item.title }}
|
||||
|
@ -769,6 +769,22 @@ page {
|
||||
width: 100%;
|
||||
height: 93rpx;
|
||||
border-radius: 6rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-image-item image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-image-item .apartment-image-item-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 69rpx;
|
||||
height: 69rpx;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-image-item:first-of-type {
|
||||
@ -835,6 +851,11 @@ page {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-left,
|
||||
.pinterest-list .pinterest-list-right {
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item {
|
||||
width: 337.5rpx;
|
||||
background-color: #fff;
|
||||
@ -906,7 +927,7 @@ page {
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-cost {
|
||||
font-size: 21rpx;
|
||||
font-size: 21rpx;
|
||||
color: #555555;
|
||||
justify-content: flex-end;
|
||||
font-family: 'Arial-Black';
|
||||
|
@ -64,8 +64,7 @@ Page({
|
||||
initState: false,
|
||||
topTitle: "",
|
||||
|
||||
|
||||
isNewVersions: true,
|
||||
isNewVersions: false,
|
||||
},
|
||||
onPageScroll(e) {
|
||||
if (e.scrollTop > 1000 && !this.data.showTOTOP) {
|
||||
|
@ -31,7 +31,7 @@
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:if="{{ true }}">
|
||||
<block wx:if="{{ isNewVersions }}">
|
||||
<list-operations operationstype="student" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
||||
</block>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<image lazy-load="{{ true }}" mode="widthFix" src="{{ item.image }}" class="img"></image>
|
||||
<view class="r">
|
||||
<view class="title">
|
||||
<image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image>
|
||||
<!-- <image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image> -->
|
||||
<text>{{ item.subject }}</text>
|
||||
</view>
|
||||
<view class="footer">
|
||||
@ -16,7 +16,7 @@
|
||||
</view>
|
||||
<view class="no-pic" wx:if="{{ !item.image }}">
|
||||
<view class="title">
|
||||
<image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image>
|
||||
<!-- <image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image> -->
|
||||
<text>{{ item.subject }}</text>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
|
@ -42,6 +42,7 @@ Component({
|
||||
|
||||
"locationValue": function (e) {
|
||||
// console.log('locationValue:', e)
|
||||
console.log("e", e);
|
||||
if (Array.isArray(e) && e.length > 0) {
|
||||
if (e.length > 1) {
|
||||
// 地区多选
|
||||
@ -70,6 +71,8 @@ Component({
|
||||
name: this.properties.list[Math.floor(e[0])] + '/...'
|
||||
})
|
||||
}
|
||||
console.log("selectarr", this.data.selectarr);
|
||||
|
||||
|
||||
} else {
|
||||
// 地区清空
|
||||
@ -79,6 +82,8 @@ Component({
|
||||
})
|
||||
}
|
||||
|
||||
console.log("selectarr", this.data.selectarr);
|
||||
|
||||
},
|
||||
"schoolValue": function (e) {
|
||||
// console.log('schoolValue:', e)
|
||||
@ -100,14 +105,12 @@ Component({
|
||||
methods: {
|
||||
catchmove() {},
|
||||
attachedIn() {
|
||||
// console.log('attachedInattachedInattachedIn')
|
||||
this.setList()
|
||||
},
|
||||
showAlert(e) {
|
||||
this.setData({
|
||||
show: e.currentTarget.dataset.show == 1 ? true : false
|
||||
})
|
||||
|
||||
},
|
||||
setList() {
|
||||
if (this.data.arr1.length > 0) {
|
||||
@ -180,7 +183,7 @@ Component({
|
||||
for (let i in this.data.selectarr) {
|
||||
arr.push(i)
|
||||
}
|
||||
} else if(this.data.value1 != "" && this.data.value1 != 0) {
|
||||
} else if (this.data.value1 != "" && this.data.value1 != 0) {
|
||||
arr = [this.data.value1]
|
||||
}
|
||||
this.triggerEvent('submit', {
|
||||
|
@ -120,7 +120,11 @@ Page({
|
||||
},
|
||||
verifiedList: [],
|
||||
listTab: {},
|
||||
initState: false
|
||||
initState: false,
|
||||
|
||||
|
||||
isNewVersions: false,
|
||||
|
||||
},
|
||||
onPageScroll(e) {
|
||||
if (e.scrollTop > 1000 && !this.data.showTOTOP) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 新的 -->
|
||||
<block wx:if="{{ true }}">
|
||||
<block wx:if="{{ isNewVersions }}">
|
||||
<list-operations location="{{ location }}" operationstype="housing" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
||||
</block>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<view class="tab-list flexacenter" wx:if="{{ false }}">
|
||||
<view class="tab-item flexcenter {{ page == item.value ? 'pitch' : '' }}" wx:for="{{ tabList }}" wx:key="index" bindtap="toPage" data-page="{{ item.value }}">{{ item.name }}</view>
|
||||
<view class="tab-item flexcenter {{ page == item.value ? 'pitch' : '' }}" wx:for="{{ tabList }}" wx:key="index" bindtap="toPage" data-page="{{ item.value }}">{{ item.name }}</view>
|
||||
</view>
|
||||
|
||||
<view class='irent-tab-box tab-box'>
|
||||
@ -7,14 +7,14 @@
|
||||
<view class="text">个人房源</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ isNewVersions }}" class="{{ page=='quarantineLists'? 'tab active' :'tab'}}" bindtap="toIntermediaryPage">
|
||||
<view class="{{ page=='quarantineLists'? 'tab active' :'tab'}}" bindtap="toIntermediaryPage">
|
||||
<view class="text">{{ '中介房源' }}</view>
|
||||
</view>
|
||||
<block wx:else>
|
||||
<!-- <block wx:else>
|
||||
<view class="{{ page=='quarantineLists'? 'tab active' :'tab'}}" wx:if="{{ listTab.quarantineLists }}" data-page="quarantineLists" bindtap="toPage">
|
||||
<view class="text">{{ listTab.quarantineLists }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</block> -->
|
||||
|
||||
<view class="{{ page=='irentList'? 'tab active' :'tab'}}" data-page="irentList" bindtap="toPage">
|
||||
<view class="text">学生公寓</view>
|
||||
|
@ -4,470 +4,492 @@ var config = {};
|
||||
var miucms = require('../../utils/miucms.js');
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
showTOTOP: false,
|
||||
loading: true,
|
||||
conditionFixed: false, //筛选条件一列是否固定在顶部
|
||||
attachment: [],
|
||||
groupSearch: [], //组合最热
|
||||
selectGroupIndex: null,
|
||||
orderby: {
|
||||
value: 'timestamp',
|
||||
list: [{
|
||||
name: "最新发布",
|
||||
value: 'timestamp'
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
showTOTOP: false,
|
||||
loading: true,
|
||||
conditionFixed: false, //筛选条件一列是否固定在顶部
|
||||
attachment: [],
|
||||
groupSearch: [], //组合最热
|
||||
selectGroupIndex: null,
|
||||
orderby: {
|
||||
value: 'timestamp',
|
||||
list: [{
|
||||
name: "最新发布",
|
||||
value: 'timestamp'
|
||||
},
|
||||
{
|
||||
name: "热门",
|
||||
value: 'hotnum'
|
||||
},
|
||||
{
|
||||
name: "价格从低到高",
|
||||
value: 'rentasc'
|
||||
},
|
||||
{
|
||||
name: "价格从高到低",
|
||||
value: 'rentdesc'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "热门",
|
||||
value: 'hotnum'
|
||||
list: [],
|
||||
page: {
|
||||
next_page: 1
|
||||
},
|
||||
{
|
||||
name: "价格从低到高",
|
||||
value: 'rentasc'
|
||||
location: {},
|
||||
types: {
|
||||
data: [],
|
||||
value: ''
|
||||
},
|
||||
{
|
||||
name: "价格从高到低",
|
||||
value: 'rentdesc'
|
||||
property: {},
|
||||
cityList: [],
|
||||
moreCondition: {
|
||||
show: false,
|
||||
data: {
|
||||
gender: "0",
|
||||
leaseterm: "",
|
||||
publish: "twomonth",
|
||||
}
|
||||
},
|
||||
]
|
||||
city: {
|
||||
uniqid: "",
|
||||
name: "",
|
||||
alias: ''
|
||||
},
|
||||
hascondition: true,
|
||||
|
||||
langs: {}, // 语言包
|
||||
isAuthorization: 0
|
||||
},
|
||||
list: [],
|
||||
page: {
|
||||
next_page: 1
|
||||
},
|
||||
location: {},
|
||||
types: {
|
||||
data: [],
|
||||
value: ''
|
||||
},
|
||||
property: {},
|
||||
cityList: [],
|
||||
moreCondition: {
|
||||
show: false,
|
||||
data: {
|
||||
gender: "0",
|
||||
leaseterm: "",
|
||||
publish: "twomonth",
|
||||
}
|
||||
},
|
||||
city: {
|
||||
uniqid: "",
|
||||
name: "",
|
||||
alias: ''
|
||||
},
|
||||
hascondition: true,
|
||||
|
||||
langs: {}, // 语言包
|
||||
|
||||
},
|
||||
onPageScroll(e) {
|
||||
if (e.scrollTop > 1000 && !this.data.showTOTOP) {
|
||||
this.setData({
|
||||
showTOTOP: true
|
||||
})
|
||||
} else if (e.scrollTop < 1000 && this.data.showTOTOP) {
|
||||
this.setData({
|
||||
showTOTOP: false
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
console.log(options)
|
||||
this.setData({
|
||||
city: {
|
||||
uniqid: options.cityid || '',
|
||||
name: options.name || '',
|
||||
alias: options.alias || ''
|
||||
},
|
||||
})
|
||||
var that = this;
|
||||
wx.setStorage({
|
||||
key: 'selectcityData',
|
||||
data: that.data.city,
|
||||
})
|
||||
this.get_config()
|
||||
this.firstInpage = false;
|
||||
|
||||
app.globalData['langs'] ? this.data.langs = app.globalData['langs'] : this.getDtailsLangs()
|
||||
|
||||
},
|
||||
firstInpage: true,
|
||||
onShow() {
|
||||
var that = this;
|
||||
if (this.firstInpage) {
|
||||
return false
|
||||
}
|
||||
wx.getStorage({
|
||||
key: 'selectcityData',
|
||||
success: function (res) {
|
||||
if (res.data.uniqid == that.data.city.uniqid) {
|
||||
return false
|
||||
}
|
||||
that.setData({
|
||||
city: res.data,
|
||||
selectGroupIndex: null
|
||||
})
|
||||
if (res.data && res.data.uniqid && app.globalData.config.lists) {
|
||||
that.clear_data()
|
||||
}
|
||||
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
onUnload() {
|
||||
wx.removeStorage({
|
||||
key: 'selectcityData',
|
||||
success: function (res) {},
|
||||
})
|
||||
wx.removeStorage({
|
||||
key: 'countryList',
|
||||
success: function (res) {},
|
||||
})
|
||||
|
||||
},
|
||||
get_config() {
|
||||
var that = this;
|
||||
// console.log('get_configget_configget_configget_config');
|
||||
|
||||
if (app.globalData.config.lists) {
|
||||
|
||||
config = app.globalData.config;
|
||||
|
||||
that.data.user = app.globalData.user;
|
||||
this.setData({
|
||||
screen_data: app.globalData.screen_data,
|
||||
leaseterm: that.data.leaseterm,
|
||||
status: app.globalData.status,
|
||||
StudentapartmentNew: app.globalData.StudentapartmentNew
|
||||
})
|
||||
this.getgroupSearch();
|
||||
this.get_list();
|
||||
this.getAd();
|
||||
this.getLocationList()
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
that.get_config()
|
||||
}, 200)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
if (!app.globalData.config || !app.globalData.config.lists) {
|
||||
// console.log('还没拿到数据呢。。。。。。。。')
|
||||
wx.stopPullDownRefresh();
|
||||
return false
|
||||
}
|
||||
|
||||
this.clear_data()
|
||||
this.getAd()
|
||||
this.getgroupSearch();
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
if (!app.globalData.config || !app.globalData.config.lists || this.data.page.next_page < 2) {
|
||||
return false
|
||||
}
|
||||
this.get_list()
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
let path = `/pages/restOfWorld/restOfWorld?name=${this.data.city.name}&cityid=${this.data.city.uniqid}&alias=${this.data.city.alias}`;
|
||||
// var title = '寄托港校租房';
|
||||
var title = app.globalData.topTitle;
|
||||
if (this.data.city.name) {
|
||||
// title = '寄托港校租房 - ' + this.data.city.name
|
||||
title = app.globalData.topTitle + ' - ' + this.data.city.name
|
||||
}
|
||||
return {
|
||||
path: path,
|
||||
title: title,
|
||||
success: function (res) {
|
||||
miucms.share(app, 'index')
|
||||
}
|
||||
}
|
||||
},
|
||||
// 拉去广告
|
||||
getAd() {
|
||||
let that = this;
|
||||
miucms.request(app.globalData.config.otherlist.banner, {}).then(data => {
|
||||
that.setData({
|
||||
attachment: data.data
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
|
||||
},
|
||||
// 组合搜索
|
||||
getgroupSearch() {
|
||||
var that = this;
|
||||
miucms.request(app.globalData.config.otherlist.groupsearch, {}).then(data => {
|
||||
this.setData({
|
||||
groupSearch: data.data
|
||||
}, function () {
|
||||
that.calculateConditionPosition()
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
},
|
||||
// 拉取列表
|
||||
get_list() {
|
||||
var that = this;
|
||||
this.setData({
|
||||
loading: true
|
||||
})
|
||||
miucms.request(app.globalData.config.otherlist.init, Object.assign({}, this.data.moreCondition.data, {
|
||||
page: this.data.page.next_page,
|
||||
'type': this.data.types.value * 1,
|
||||
orderby: this.data.orderby.value,
|
||||
cityid: this.data.city.uniqid
|
||||
})).then(data => {
|
||||
let list = data.data
|
||||
|
||||
list.forEach(element => {
|
||||
if (Array.isArray(element.rent)) element.rent = element.rent.join(' ~ ')
|
||||
})
|
||||
|
||||
that.setData({
|
||||
list: that.data.list.concat(list),
|
||||
loading: false,
|
||||
page: data.page
|
||||
})
|
||||
|
||||
that.handleDetailData()
|
||||
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
},
|
||||
// 获取地域列表
|
||||
getLocationList() {
|
||||
let that = this;
|
||||
miucms.request(app.globalData.config.otherlist.region, {}).then(data => {
|
||||
this.data.location.data = data.data.location;
|
||||
this.data.types.data = data.data['type'];
|
||||
that.setData({
|
||||
location: this.data.location,
|
||||
types: this.data.types,
|
||||
property: data.data.property,
|
||||
cityList: data.data.cityList
|
||||
})
|
||||
wx.setStorage({
|
||||
key: 'countryList',
|
||||
data: data.data.cityList,
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
},
|
||||
// 计算筛选条件位置
|
||||
calculateConditionPosition() {
|
||||
var that = this;
|
||||
wx.createIntersectionObserver().relativeToViewport({
|
||||
top: -20
|
||||
}).observe('.hot-text-box', res => {
|
||||
if (res.intersectionRatio > 0) {
|
||||
that.setData({
|
||||
conditionFixed: false
|
||||
})
|
||||
} else {
|
||||
that.setData({
|
||||
conditionFixed: true
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 清空数组
|
||||
clear_data: function () {
|
||||
this.setData({
|
||||
page: {
|
||||
next_page: 1
|
||||
},
|
||||
list: []
|
||||
})
|
||||
this.get_list()
|
||||
|
||||
},
|
||||
|
||||
// 提交出租方式
|
||||
submittype(e) {
|
||||
console.log(e.detail)
|
||||
this.data.types.value = e.detail.data;
|
||||
this.setData({
|
||||
types: this.data.types,
|
||||
selectGroupIndex: null
|
||||
})
|
||||
this.clear_data()
|
||||
},
|
||||
// 提交排序
|
||||
submitOrderby(e) {
|
||||
console.log(e.detail)
|
||||
this.data.orderby.value = e.detail.value;
|
||||
this.setData({
|
||||
orderby: this.data.orderby
|
||||
})
|
||||
this.clear_data()
|
||||
},
|
||||
// 提交更多
|
||||
myEventSelectSubmit(e) {
|
||||
console.log(e.detail)
|
||||
|
||||
this.setData({
|
||||
moreCondition: {
|
||||
show: false,
|
||||
data: e.detail
|
||||
},
|
||||
selectGroupIndex: null
|
||||
})
|
||||
this.hasMoreCondition()
|
||||
this.clear_data()
|
||||
},
|
||||
// 判断‘更多’是否加粗
|
||||
hasMoreCondition() {
|
||||
let hascondition = false;
|
||||
for (let i in this.data.moreCondition.data) {
|
||||
if (this.data.moreCondition.data[i] != 0) {
|
||||
// 存在一个就加粗
|
||||
hascondition = true;
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
hascondition,
|
||||
})
|
||||
},
|
||||
// 选择热词
|
||||
selectGroup(e) {
|
||||
let index = e.currentTarget.dataset.index;
|
||||
let obj = this.data.groupSearch[index].where;
|
||||
// this.data.location.value = [...obj.location];//区域
|
||||
this.data.types.value = obj['type']; //出租方式
|
||||
// this.data.money.rent_min = obj.rent_min;
|
||||
// this.data.money.rent_max = obj.rent_max;//租金
|
||||
this.data.orderby.value = obj.orderby; //排序
|
||||
var isNotID = true,
|
||||
city = {
|
||||
uniqid: obj.cityid,
|
||||
name: '',
|
||||
"alias": ""
|
||||
};
|
||||
|
||||
this.data.cityList.every(item => {
|
||||
item.city.every(s => {
|
||||
if (s.cityid == obj.cityid) {
|
||||
isNotID = false;
|
||||
city.name = s.name;
|
||||
city.alias = item.alias;
|
||||
}
|
||||
return isNotID
|
||||
})
|
||||
return isNotID
|
||||
})
|
||||
this.data.city = city;
|
||||
this.data.moreCondition.data = {
|
||||
gender: obj.gender,
|
||||
leaseterm: obj.leaseterm,
|
||||
publish: obj.publish,
|
||||
}
|
||||
this.setData({
|
||||
selectGroupIndex: index,
|
||||
// location: this.data.location,
|
||||
types: this.data.types,
|
||||
// money: this.data.money,
|
||||
orderby: this.data.orderby,
|
||||
moreCondition: this.data.moreCondition,
|
||||
city
|
||||
})
|
||||
this.hasMoreCondition()
|
||||
this.clear_data()
|
||||
},
|
||||
// 点击广告
|
||||
clickAD(e) {
|
||||
miucms.clickAD(e.detail.id)
|
||||
},
|
||||
// 关闭广告
|
||||
closeAD(e) {
|
||||
let index = e.currentTarget.dataset.index;
|
||||
this.data.list.splice(index, 1)
|
||||
this.setData({
|
||||
list: this.data.list
|
||||
})
|
||||
miucms.closeAD(e.detail.id)
|
||||
},
|
||||
|
||||
// 获取语言包 保存全局
|
||||
getDtailsLangs() {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/details/langs`).then(res => {
|
||||
if (res.code != 200) return
|
||||
let data = res.data
|
||||
this.setData({
|
||||
langs: data
|
||||
})
|
||||
app.globalData['langs'] = data
|
||||
})
|
||||
},
|
||||
|
||||
// 专门梳理v4出现的 语音包 及 不同房源值的处理
|
||||
handleDetailData() {
|
||||
let langs = this.data.langs || {}
|
||||
if (Object.keys(langs).length == 0) {
|
||||
setTimeout(() => {
|
||||
this.handleDetailData()
|
||||
}, 300)
|
||||
} else {
|
||||
let list = this.data.list
|
||||
|
||||
list.forEach(element => {
|
||||
console.log(element.leaseterm, langs);
|
||||
let leasetermLangs = langs.leaseterm
|
||||
console.log(leasetermLangs);
|
||||
element.leaseterm = leasetermLangs[element.leaseterm || 1]
|
||||
let location = langs.location // 遍历替换区域的值 所有房源
|
||||
let pendingData = element['location']
|
||||
let locationList = []
|
||||
for (const key in location) {
|
||||
if (pendingData.indexOf(key) != -1 && Math.trunc(key) != key) {
|
||||
locationList.push({
|
||||
head: location[Math.trunc(key)],
|
||||
end: location[key],
|
||||
onPageScroll(e) {
|
||||
if (e.scrollTop > 1000 && !this.data.showTOTOP) {
|
||||
this.setData({
|
||||
showTOTOP: true
|
||||
})
|
||||
}
|
||||
} else if (e.scrollTop < 1000 && this.data.showTOTOP) {
|
||||
this.setData({
|
||||
showTOTOP: false
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
console.log(options)
|
||||
this.setData({
|
||||
city: {
|
||||
uniqid: options.cityid || '',
|
||||
name: options.name || '',
|
||||
alias: options.alias || ''
|
||||
},
|
||||
})
|
||||
var that = this;
|
||||
wx.setStorage({
|
||||
key: 'selectcityData',
|
||||
data: that.data.city,
|
||||
})
|
||||
this.get_config()
|
||||
this.firstInpage = false;
|
||||
|
||||
app.globalData['langs'] ? this.data.langs = app.globalData['langs'] : this.getDtailsLangs()
|
||||
|
||||
},
|
||||
firstInpage: true,
|
||||
onShow() {
|
||||
var that = this;
|
||||
if (this.firstInpage) {
|
||||
return false
|
||||
}
|
||||
wx.getStorage({
|
||||
key: 'selectcityData',
|
||||
success: function (res) {
|
||||
if (res.data.uniqid == that.data.city.uniqid) {
|
||||
return false
|
||||
}
|
||||
that.setData({
|
||||
city: res.data,
|
||||
selectGroupIndex: null
|
||||
})
|
||||
if (res.data && res.data.uniqid && app.globalData.config.lists) {
|
||||
that.clear_data()
|
||||
}
|
||||
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
onUnload() {
|
||||
wx.removeStorage({
|
||||
key: 'selectcityData',
|
||||
success: function (res) {},
|
||||
})
|
||||
wx.removeStorage({
|
||||
key: 'countryList',
|
||||
success: function (res) {},
|
||||
})
|
||||
|
||||
},
|
||||
get_config() {
|
||||
var that = this;
|
||||
// console.log('get_configget_configget_configget_config');
|
||||
|
||||
if (app.globalData.config.lists) {
|
||||
|
||||
config = app.globalData.config;
|
||||
|
||||
that.data.user = app.globalData.user;
|
||||
this.setData({
|
||||
screen_data: app.globalData.screen_data,
|
||||
leaseterm: that.data.leaseterm,
|
||||
status: app.globalData.status,
|
||||
StudentapartmentNew: app.globalData.StudentapartmentNew
|
||||
})
|
||||
this.getgroupSearch();
|
||||
this.get_list();
|
||||
this.getAd();
|
||||
this.getLocationList()
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
that.get_config()
|
||||
}, 200)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
if (!app.globalData.config || !app.globalData.config.lists) {
|
||||
// console.log('还没拿到数据呢。。。。。。。。')
|
||||
wx.stopPullDownRefresh();
|
||||
return false
|
||||
}
|
||||
|
||||
element['locationList'] = locationList
|
||||
})
|
||||
this.clear_data()
|
||||
this.getAd()
|
||||
this.getgroupSearch();
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
|
||||
this.setData({
|
||||
list
|
||||
})
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
if (!app.globalData.config || !app.globalData.config.lists || this.data.page.next_page < 2) {
|
||||
return false
|
||||
}
|
||||
this.get_list()
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
let path = `/pages/restOfWorld/restOfWorld?name=${this.data.city.name}&cityid=${this.data.city.uniqid}&alias=${this.data.city.alias}`;
|
||||
// var title = '寄托港校租房';
|
||||
var title = app.globalData.topTitle;
|
||||
if (this.data.city.name) {
|
||||
// title = '寄托港校租房 - ' + this.data.city.name
|
||||
title = app.globalData.topTitle + ' - ' + this.data.city.name
|
||||
}
|
||||
return {
|
||||
path: path,
|
||||
title: title,
|
||||
success: function (res) {
|
||||
miucms.share(app, 'index')
|
||||
}
|
||||
}
|
||||
},
|
||||
// 拉去广告
|
||||
getAd() {
|
||||
let that = this;
|
||||
miucms.request(app.globalData.config.otherlist.banner, {}).then(data => {
|
||||
that.setData({
|
||||
attachment: data.data
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
|
||||
},
|
||||
// 组合搜索
|
||||
getgroupSearch() {
|
||||
var that = this;
|
||||
miucms.request(app.globalData.config.otherlist.groupsearch, {}).then(data => {
|
||||
this.setData({
|
||||
groupSearch: data.data
|
||||
}, function () {
|
||||
that.calculateConditionPosition()
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
},
|
||||
// 拉取列表
|
||||
get_list() {
|
||||
var that = this;
|
||||
this.setData({
|
||||
loading: true
|
||||
})
|
||||
miucms.request(app.globalData.config.otherlist.init, Object.assign({}, this.data.moreCondition.data, {
|
||||
page: this.data.page.next_page,
|
||||
'type': this.data.types.value * 1,
|
||||
orderby: this.data.orderby.value,
|
||||
cityid: this.data.city.uniqid
|
||||
})).then(data => {
|
||||
let list = data.data
|
||||
|
||||
list.forEach(element => {
|
||||
if (Array.isArray(element.rent)) element.rent = element.rent.join(' ~ ')
|
||||
})
|
||||
|
||||
that.setData({
|
||||
list: that.data.list.concat(list),
|
||||
loading: false,
|
||||
page: data.page
|
||||
})
|
||||
|
||||
that.handleDetailData()
|
||||
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
},
|
||||
// 获取地域列表
|
||||
getLocationList() {
|
||||
let that = this;
|
||||
miucms.request(app.globalData.config.otherlist.region, {}).then(data => {
|
||||
this.data.location.data = data.data.location;
|
||||
this.data.types.data = data.data['type'];
|
||||
that.setData({
|
||||
location: this.data.location,
|
||||
types: this.data.types,
|
||||
property: data.data.property,
|
||||
cityList: data.data.cityList
|
||||
})
|
||||
wx.setStorage({
|
||||
key: 'countryList',
|
||||
data: data.data.cityList,
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
}).catch(res => {})
|
||||
},
|
||||
// 计算筛选条件位置
|
||||
calculateConditionPosition() {
|
||||
var that = this;
|
||||
wx.createIntersectionObserver().relativeToViewport({
|
||||
top: -20
|
||||
}).observe('.hot-text-box', res => {
|
||||
if (res.intersectionRatio > 0) {
|
||||
that.setData({
|
||||
conditionFixed: false
|
||||
})
|
||||
} else {
|
||||
that.setData({
|
||||
conditionFixed: true
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 清空数组
|
||||
clear_data: function () {
|
||||
this.setData({
|
||||
page: {
|
||||
next_page: 1
|
||||
},
|
||||
list: []
|
||||
})
|
||||
this.get_list()
|
||||
|
||||
},
|
||||
|
||||
// 提交出租方式
|
||||
submittype(e) {
|
||||
console.log(e.detail)
|
||||
this.data.types.value = e.detail.data;
|
||||
this.setData({
|
||||
types: this.data.types,
|
||||
selectGroupIndex: null
|
||||
})
|
||||
this.clear_data()
|
||||
},
|
||||
// 提交排序
|
||||
submitOrderby(e) {
|
||||
console.log(e.detail)
|
||||
this.data.orderby.value = e.detail.value;
|
||||
this.setData({
|
||||
orderby: this.data.orderby
|
||||
})
|
||||
this.clear_data()
|
||||
},
|
||||
// 提交更多
|
||||
myEventSelectSubmit(e) {
|
||||
console.log(e.detail)
|
||||
|
||||
this.setData({
|
||||
moreCondition: {
|
||||
show: false,
|
||||
data: e.detail
|
||||
},
|
||||
selectGroupIndex: null
|
||||
})
|
||||
this.hasMoreCondition()
|
||||
this.clear_data()
|
||||
},
|
||||
// 判断‘更多’是否加粗
|
||||
hasMoreCondition() {
|
||||
let hascondition = false;
|
||||
for (let i in this.data.moreCondition.data) {
|
||||
if (this.data.moreCondition.data[i] != 0) {
|
||||
// 存在一个就加粗
|
||||
hascondition = true;
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
hascondition,
|
||||
})
|
||||
},
|
||||
// 选择热词
|
||||
selectGroup(e) {
|
||||
let index = e.currentTarget.dataset.index;
|
||||
let obj = this.data.groupSearch[index].where;
|
||||
// this.data.location.value = [...obj.location];//区域
|
||||
this.data.types.value = obj['type']; //出租方式
|
||||
// this.data.money.rent_min = obj.rent_min;
|
||||
// this.data.money.rent_max = obj.rent_max;//租金
|
||||
this.data.orderby.value = obj.orderby; //排序
|
||||
var isNotID = true,
|
||||
city = {
|
||||
uniqid: obj.cityid,
|
||||
name: '',
|
||||
"alias": ""
|
||||
};
|
||||
|
||||
this.data.cityList.every(item => {
|
||||
item.city.every(s => {
|
||||
if (s.cityid == obj.cityid) {
|
||||
isNotID = false;
|
||||
city.name = s.name;
|
||||
city.alias = item.alias;
|
||||
}
|
||||
return isNotID
|
||||
})
|
||||
return isNotID
|
||||
})
|
||||
this.data.city = city;
|
||||
this.data.moreCondition.data = {
|
||||
gender: obj.gender,
|
||||
leaseterm: obj.leaseterm,
|
||||
publish: obj.publish,
|
||||
}
|
||||
this.setData({
|
||||
selectGroupIndex: index,
|
||||
// location: this.data.location,
|
||||
types: this.data.types,
|
||||
// money: this.data.money,
|
||||
orderby: this.data.orderby,
|
||||
moreCondition: this.data.moreCondition,
|
||||
city
|
||||
})
|
||||
this.hasMoreCondition()
|
||||
this.clear_data()
|
||||
},
|
||||
// 点击广告
|
||||
clickAD(e) {
|
||||
miucms.clickAD(e.detail.id)
|
||||
},
|
||||
// 关闭广告
|
||||
closeAD(e) {
|
||||
let index = e.currentTarget.dataset.index;
|
||||
this.data.list.splice(index, 1)
|
||||
this.setData({
|
||||
list: this.data.list
|
||||
})
|
||||
miucms.closeAD(e.detail.id)
|
||||
},
|
||||
|
||||
// 获取语言包 保存全局
|
||||
getDtailsLangs() {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/details/langs`).then(res => {
|
||||
if (res.code != 200) return
|
||||
let data = res.data
|
||||
this.setData({
|
||||
langs: data
|
||||
})
|
||||
app.globalData['langs'] = data
|
||||
})
|
||||
},
|
||||
|
||||
// 专门梳理v4出现的 语音包 及 不同房源值的处理
|
||||
handleDetailData() {
|
||||
let langs = this.data.langs || {}
|
||||
if (Object.keys(langs).length == 0) {
|
||||
setTimeout(() => {
|
||||
this.handleDetailData()
|
||||
}, 300)
|
||||
} else {
|
||||
let list = this.data.list
|
||||
|
||||
list.forEach(element => {
|
||||
console.log(element.leaseterm, langs);
|
||||
let leasetermLangs = langs.leaseterm
|
||||
console.log(leasetermLangs);
|
||||
element.leaseterm = leasetermLangs[element.leaseterm || 1]
|
||||
let location = langs.location // 遍历替换区域的值 所有房源
|
||||
let pendingData = element['location']
|
||||
let locationList = []
|
||||
for (const key in location) {
|
||||
if (pendingData.indexOf(key) != -1 && Math.trunc(key) != key) {
|
||||
locationList.push({
|
||||
head: location[Math.trunc(key)],
|
||||
end: location[key],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
element['locationList'] = locationList
|
||||
})
|
||||
|
||||
this.setData({
|
||||
list
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
// 跳转求房源发布页面
|
||||
goAskHousing() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/askHousing/askHousing',
|
||||
})
|
||||
},
|
||||
// 跳转求房源发布页面
|
||||
goAskHousing() {
|
||||
let user = app.globalData['user']
|
||||
let miniProgram = app.globalData['miniProgram']
|
||||
|
||||
if (user['uid']) {
|
||||
if (!user['nickname']) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/setAvatarNickname/setAvatarNickname',
|
||||
})
|
||||
return
|
||||
}
|
||||
if (miniProgram == 'gx') {
|
||||
wx.navigateToMiniProgram({
|
||||
appId: "wx9c68fbf7886ea9c4",
|
||||
path: "/pages/askHousing/askHousing"
|
||||
})
|
||||
} else {
|
||||
wx.navigateTo({
|
||||
url: '/pages/askHousing/askHousing',
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
isAuthorization: 1
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
@ -1,17 +1,17 @@
|
||||
<view class="container">
|
||||
<!-- <header-nav haveSearch="true" >世界各地租房</header-nav> -->
|
||||
<header-nav haveSearch="true">求房源</header-nav>
|
||||
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
||||
<head-swiper attachment="{{ attachment }}"></head-swiper>
|
||||
<!-- 热词 -->
|
||||
<view class="hot-text-box">
|
||||
<view class="hot-text" wx:if="{{ groupSearch.length >0 }}">
|
||||
<view class="{{ index===selectGroupIndex ? 'active item' :'item'}}" bindtap="selectGroup" data-index="{{ index }}" wx:for="{{ groupSearch }}" wx:key="index">{{ item['keyword'] }}</view>
|
||||
<!-- <header-nav haveSearch="true" >世界各地租房</header-nav> -->
|
||||
<header-nav haveSearch="true">求房源</header-nav>
|
||||
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
||||
<head-swiper attachment="{{ attachment }}"></head-swiper>
|
||||
<!-- 热词 -->
|
||||
<view class="hot-text-box">
|
||||
<view class="hot-text" wx:if="{{ groupSearch.length >0 }}">
|
||||
<view class="{{ index===selectGroupIndex ? 'active item' :'item'}}" bindtap="selectGroup" data-index="{{ index }}" wx:for="{{ groupSearch }}" wx:key="index">{{ item['keyword'] }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 条件框 -->
|
||||
<!-- <view class="{{conditionFixed ? 'conditionFixed condition-box': 'condition-box'}}" style="top:{{ screen_data.totalTopHeight }}px">
|
||||
<!-- 条件框 -->
|
||||
<!-- <view class="{{conditionFixed ? 'conditionFixed condition-box': 'condition-box'}}" style="top:{{ screen_data.totalTopHeight }}px">
|
||||
<view class="tab" >
|
||||
<navigator hover-class="hover" class="{{city.name ?'bold navigator' : 'navigator' }}" url="/pages/chooseLocation/chooseLocation?frompage=1">{{ city.name || '地区'}}<image src="/img/tobottom-c.png" class="tobottom"></image></navigator>
|
||||
|
||||
@ -32,36 +32,39 @@
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="list">
|
||||
<block wx:for="{{ list }}" wx:key="index">
|
||||
<navigator wx:if="{{ !item.isad }}" url="/pages/show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<house-item item="{{ item }}"></house-item>
|
||||
</navigator>
|
||||
<ads isList="true" isrestofworld="true" wx:if="{{ item.isad && !item.banner }}" data-index="{{ index }}" bindclickAD="clickAD" bindcloseAD="closeAD" item="{{ item }}"></ads>
|
||||
<banner-ad wx:if="{{ item.isad && item.banner }}" index="{{ index }}" item="{{ item }}"></banner-ad>
|
||||
</block>
|
||||
<view class="list">
|
||||
<block wx:for="{{ list }}" wx:key="index">
|
||||
<navigator wx:if="{{ !item.isad }}" url="/pages/show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<house-item item="{{ item }}"></house-item>
|
||||
</navigator>
|
||||
<ads isList="true" isrestofworld="true" wx:if="{{ item.isad && !item.banner }}" data-index="{{ index }}" bindclickAD="clickAD" bindcloseAD="closeAD" item="{{ item }}"></ads>
|
||||
<banner-ad wx:if="{{ item.isad && item.banner }}" index="{{ index }}" item="{{ item }}"></banner-ad>
|
||||
</block>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
<block wx:if="{{ list.length==0 && !loading }}">
|
||||
<view class='nocontent'>
|
||||
<image src="/img/file.png" class='file'></image>
|
||||
暂无数据
|
||||
</view>
|
||||
</block>
|
||||
<view class="loading" wx:if="{{ loading }}">
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
</view>
|
||||
|
||||
<!-- 求房源 按钮 -->
|
||||
<view class="ask-housing-btn flexcenter" bindtap="goAskHousing">
|
||||
<image class="ask-housing-btn-icon" mode="widthFix" src="/img/plus-3.png"></image>
|
||||
求房源
|
||||
</view>
|
||||
<block wx:if="{{ list.length==0 && !loading }}">
|
||||
<view class='nocontent'>
|
||||
<image src="/img/file.png" class='file'></image>
|
||||
暂无数据
|
||||
</view>
|
||||
</block>
|
||||
<view class="loading" wx:if="{{ loading }}">
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
</view>
|
||||
|
||||
<!-- 求房源 按钮 -->
|
||||
<view class="ask-housing-btn flexcenter" bindtap="goAskHousing">
|
||||
<image class="ask-housing-btn-icon" mode="widthFix" src="/img/plus-3.png"></image>
|
||||
求房源
|
||||
</view>
|
||||
|
||||
<block wx:if="{{ isAuthorization==1 }}">
|
||||
<go-login bindislogin="islogin" bindauthorizationSuccess="authorizationSuccess"></go-login>
|
||||
</block>
|
||||
</view>
|
@ -30,7 +30,7 @@ Page({
|
||||
avatarUrl
|
||||
})
|
||||
|
||||
miucms.request("https://passport.gter.net/api/user/uploadAvatar", {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/user/uploadAvatar`, {
|
||||
data: avatarUrl
|
||||
}).then(res => {
|
||||
let data = res.data
|
||||
@ -38,9 +38,13 @@ Page({
|
||||
app.globalData['setSate'] = true
|
||||
})
|
||||
},
|
||||
|
||||
submitNickname() {
|
||||
miucms.request("https://passport.gter.net/api/user/updateNickname", {
|
||||
nickname: this.data.nickname
|
||||
let nickname = this.data.nickname
|
||||
nickname = nickname.replaceAll(" ", "")
|
||||
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/user/updateNickname`, {
|
||||
nickname
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
let data = res.data
|
||||
@ -67,7 +71,7 @@ Page({
|
||||
delta: 1,
|
||||
fail: function () {
|
||||
wx.navigateTo({
|
||||
url: '/pages/more_offer/index/index',
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -82,6 +86,11 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
nicknameinput1(e) {
|
||||
console.log(e.detail.pass);
|
||||
console.log("ff");
|
||||
},
|
||||
|
||||
submit() {
|
||||
|
||||
},
|
||||
@ -129,10 +138,4 @@ Page({
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
@ -13,7 +13,8 @@
|
||||
<view class="item">
|
||||
<view class="left">昵称</view>
|
||||
<view class="right">
|
||||
<input type="nickname" class="nickname" model:value="{{nickname}}" maxlength="50" />
|
||||
<!-- <input type="nickname" class="nickname" model:value="{{nickname}}" maxlength="50" /> -->
|
||||
<input type="nickname" class="nickname" value="{{nickname}}" maxlength="50" bindinput="nicknameinput" bindnicknamereview="nicknameinput1" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<image lazy-load="{{ true }}" mode="widthFix" src="{{ item.image }}" class="img"></image>
|
||||
<view class="r">
|
||||
<view class="title">
|
||||
<image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image>
|
||||
<!-- <image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image> -->
|
||||
<text>{{ item.subject }}</text>
|
||||
|
||||
</view>
|
||||
@ -20,7 +20,7 @@
|
||||
</view>
|
||||
<view class="no-pic" wx:if="{{ !item.image }}">
|
||||
<view class="title">
|
||||
<image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image>
|
||||
<!-- <image wx:if="{{ item.verified==1 }}" class="ischeck" src="/img/ischeck.png"></image> -->
|
||||
<text>{{ item.subject }}</text>
|
||||
|
||||
</view>
|
||||
|
@ -400,7 +400,7 @@
|
||||
{{ info.subject }}
|
||||
<image class='isvideo' wx:if="{{ info.video&& info.video.length>0 }}" src="../../img/videologo.png" />
|
||||
<image class='img' wx:if="{{ info.images&& info.images.length>0 }}" src="../../img/pics.jpg" />
|
||||
<image class='ischecked' wx:if="{{ info.verified==1 }}" src="../../img/ischecktext.png" />
|
||||
<!-- <image class='ischecked' wx:if="{{ info.verified==1 }}" src="../../img/ischecktext.png" /> -->
|
||||
</view>
|
||||
<view class='user-info'>
|
||||
<image src="{{ info.avatar }}"></image> {{ info.author }}
|
||||
|
@ -1834,5 +1834,6 @@ map .clickmap {
|
||||
display: block;
|
||||
width: calc(100vw - 60rpx);
|
||||
margin: 60rpx auto 0;
|
||||
padding-bottom: 60rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
1663
pages/user/user.js
1663
pages/user/user.js
File diff suppressed because it is too large
Load Diff
@ -1,325 +1,335 @@
|
||||
<import src="../common/common.wxml" />
|
||||
<import src="../../wxParse/wxParse.wxml" />
|
||||
<view class="container" wx:if="{{ !loding }}">
|
||||
<header-nav inner-text="Some text" isIndexPage="index" isMessageCount="{{ true }}" unreadMessages="{{ unreadMessages }}" bindunreadMessagesalter="unreadMessagesalter" bgcolor="transparent" position="{{ 'absolute' }}">
|
||||
<!-- <view>寄托港校租房</view> -->
|
||||
<view>{{ topTitle }}</view>
|
||||
</header-nav>
|
||||
<header-nav inner-text="Some text" isIndexPage="index" isMessageCount="{{ true }}" unreadMessages="{{ unreadMessages }}" bindunreadMessagesalter="unreadMessagesalter" bgcolor="transparent" position="{{ 'absolute' }}">
|
||||
<!-- <view>寄托港校租房</view> -->
|
||||
<view>{{ topTitle }}</view>
|
||||
</header-nav>
|
||||
|
||||
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
||||
<block wx:if="{{ isAuthorization==1 }}">
|
||||
<go-login bindislogin="islogin" bindauthorizationSuccess="authorizationSuccess"></go-login>
|
||||
</block>
|
||||
<view wx:for="{{ arr }}" wx:key="index">
|
||||
<view wx:for="{{ item }}" wx:key="i" wx:for-item="it" wx:for-index="i"></view>
|
||||
</view>
|
||||
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
||||
<block wx:if="{{ isAuthorization==1 }}">
|
||||
<go-login bindislogin="islogin" bindauthorizationSuccess="authorizationSuccess"></go-login>
|
||||
</block>
|
||||
<view wx:for="{{ arr }}" wx:key="index">
|
||||
<view wx:for="{{ item }}" wx:key="i" wx:for-item="it" wx:for-index="i"></view>
|
||||
</view>
|
||||
|
||||
<block wx:if="{{ false }}">
|
||||
<view class="header-new" style="margin-top: -{{ screen_data.totalTopHeight }}px;">
|
||||
<view class="header-message flexacenter">
|
||||
<view class="header-user-message flexacenter">
|
||||
<view class="header-user-avatar">
|
||||
<image class="header-user-avatar-icon" src="{{ user.avatar }}"></image>
|
||||
</view>
|
||||
<view class="header-user-info flexflex">
|
||||
<view class="header-user-name flexacenter">Ada.Wu</view>
|
||||
<view class="header-user-uid flexacenter">UID:56789</view>
|
||||
</view>
|
||||
</view>
|
||||
<button open-type="contact" class='contact' bindcontact="bindcontact">
|
||||
<image class="contact-icon" src="/img/u1872.png" mode="widthFix"></image>
|
||||
反馈
|
||||
</button>
|
||||
</view>
|
||||
<view class="header-btn flexacenter">
|
||||
<view class="header-btn-item flex1 flexcenter">
|
||||
<view class="header-btn-box message-reminding flexcenter">
|
||||
<image class="header-btn-icon" mode="widthFix" src="/img/message-reminding.svg"></image>
|
||||
</view>
|
||||
<view class="header-btn-text">消息提醒</view>
|
||||
</view>
|
||||
<view class="header-btn-item flex1 flexcenter">
|
||||
<view class="header-btn-box issue-housing flexcenter">
|
||||
<image class="header-btn-icon" mode="widthFix" src="/img/plus-3.png"></image>
|
||||
</view>
|
||||
<view class="header-btn-text">发布房源</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block wx:if="{{ false }}">
|
||||
<view class="header-new" style="margin-top: -{{ screen_data.totalTopHeight }}px;">
|
||||
<view class="header-message flexacenter">
|
||||
<view class="header-user-message flexacenter">
|
||||
<view class="header-user-avatar">
|
||||
<image class="header-user-avatar-icon" src="{{ user.avatar }}"></image>
|
||||
</view>
|
||||
<view class="header-user-info flexflex">
|
||||
<view class="header-user-name flexacenter">Ada.Wu</view>
|
||||
<view class="header-user-uid flexacenter">UID:56789</view>
|
||||
</view>
|
||||
</view>
|
||||
<button open-type="contact" class='contact' bindcontact="bindcontact">
|
||||
<image class="contact-icon" src="/img/u1872.png" mode="widthFix"></image>
|
||||
反馈
|
||||
</button>
|
||||
</view>
|
||||
<view class="header-btn flexacenter">
|
||||
<view class="header-btn-item flex1 flexcenter">
|
||||
<view class="header-btn-box message-reminding flexcenter">
|
||||
<image class="header-btn-icon" mode="widthFix" src="/img/message-reminding.svg"></image>
|
||||
</view>
|
||||
<view class="header-btn-text">消息提醒</view>
|
||||
</view>
|
||||
<view class="header-btn-item flex1 flexcenter">
|
||||
<view class="header-btn-box issue-housing flexcenter">
|
||||
<image class="header-btn-icon" mode="widthFix" src="/img/plus-3.png"></image>
|
||||
</view>
|
||||
<view class="header-btn-text">发布房源</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="round1"></view>
|
||||
<view class="round2"></view>
|
||||
<view class="round1"></view>
|
||||
<view class="round2"></view>
|
||||
|
||||
<view class="list-new">
|
||||
<view class="list-new-top flexacenter">
|
||||
<view class="list-new-top-bg"></view>
|
||||
<view class="list-new-top-item selected flexcenter">
|
||||
<image class="list-new-top-icon" src="/img/user-collect-selected.png"></image>
|
||||
收藏
|
||||
</view>
|
||||
<view class="list-new-top-item flexcenter">
|
||||
<image class="list-new-top-icon" src="/img/user-issue-unselected.svg"></image>
|
||||
发布
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-new">
|
||||
<view class="list-new-top flexacenter">
|
||||
<view class="list-new-top-bg"></view>
|
||||
<view class="list-new-top-item selected flexcenter">
|
||||
<image class="list-new-top-icon" src="/img/user-collect-selected.png"></image>
|
||||
收藏
|
||||
</view>
|
||||
<view class="list-new-top-item flexcenter">
|
||||
<image class="list-new-top-icon" src="/img/user-issue-unselected.svg"></image>
|
||||
发布
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ true }}" class="list-new-content list-new-content-collect">
|
||||
<view class="list-new-content-total flexacenter">共收藏 <view class="list-new-content-total-num">8</view> 个房源</view>
|
||||
<view class="list-new-content-list">
|
||||
<view class="list-new-content-item" wx:for="{{ 3 }}">
|
||||
<common-list></common-list>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{ true }}" class="list-new-content list-new-content-collect">
|
||||
<view class="list-new-content-total flexacenter">共收藏 <view class="list-new-content-total-num">8</view> 个房源</view>
|
||||
<view class="list-new-content-list">
|
||||
<view class="list-new-content-item" wx:for="{{ 3 }}">
|
||||
<common-list></common-list>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ false }}" class="list-new-content list-new-content-issue">
|
||||
</view>
|
||||
<view wx:if="{{ false }}" class="list-new-content list-new-content-issue">
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<view class='header'>
|
||||
<view class="user-box">
|
||||
<view class="info">
|
||||
<image class="info-avatar" src='{{ user.avatar }}'></image>
|
||||
<view class="user-info">
|
||||
<view class="nickname">
|
||||
{{ user.nickname ||'游客' }} <image wx:if="{{ user.groupid == 19 }}" class="authentication-icon" mode="widthFix" src="/img/u30.png"></image>
|
||||
<view class='header'>
|
||||
<view class="user-box">
|
||||
<view class="info">
|
||||
<view class="" style="position: relative;" bindtap="goSetAvatarNickname">
|
||||
<image class="info-avatar" src='{{ user.avatar }}'></image>
|
||||
<view class="info-camera flexcenter">
|
||||
<image class="info-camera-icon" mode="widthFix" src="/img/camera.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="user-uid">UID:{{ user.uid }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="user-info">
|
||||
<view class="nickname" bindtap="goSetAvatarNickname">
|
||||
{{ user.nickname || '微信用户' }} <image wx:if="{{ user.groupid == 19 }}" class="authentication-icon" mode="widthFix" src="/img/u30.png"></image>
|
||||
</view>
|
||||
<view class="user-uid">UID:{{ user.uid }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<button open-type="contact" class='contact' bindcontact="bindcontact">
|
||||
<image class="contact-icon" src="/img/u1872.png" mode="widthFix"></image>
|
||||
反馈
|
||||
</button>
|
||||
</view>
|
||||
<button open-type="contact" class='contact' bindcontact="bindcontact">
|
||||
<image class="contact-icon" src="/img/u1872.png" mode="widthFix"></image>
|
||||
反馈
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<!-- 认证 -->
|
||||
<image wx:if="{{ landlordcertification }}" class="approve" bindtap="goApprove" mode="widthFix" src="/img/approve.png"></image>
|
||||
</view>
|
||||
<!-- 认证 -->
|
||||
<image wx:if="{{ landlordcertification }}" class="approve" bindtap="goApprove" mode="widthFix" src="/img/approve.png"></image>
|
||||
</view>
|
||||
|
||||
<!-- tab -->
|
||||
<view class='tab-box'>
|
||||
<view class='{{tab=="fav" ?"tab active" :"tab"}}' bindtap='change_tab' data-tab='fav'>
|
||||
<block>
|
||||
<image src='/img/collect.jpg' class='star' wx:if="{{ tab=='fav' }}"></image>
|
||||
<image src='/img/collectc.jpg' class='star' wx:if="{{ tab!='fav' }}"></image>
|
||||
</block>
|
||||
收藏
|
||||
</view>
|
||||
<view class='{{tab=="publish" ?"tab active" :"tab"}}' bindtap='change_tab' data-tab='publish'>
|
||||
<block>
|
||||
<image src='/img/publishblue.jpg' class='publish' wx:if="{{ tab=='publish' }}"></image>
|
||||
<image src='/img/publishc.jpg' class='publish' wx:if="{{ tab!='publish' }}"></image>
|
||||
</block>
|
||||
发布
|
||||
</view>
|
||||
</view>
|
||||
<!-- tab -->
|
||||
<view class='tab-box'>
|
||||
<view class='{{tab=="fav" ?"tab active" :"tab"}}' bindtap='change_tab' data-tab='fav'>
|
||||
<block>
|
||||
<image src='/img/collect.jpg' class='star' wx:if="{{ tab=='fav' }}"></image>
|
||||
<image src='/img/collectc.jpg' class='star' wx:if="{{ tab!='fav' }}"></image>
|
||||
</block>
|
||||
收藏
|
||||
</view>
|
||||
<view class='{{tab=="publish" ?"tab active" :"tab"}}' bindtap='change_tab' data-tab='publish'>
|
||||
<block>
|
||||
<image src='/img/publishblue.jpg' class='publish' wx:if="{{ tab=='publish' }}"></image>
|
||||
<image src='/img/publishc.jpg' class='publish' wx:if="{{ tab!='publish' }}"></image>
|
||||
</block>
|
||||
发布
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!--list -->
|
||||
<view class='list' wx:if="{{ tab=='fav' }}">
|
||||
<view class='item' wx:for="{{ fav_list }}" wx:key="index">
|
||||
<template is="list" wx:if="{{ item.status !=2 }}" data="{{ item:item }}" />
|
||||
<view class='info-list' wx:if="{{ item.status==2 }}" bindtap='have_rent_info'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<!--list -->
|
||||
<view class='list' wx:if="{{ tab=='fav' }}">
|
||||
<view class='item' wx:for="{{ fav_list }}" wx:key="index">
|
||||
<template is="list" wx:if="{{ item.status !=2 }}" data="{{ item:item }}" />
|
||||
<view class='info-list' wx:if="{{ item.status==2 }}" bindtap='have_rent_info'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{
|
||||
item.subject
|
||||
}}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
<view class='i' wx:if="{{ item.location }}">{{ item.location }}</view>
|
||||
<view class='i' wx:if="{{ item.type }}">{{ item.type }}</view>
|
||||
<view class='i' wx:if="{{ item.acreage }}">{{ item.acreage }}平方{{ item.cityid == 1 ? '呎' :'米'}}</view>
|
||||
<view class='i' wx:if="{{ item.gender }}">{{ item.gender }}</view>
|
||||
<view class='i' wx:if="{{ item.leaseterm }}">{{ item.leaseterm ==1 ?'长租':(item.leaseterm ==2 ?'短租' :'')}}</view>
|
||||
</view>
|
||||
<view class='footer'>
|
||||
<view>{{ item.currency }}
|
||||
<view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }}
|
||||
</view>
|
||||
<view>
|
||||
<view class='agent' wx:if="{{ item.intermediary != 2 && item.intermediary != 5 }}">{{ item.intermediary
|
||||
==1?'中介' :(item.publisheridentity ==3 ?"房东" : '有房招室友') }}</view>
|
||||
</view>
|
||||
<view class='footer-right'>
|
||||
<view class='see' wx:if="{{item.count_view >0 }}">
|
||||
<image src="../../img/eye.png" />{{ item.count_view }}
|
||||
</view>
|
||||
<view class='stars' wx:if="{{item.count_fav >0 }}">
|
||||
<image src="../../img/star.png" />{{ item.count_fav }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='publish_tips' wx:if="{{ item.status==0 }}">
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view class='is_rent_btn' wx:if="{{ item.status==2 }}">已出租</view>
|
||||
<view class='table'>
|
||||
<view class='cell' bindtap='add_to_fav' data-index="{{ index }}" data-uniqid="{{ item.uniqid }}" data-token="{{ item.token }}">
|
||||
<image class='star' src="../../img/star.png" />取消收藏
|
||||
<!-- <image class='star' src="../../img/staro.png" wx:if="{{ !item.isfav }}"/> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{
|
||||
item.subject
|
||||
}}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
<view class='i' wx:if="{{ item.location }}">{{ item.location }}</view>
|
||||
<view class='i' wx:if="{{ item.type }}">{{ item.type }}</view>
|
||||
<view class='i' wx:if="{{ item.acreage }}">{{ item.acreage }}平方{{ item.cityid == 1 ? '呎' :'米'}}</view>
|
||||
<view class='i' wx:if="{{ item.gender }}">{{ item.gender }}</view>
|
||||
<view class='i' wx:if="{{ item.leaseterm }}">{{ item.leaseterm ==1 ?'长租':(item.leaseterm ==2 ?'短租' :'')}}</view>
|
||||
</view>
|
||||
<view class='footer'>
|
||||
<view>{{ item.currency }}
|
||||
<view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }}
|
||||
</view>
|
||||
<view>
|
||||
<view class='agent' wx:if="{{ item.intermediary != 2 && item.intermediary != 5 }}">{{ item.intermediary
|
||||
==1?'中介' :(item.publisheridentity ==3 ?"房东" : '有房招室友') }}</view>
|
||||
</view>
|
||||
<view class='footer-right'>
|
||||
<view class='see' wx:if="{{item.count_view >0 }}">
|
||||
<image src="../../img/eye.png" />{{ item.count_view }}
|
||||
</view>
|
||||
<view class='stars' wx:if="{{item.count_fav >0 }}">
|
||||
<image src="../../img/star.png" />{{ item.count_fav }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='publish_tips' wx:if="{{ item.status==0 }}">
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view class='is_rent_btn' wx:if="{{ item.status==2 }}">已出租</view>
|
||||
<view class='table'>
|
||||
<view class='cell' bindtap='add_to_fav' data-index="{{ index }}" data-uniqid="{{ item.uniqid }}" data-token="{{ item.token }}">
|
||||
<image class='star' src="../../img/star.png" />取消收藏
|
||||
<!-- <image class='star' src="../../img/staro.png" wx:if="{{ !item.isfav }}"/> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="whether" wx:if="{{ fav_list.length != 0 && fav_page.next_page == 0}}">
|
||||
到底了
|
||||
</view>
|
||||
<view wx:if="{{ fav_list.length==0 && !loading }}" class='nocontent'>
|
||||
<image src="../../img/file.png" class='file'></image>
|
||||
暂无收藏
|
||||
</view>
|
||||
</view>
|
||||
<!-- 发布的状态码不要删除 -->
|
||||
<!-- // 1正常,0未发布,2关闭,-3被投诉下架,-1用户删除,-2论坛删帖,-4待审,-5到期自动下架 -->
|
||||
<view class='list' wx:if="{{ tab=='publish' }}">
|
||||
<view class='item' wx:for="{{ publish_list }}" wx:key="index">
|
||||
<view wx:if="{{ item.status==-4 }}" class='info-list'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<view class="whether" wx:if="{{ fav_list.length != 0 && fav_page.next_page == 0}}">
|
||||
到底了
|
||||
</view>
|
||||
<view wx:if="{{ fav_list.length==0 && !loading }}" class='nocontent'>
|
||||
<image src="../../img/file.png" class='file'></image>
|
||||
暂无收藏
|
||||
</view>
|
||||
</view>
|
||||
<!-- 发布的状态码不要删除 -->
|
||||
<!-- // 1正常,0未发布,2关闭,-3被投诉下架,-1用户删除,-2论坛删帖,-4待审,-5到期自动下架 -->
|
||||
<view class='list' wx:if="{{ tab=='publish' }}">
|
||||
<view class='item' wx:for="{{ publish_list }}" wx:key="index">
|
||||
<view wx:if="{{ item.status==-4 }}" class='info-list'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
{{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='publish_tips'>
|
||||
<image src="../../img/u1385.png"></image>该信息正在审核中
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status==-3 }}" class='info-list'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
{{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='publish_tips'>
|
||||
<image src="../../img/u1385.png"></image>该信息正在审核中
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status==-3 }}" class='info-list'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
|
||||
<view class='publish_tips'>
|
||||
<image src="../../img/tips.png"></image>多人投诉,已下架
|
||||
</view>
|
||||
<view class='publish_tips'>
|
||||
<image src="../../img/tips.png"></image>多人投诉,已下架
|
||||
</view>
|
||||
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status==0 }}" class='info-list' url="../show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status==0 }}" class='info-list' url="../show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
<block wx:if="{{ item.subject }}">{{ item.subject }}</block>
|
||||
<text wx:else style="color: #999; margin-right: 10rpx;">未填写标题</text>
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
<block wx:if="{{ item.subject }}">{{ item.subject }}</block>
|
||||
<text wx:else style="color: #999; margin-right: 10rpx;">未填写标题</text>
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
|
||||
<view class='publish_tips'>
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
<view class='publish_tips'>
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status== -5 }}" class='info-list' url="../show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status== -5 }}" class='info-list' url="../show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
<block wx:if="{{ item.subject }}">{{ item.subject }}</block>
|
||||
<text wx:else style="color: #999; margin-right: 10rpx;">未填写标题</text>
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
<block wx:if="{{ item.subject }}">{{ item.subject }}</block>
|
||||
<text wx:else style="color: #999; margin-right: 10rpx;">未填写标题</text>
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
|
||||
<view class='publish_tips'>
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 超出发布期限,已自动下架
|
||||
</view>
|
||||
<view class='publish_tips'>
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 超出发布期限,已自动下架
|
||||
</view>
|
||||
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<template is="list" wx:if="{{ item.status==1 }}" data="{{ item:item }}" />
|
||||
<view class='info-list' wx:if="{{ item.status==2 }}" bindtap='have_rent_info'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<template is="list" wx:if="{{ item.status==1 }}" data="{{ item:item }}" />
|
||||
<view class='info-list' wx:if="{{ item.status==2 }}" bindtap='have_rent_info'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<view class="close-btn" wx:if="{{ item.status==2}}">已下架</view>
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
<view class='i' wx:if="{{ item.location }}">{{ item.location }}</view>
|
||||
<view class='i' wx:if="{{ item.type }}">{{ item.type }}</view>
|
||||
<view class='i' wx:if="{{ item.acreage }}">{{ item.acreage }}平方{{ item.cityid == 1 ? '呎' :'米'}}</view>
|
||||
<view class='i' wx:if="{{ item.gender }}">{{ item.gender }}</view>
|
||||
<view class='i' wx:if="{{ item.leaseterm }}">{{ item.leaseterm ==1 ?'长租':(item.leaseterm ==2 ?'短租' :'')}}</view>
|
||||
</view>
|
||||
<view class='footer'>
|
||||
<view>{{ item.currency }}
|
||||
<!-- <view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }} -->
|
||||
<view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }}
|
||||
</view>
|
||||
<view class='agent' wx:if="{{ item.intermediary_text }}">{{ item.intermediary_text }}</view>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<view class="close-btn" wx:if="{{ item.status==2}}">已下架</view>
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
<view class='i' wx:if="{{ item.location }}">{{ item.location }}</view>
|
||||
<view class='i' wx:if="{{ item.type }}">{{ item.type }}</view>
|
||||
<view class='i' wx:if="{{ item.acreage }}">{{ item.acreage }}平方{{ item.cityid == 1 ? '呎' :'米'}}</view>
|
||||
<view class='i' wx:if="{{ item.gender }}">{{ item.gender }}</view>
|
||||
<view class='i' wx:if="{{ item.leaseterm }}">{{ item.leaseterm ==1 ?'长租':(item.leaseterm ==2 ?'短租' :'')}}</view>
|
||||
</view>
|
||||
<view class='footer'>
|
||||
<view>{{ item.currency }}
|
||||
<!-- <view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }} -->
|
||||
<view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }}
|
||||
</view>
|
||||
<view class='agent' wx:if="{{ item.intermediary_text }}">{{ item.intermediary_text }}</view>
|
||||
|
||||
<!-- <view wx:if="{{ item.intermediary != 2 && item.intermediary != 5 }}">
|
||||
<!-- <view wx:if="{{ item.intermediary != 2 && item.intermediary != 5 }}">
|
||||
<view class='agent'>{{ item.intermediary ==1?'中介' :(item.publisheridentity ==3 ?"房东" : '有房招室友') }}</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class='publish_tips' wx:if="{{ item.status==0 }}">
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view class="house-id">房源ID:{{ item.id }}</view>
|
||||
<view class="operation" wx:if="{{ item.status !=-3 }}">
|
||||
<block wx:if="{{ item.status != -4 }}">
|
||||
<view class="operation-item" wx:if="{{ item.status != 4}}" bindtap='del_item' data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">删除</view>
|
||||
</view>
|
||||
<view class='publish_tips' wx:if="{{ item.status==0 }}">
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view class="house-id">房源ID:{{ item.id }}</view>
|
||||
<view class="operation" wx:if="{{ item.status !=-3 }}">
|
||||
<block wx:if="{{ item.status != -4 }}">
|
||||
<view class="operation-item" wx:if="{{ item.status != 4}}" bindtap='del_item' data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">删除</view>
|
||||
|
||||
<navigator wx:if="{{ item.intermediary == 6 }}" class="operation-item" url="../askHousing/askHousing?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</navigator>
|
||||
<navigator wx:else class="operation-item" url="../edit/edit?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</navigator>
|
||||
<view class="operation-item" wx:if="{{ item.status==1}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">下架</view>
|
||||
<view class="operation-item" wx:if="{{ item.status==2}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">上架</view>
|
||||
<view class="operation-item blue" wx:if="{{ item.status == 1 && item.isding == 0 }}" bindtap="bindtopUp" data-isding="{{ item.isding }}" data-index="{{ index }}" data-token="{{ item.token }}">顶上去</view>
|
||||
<view class="operation-item thinblue" bindtap="bindtopUp" data-isding="{{ item.isding }}" data-index="{{ index }}" data-token="{{ item.token }}" wx:if="{{ item.status == 1 && item.isding == 1 }}">已顶</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="operation-item" bindtap="cancelAudit" data-index="{{index}}" data-token="{{ item.appeal.token }}">撤销审核</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- <navigator wx:if="{{ item.intermediary == 6 }}" class="operation-item" url="../askHousing/askHousing?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</navigator>
|
||||
<navigator wx:else class="operation-item" url="../edit/edit?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</navigator>
|
||||
<view class="operation-item" wx:if="{{ item.status==1}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">下架</view> -->
|
||||
<view wx:if="{{ item.intermediary == 6 }}" bindtap="judgeEditSkip" class="operation-item" data-url="../askHousing/askHousing?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</view>
|
||||
<view wx:else class="operation-item" bindtap="judgeEditSkip" data-url="../edit/edit?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</view>
|
||||
<view class="operation-item" wx:if="{{ item.status==1}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">下架</view>
|
||||
<view class="operation-item" wx:if="{{ item.status==2}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">上架</view>
|
||||
<view class="operation-item blue" wx:if="{{ item.status == 1 && item.isding == 0 }}" bindtap="bindtopUp" data-isding="{{ item.isding }}" data-index="{{ index }}" data-token="{{ item.token }}">顶上去</view>
|
||||
<view class="operation-item thinblue" bindtap="bindtopUp" data-isding="{{ item.isding }}" data-index="{{ index }}" data-token="{{ item.token }}" wx:if="{{ item.status == 1 && item.isding == 1 }}">已顶</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="operation-item" bindtap="cancelAudit" data-index="{{index}}" data-token="{{ item.appeal.token }}">撤销审核</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<!-- <view class='table' wx:if="{{ item.status !=-3 }}">
|
||||
<!-- <view class='table' wx:if="{{ item.status !=-3 }}">
|
||||
<navigator class='cell'
|
||||
url="../edit/edit?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
<image src="../../img/pengrey.png" class='pengrey'></image>
|
||||
@ -343,67 +353,67 @@
|
||||
删除
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="whether" wx:if="{{ publish_list.length != 0 && publish_page.next_page == 0 }}">
|
||||
到底了
|
||||
</view>
|
||||
<view wx:if="{{ publish_list.length==0 && !loading }}" class='nocontent'>
|
||||
<image src="../../img/file.png" class='file'></image>
|
||||
暂无发布
|
||||
</view>
|
||||
</view>
|
||||
<view class="whether" wx:if="{{ publish_list.length != 0 && publish_page.next_page == 0 }}">
|
||||
到底了
|
||||
</view>
|
||||
<view wx:if="{{ publish_list.length==0 && !loading }}" class='nocontent'>
|
||||
<image src="../../img/file.png" class='file'></image>
|
||||
暂无发布
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="loading" wx:if="{{ loading }}">
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="loading" wx:if="{{ loading }}">
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
</view>
|
||||
|
||||
<block wx:if="{{ chage_status_obj.show }}">
|
||||
<view class='chage-status-box'>
|
||||
<view class='black' bindtap='close_alert'></view>
|
||||
<view class='box'>
|
||||
<view class='tips'>{{chage_status_obj.status==2 ? '确定要重新发布该房源信息吗?' :'请关闭已出租或已失效的房源信息'}}</view>
|
||||
<view class='btn-box'>
|
||||
<view bindtap='change_status'>{{chage_status_obj.status==2 ?'确定' :'关闭房源'}}</view>
|
||||
<view class='cle' bindtap='close_alert'>取消</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{ chage_status_obj.show }}">
|
||||
<view class='chage-status-box'>
|
||||
<view class='black' bindtap='close_alert'></view>
|
||||
<view class='box'>
|
||||
<view class='tips'>{{chage_status_obj.status==2 ? '确定要重新发布该房源信息吗?' :'请关闭已出租或已失效的房源信息'}}</view>
|
||||
<view class='btn-box'>
|
||||
<view bindtap='change_status'>{{chage_status_obj.status==2 ?'确定' :'关闭房源'}}</view>
|
||||
<view class='cle' bindtap='close_alert'>取消</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 顶上去升起弹出框 -->
|
||||
<view class="raise-popup {{ raisePopupState ? 'raisePopup' : ''}}">
|
||||
<!-- <image class="raise-popup-icon" src="/img/u458.svg" mode="heightFix" wx:if="{{ raisePopupMessage != '今天已顶过啦,明天再来吧!'}}"></image> <text>{{ raisePopupMessage }}</text> -->
|
||||
<image class="raise-popup-icon" src="/img/u458.svg" mode="heightFix" wx:if="{{ isdingState != 1}}"></image> <text>{{ raisePopupMessage }}</text>
|
||||
</view>
|
||||
<!-- 顶上去升起弹出框 -->
|
||||
<view class="raise-popup {{ raisePopupState ? 'raisePopup' : ''}}">
|
||||
<!-- <image class="raise-popup-icon" src="/img/u458.svg" mode="heightFix" wx:if="{{ raisePopupMessage != '今天已顶过啦,明天再来吧!'}}"></image> <text>{{ raisePopupMessage }}</text> -->
|
||||
<image class="raise-popup-icon" src="/img/u458.svg" mode="heightFix" wx:if="{{ isdingState != 1}}"></image> <text>{{ raisePopupMessage }}</text>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<view style="position: relative;z-index: 1001;">
|
||||
<announcement-popup interface='my' init="{{ initState }}"></announcement-popup>
|
||||
</view>
|
||||
<view style="position: relative;z-index: 1001;">
|
||||
<announcement-popup interface='my' init="{{ initState }}"></announcement-popup>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 触发规则1时 重复发布 -->
|
||||
<block wx:if="{{ triggerRules == 1 }}">
|
||||
<template is="repeatedRelease" data="{{ pages:'user' }}"></template>
|
||||
<template is="repeatedRelease" data="{{ pages:'user' }}"></template>
|
||||
</block>
|
||||
<!-- 触发规则2时 提交失败 -->
|
||||
<block wx:elif="{{ triggerRules == 2 }}">
|
||||
<template is="submitFailuretwo" data="{{ isnodraft:true}}"></template>
|
||||
<template is="submitFailuretwo" data="{{ isnodraft:true}}"></template>
|
||||
</block>
|
||||
<!-- 触发规则3时 提交失败 -->
|
||||
<block wx:elif="{{ triggerRules == 3 }}">
|
||||
<template is="submitFailurethree" data="{{ isnodraft:true}}"></template>
|
||||
<template is="submitFailurethree" data="{{ isnodraft:true}}"></template>
|
||||
</block>
|
||||
<!-- 触发规则4时 你的微信号有误 -->
|
||||
<block wx:elif="{{ triggerRules == 4 }}">
|
||||
<template is="wrong-micro-signal"></template>
|
||||
<template is="wrong-micro-signal"></template>
|
||||
</block>
|
||||
|
||||
<fix-footer user="1" unreadMessages="{{ unreadMessages }}" bottomLift="{{ bottomLift }}"></fix-footer>
|
1142
pages/user/user.wxss
1142
pages/user/user.wxss
File diff suppressed because it is too large
Load Diff
@ -38,11 +38,12 @@
|
||||
"showES6CompileOption": false,
|
||||
"useCompilerPlugins": false,
|
||||
"useStaticServer": true,
|
||||
"ignoreUploadUnusedFiles": true
|
||||
"ignoreUploadUnusedFiles": true,
|
||||
"condition": false
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.31.1",
|
||||
"appid": "wxcf0a799771cf2ae6",
|
||||
"libVersion": "2.32.0",
|
||||
"appid": "wx9c68fbf7886ea9c4",
|
||||
"projectname": "%E5%AF%84%E6%89%98%E7%A7%9F%E6%88%BF",
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
|
@ -1,31 +1,61 @@
|
||||
// template/fixFooter/fixFooter.js
|
||||
let app = getApp()
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
user: Number,
|
||||
unreadMessages: {
|
||||
type: Number,
|
||||
value:0
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
user: Number,
|
||||
unreadMessages: {
|
||||
type: Number,
|
||||
value: 0
|
||||
},
|
||||
bottomLift: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
bottomLift: {
|
||||
type: Number
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
// unreadMessages: 0
|
||||
isAuthorization: 0,
|
||||
},
|
||||
|
||||
lifetimes: {},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
// 处理发布房源
|
||||
handleIssue() {
|
||||
let user = app.globalData['user']
|
||||
let miniProgram = app.globalData['miniProgram']
|
||||
|
||||
if (user['uid']) {
|
||||
if (!user['nickname']) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/setAvatarNickname/setAvatarNickname',
|
||||
})
|
||||
return
|
||||
}
|
||||
if (miniProgram == 'gx') {
|
||||
wx.navigateToMiniProgram({
|
||||
appId: "wx9c68fbf7886ea9c4",
|
||||
path: "/pages/edit/edit"
|
||||
})
|
||||
} else {
|
||||
wx.navigateTo({
|
||||
url: '/pages/edit/edit',
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
isAuthorization: 1
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
// unreadMessages: 0
|
||||
},
|
||||
|
||||
lifetimes: {},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {}
|
||||
})
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"go-login": "/template/goLogin/goLogin"
|
||||
}
|
||||
}
|
@ -1,55 +1,40 @@
|
||||
<view class='fixfooter' style="padding-bottom:{{ bottomLift }}rpx; height: {{ 102 + bottomLift}}rpx;">
|
||||
<navigator class='index view' open-type='reLaunch' url='/pages/index/index' hover-class="hover">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form index view'>
|
||||
<image mode="widthFix" src="/img/{{user==1 ? 'index-c.svg' : 'index-3.png' }}" />
|
||||
<view style="font-size: 22.5rpx; color: {{ user == 1 ? '#aaa' : '#000' }};">首页</view>
|
||||
<navigator class='index view' open-type='reLaunch' url='/pages/index/index' hover-class="hover">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form index view'>
|
||||
<image mode="widthFix" src="/img/{{user==1 ? 'index-c.svg' : 'index-3.png' }}" />
|
||||
<view style="font-size: 22.5rpx; color: {{ user == 1 ? '#aaa' : '#000' }};">首页</view>
|
||||
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</navigator>
|
||||
<navigator class='plus view' 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">
|
||||
<block wx:if="{{ false }}">
|
||||
<view class='roll'></view>
|
||||
<view class='c'>
|
||||
<!-- <view class='round1'>
|
||||
<image class='hotbtn' src="/img/issue-plus-sign.png" />
|
||||
</view> -->
|
||||
|
||||
<!-- <view class="" style="height: 66rpx;height: 66rpx;border-radius: 50%;"> -->
|
||||
<view class="" style="width: 66rpx;height: 66rpx;border-radius: 50%;">
|
||||
<view class="selected-point">
|
||||
<view class="selected-point-center"></view>
|
||||
<view class="selected-point-mid flexcenter">
|
||||
<image class="selected-point-mid-icon" src="/img/issue-plus-sign.png"></image>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</navigator>
|
||||
<!-- <navigator class='plus view' 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=""> -->
|
||||
<view class='plus view' bindtap="handleIssue" url='pages/index/index' target="miniProgram" app-id="wx9c68fbf7886ea9c4" hover-class="hover">
|
||||
<block wx:if="{{ false }}">
|
||||
<view class='roll'></view>
|
||||
<view class='c'>
|
||||
<!-- <view class="" style="height: 66rpx;height: 66rpx;border-radius: 50%;"> -->
|
||||
<view class="" style="width: 66rpx;height: 66rpx;border-radius: 50%;">
|
||||
<view class="selected-point">
|
||||
<view class="selected-point-center"></view>
|
||||
<view class="selected-point-mid flexcenter">
|
||||
<image class="selected-point-mid-icon" src="/img/issue-plus-sign.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view>发布房源</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 重新写一份按钮 -->
|
||||
<view class="issue-btn">
|
||||
<view class="issue-circle1">
|
||||
<image class="selected-point-mid-icon" src="/img/issue-plus-sign.png"></image>
|
||||
</view>
|
||||
<view class="issue-text">发布房源</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class='round'>
|
||||
<image class='hotbtn' src="../../img/plust.png" />
|
||||
</view> -->
|
||||
<view>发布房源</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 重新写一份按钮 -->
|
||||
<view class="issue-btn">
|
||||
<view class="issue-circle1">
|
||||
<image class="selected-point-mid-icon" src="/img/issue-plus-sign.png"></image>
|
||||
</view>
|
||||
|
||||
<!-- <view class="selected-point">
|
||||
<view class="selected-point-center"></view>
|
||||
<view class="selected-point-mid flexcenter">
|
||||
<view class="issue-circle"></view>
|
||||
<image class="selected-point-mid-icon" src="/img/issue-plus-sign.png"></image>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="issue-text">发布房源</view>
|
||||
</view>
|
||||
</navigator>
|
||||
<!-- <navigator class='plus view' url='/pages/chooseLocation/chooseLocation' hover-class="hover">
|
||||
<!-- <navigator class='plus view' url='/pages/chooseLocation/chooseLocation' hover-class="hover">
|
||||
<view class='roll'></view>
|
||||
<view class='c'>
|
||||
<view class='round'>
|
||||
@ -59,14 +44,18 @@
|
||||
</view>
|
||||
</navigator> -->
|
||||
|
||||
<navigator class='user view' url="/pages/user/user" open-type='reLaunch' hover-class="hover">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<!-- <image class='hotbtn' src="/img/user-{{user==1 ? '3' : 'c' }}.png" /> -->
|
||||
<image class='hotbtn {{ user==1 ? "hotbtn1" : "" }}' mode="widthFix" src="/img/{{user==1 ? 'user-3.svg' : 'user-c.svg' }}" />
|
||||
<view style="font-size: 22.5rpx;" style="font-size: 22.5rpx;color: {{ user == 1 ? '#000' : '#aaa' }};">我的</view>
|
||||
<view class='num' wx:if="{{ unreadMessages > 0 }}">{{ unreadMessages }}</view>
|
||||
<!-- <view class='num' wx:if="{{ user.newpm>0 }}">{{ user.newpm }}</view> -->
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</navigator>
|
||||
<navigator class='user view' url="/pages/user/user" open-type='reLaunch' hover-class="hover">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<!-- <image class='hotbtn' src="/img/user-{{user==1 ? '3' : 'c' }}.png" /> -->
|
||||
<image class='hotbtn {{ user==1 ? "hotbtn1" : "" }}' mode="widthFix" src="/img/{{user==1 ? 'user-3.svg' : 'user-c.svg' }}" />
|
||||
<view style="font-size: 22.5rpx;" style="font-size: 22.5rpx;color: {{ user == 1 ? '#000' : '#aaa' }};">我的</view>
|
||||
<view class='num' wx:if="{{ unreadMessages > 0 }}">{{ unreadMessages }}</view>
|
||||
<!-- <view class='num' wx:if="{{ user.newpm>0 }}">{{ user.newpm }}</view> -->
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</navigator>
|
||||
|
||||
<block wx:if="{{ isAuthorization==1 }}">
|
||||
<go-login bindislogin="islogin" bindauthorizationSuccess="authorizationSuccess"></go-login>
|
||||
</block>
|
||||
</view>
|
@ -23,7 +23,31 @@ Component({
|
||||
console.log("conditionObj", this.data.conditionObj);
|
||||
}
|
||||
},
|
||||
location: Object,
|
||||
location: {
|
||||
type: Object,
|
||||
observer(res) {
|
||||
let data = res.data
|
||||
console.log(res, 0);
|
||||
|
||||
if (!data) return
|
||||
let targetData = {}
|
||||
for (let key in data) {
|
||||
key = Number(key)
|
||||
if (key % 1 === 0) {
|
||||
targetData[key] = {}
|
||||
targetData[key]['title'] = data[key]
|
||||
} else {
|
||||
if (!targetData[Math.trunc(key)]['data']) targetData[Math.trunc(key)]['data'] = {}
|
||||
targetData[Math.trunc(key)]['data'][key] = data[key]
|
||||
}
|
||||
}
|
||||
console.log("targetData", targetData);
|
||||
|
||||
this.setData({
|
||||
areaData: targetData
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
@ -87,7 +111,10 @@ Component({
|
||||
|
||||
rentValue: [40, 80],
|
||||
|
||||
areaState: "area", // area school
|
||||
areaState: "area", // area school 区域 弹窗的状态
|
||||
areaData: {}, // 区域弹窗的数据
|
||||
areaPitchValueOne: 0, // 区域选中 的 一级
|
||||
areaPitchValueTwo: 0, // 区域选中 的 二级
|
||||
},
|
||||
|
||||
/**
|
||||
@ -102,6 +129,8 @@ Component({
|
||||
this.setData({
|
||||
[key]: value
|
||||
})
|
||||
|
||||
console.log(this.data.areaPitchValueOne);
|
||||
},
|
||||
|
||||
changeItem(e) {
|
||||
|
@ -97,17 +97,23 @@
|
||||
<block wx:elif="{{ conditionState == 'school' }}">
|
||||
<view class="area-box flexflex">
|
||||
<view class="area-left">
|
||||
<view class="area-item flexcenter {{ areaState == 'area' ? 'pitch' : '' }}">按区域</view>
|
||||
<view class="area-item flexcenter {{ areaState == 'school' ? 'pitch' : '' }}">按学校</view>
|
||||
<view class="area-item flexcenter {{ areaState == 'area' ? 'pitch' : '' }}" bindtap="setValue" data-key="areaState" data-value="area">按区域</view>
|
||||
<view class="area-item flexcenter {{ areaState == 'school' ? 'pitch' : '' }}" bindtap="setValue" data-key="areaState" data-value="school">按学校</view>
|
||||
</view>
|
||||
<view class="area-centre">
|
||||
<scroll-view>
|
||||
|
||||
<view class="area-centre {{ areaPitchValueOne == 0 ? 'selectUnlimited' : '' }}">
|
||||
<scroll-view scroll-y="{{ true }}" style="height: 600rpx;">
|
||||
<view class="area-item flexcenter area-item-unlimited" bindtap="setValue" data-key="areaPitchValueOne" data-value="{{ 0 }}">
|
||||
<view class="flexcenter" style="width: 150rpx;">不限</view>
|
||||
<image class="area-item-unlimited-icon" src="/img/green-circle-pitch.svg"></image>
|
||||
</view>
|
||||
<view wx:for="{{ areaData }}" wx:key="index" class="area-item flexcenter {{ areaPitchValueOne == index ? 'pitch' : '' }}" bindtap="setValue" data-key="areaPitchValueOne" data-value="{{ index }}">{{ item.title }}</view>
|
||||
</scroll-view>
|
||||
<view wx:for="{{ location.data }}" wx:key="index" class="area-item flexcenter">{{ item }}</view>
|
||||
</view>
|
||||
<view class="area-right flex1">
|
||||
<view wx:for="{{ 3 }}" wx:key="index" class="area-item flexcenter">-1</view>
|
||||
<view class="area-right flex1" wx:if="{{ areaPitchValueOne }}">
|
||||
<scroll-view scroll-y="{{ true }}" style="height: 600rpx;">
|
||||
<view class="area-item flexacenter {{ !areaPitchValueTwo ? 'pitch' : '' }}">不限</view>
|
||||
<view wx:for="{{ areaData[areaPitchValueOne].data }}" wx:key="index" class="area-item flexacenter {{ areapitchValueOne == index ? 'pitch' : '' }}">{{ item }}</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -238,14 +238,56 @@
|
||||
.area-box {}
|
||||
|
||||
.area-box .area-item {
|
||||
/* background-color: #50E3C2; */
|
||||
height: 120rpx;
|
||||
}
|
||||
|
||||
.area-box .area-item.area-item-unlimited {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.area-box .area-item.area-item-unlimited .area-item-unlimited-icon {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
padding-right: 30rpx;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.area-box .area-left {
|
||||
background-color: rgba(215, 215, 215, 0.501960784313725);
|
||||
}
|
||||
|
||||
|
||||
.area-box .area-centre {
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
}
|
||||
|
||||
|
||||
.area-box .area-centre.selectUnlimited {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.area-box .area-centre.selectUnlimited .area-item.area-item-unlimited {
|
||||
width: 100%;
|
||||
color: #50E3C2;
|
||||
}
|
||||
|
||||
.area-box .area-centre.selectUnlimited .area-item.area-item-unlimited .area-item-unlimited-icon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.area-box .area-centre .pitch {
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
|
||||
.area-box .area-right {
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
.area-box .area-right .area-item {
|
||||
padding: 0 48rpx;
|
||||
}
|
||||
|
||||
.area-box .area-left .area-item.pitch {
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user