diff --git a/mapFind/pages/placeMap/index.wxml b/mapFind/pages/placeMap/index.wxml
index e126d4a..5d50156 100644
--- a/mapFind/pages/placeMap/index.wxml
+++ b/mapFind/pages/placeMap/index.wxml
@@ -92,6 +92,7 @@
+
diff --git a/pages/irentList/irentList.js b/pages/irentList/irentList.js
index 8c7f50a..cf29103 100644
--- a/pages/irentList/irentList.js
+++ b/pages/irentList/irentList.js
@@ -64,6 +64,7 @@ Page({
initState: false,
topTitle: "",
consultState: false, // 咨询弹窗状态
+ schoolScrollLeft: 100,
},
headerSearchTopHeight: 10,
@@ -128,7 +129,10 @@ Page({
}
})
- console.log("brandSelectionObj1", brandSelectionObj);
+ // brandSelectionObj['school'] = 6
+
+
+ // console.log("brandSelectionObj1", brandSelectionObj);
// this.data.roomtype.value = options.roomtype || '';
// this.data.roomlistings.value = options.roomlistings || '';
@@ -321,6 +325,20 @@ Page({
roomlistings: that.data.roomlistings
})
+ // 公寓列表 学校筛选的获取对应位置。并计算是否横向滚动
+ wx.nextTick(() => {
+ let index = this.data.school || 0
+ if (index == 0) return
+ wx.createSelectorQuery().select('#annex-school').boundingClientRect((parentRect) => {
+ wx.createSelectorQuery().select(`.annex-school-item.item${index}`).boundingClientRect((childRect) => {
+ const distance = childRect.left - parentRect.left - parentRect.width + childRect.width + 10
+ if (distance <= 0) return
+ this.setData({
+ schoolScrollLeft: distance
+ })
+ }).exec();
+ }).exec();
+ })
}
}).catch(res => {})
},
diff --git a/pages/irentList/irentList.wxml b/pages/irentList/irentList.wxml
index 1fa866f..1d96ae8 100644
--- a/pages/irentList/irentList.wxml
+++ b/pages/irentList/irentList.wxml
@@ -25,9 +25,9 @@
学校附近
-
- 不限
- {{ item.name }}
+
+ 不限
+ {{ item.name }}
diff --git a/pages/irentList/irentList.wxss b/pages/irentList/irentList.wxss
index e4e9717..058a522 100644
--- a/pages/irentList/irentList.wxss
+++ b/pages/irentList/irentList.wxss
@@ -200,7 +200,7 @@
height: 96rpx;
border-radius: 50%;
box-shadow: 0px 0px 12rpx rgba(0, 0, 0, 0.0784313725490196);
- z-index: 100;
+ z-index: 1000;
}
.consult-btn .consult-inside {
diff --git a/pages/personList/personList.wxml b/pages/personList/personList.wxml
index d5cf4e8..a994d8a 100644
--- a/pages/personList/personList.wxml
+++ b/pages/personList/personList.wxml
@@ -29,7 +29,7 @@
- - 共 {{ totalSum }} 条{{ intermediaryObj[intermediary] }}房源 -
+ - 共 {{ totalSum }} 条{{ intermediaryObj[intermediary] }}房源 -
diff --git a/pages/restOfWorld/restOfWorld.js b/pages/restOfWorld/restOfWorld.js
index f152c7e..953b273 100644
--- a/pages/restOfWorld/restOfWorld.js
+++ b/pages/restOfWorld/restOfWorld.js
@@ -115,30 +115,39 @@ Page({
// 获取全局筛选的值
let selectionObj = {}
selectionObj = app.globalData.restSelectionObj
- // console.log("selectionObj", selectionObj);
- // options.location = "1.1,1.2"
- // options.money = "5000~5100"
- // options.types = "1.3"
- // options.gender = 2
- // options.leaseterm = 2
- // options.publish = "triduum"
- // options.iselevator = 1
- // options.issunshinearea = 1
var location = [];
const locationArr = miucms.updateProperty('location', options, selectionObj)
if (locationArr) this.data.requestData['location'] = locationArr.split(',')
- // this.requestData['location'] = locationArr
-
this.data.location.value = location;
- this.data.types.value = miucms.updateProperty('types', options, selectionObj)
- this.data.moreCondition.data.gender = miucms.updateProperty('gender', options, selectionObj)
- this.data.moreCondition.data.leaseterm = miucms.updateProperty('leaseterm', options, selectionObj)
- this.data.moreCondition.data.publish = miucms.updateProperty('publish', options, selectionObj)
- this.data.moreCondition.data.iselevator = miucms.updateProperty('iselevator', options, selectionObj)
- this.data.moreCondition.data.issunshinearea = miucms.updateProperty('issunshinearea', options, selectionObj)
- const orderby = miucms.updateProperty('orderby', options, selectionObj)
- if (orderby) this.data.orderby.value = orderby
+
+ const types = miucms.updateProperty('types', options, selectionObj) || 0
+ this.data.types.value = types
+ this.data.requestData['types'] = types
+
+ const gender = miucms.updateProperty('gender', options, selectionObj) || 0
+ this.data.moreCondition.data.gender = gender
+ this.data.requestData['gender'] = gender
+
+ const leaseterm = miucms.updateProperty('leaseterm', options, selectionObj) || 0
+ this.data.moreCondition.data.leaseterm = leaseterm
+ this.data.requestData['leaseterm'] = leaseterm
+
+ const publish = miucms.updateProperty('publish', options, selectionObj) || 0
+ this.data.moreCondition.data.publish = publish
+ this.data.requestData['publish'] = publish
+
+ const iselevator = miucms.updateProperty('iselevator', options, selectionObj) || 0
+ this.data.moreCondition.data.iselevator = iselevator
+ this.data.requestData['iselevator'] = iselevator
+
+ const issunshinearea = miucms.updateProperty('issunshinearea', options, selectionObj) || 0
+ this.data.moreCondition.data.issunshinearea = issunshinearea
+ this.data.requestData['issunshinearea'] = issunshinearea
+
+ const orderby = miucms.updateProperty('orderby', options, selectionObj) || 'timestamp'
+ this.data.orderby.value = orderby
+ this.data.requestData['orderby'] = orderby
const oMoney = miucms.updateProperty('money', options, selectionObj)
if (oMoney) {
@@ -155,6 +164,7 @@ Page({
location: this.data.location,
moreCondition: this.data.moreCondition,
requestData: this.data.requestData,
+ orderby: this.data.orderby,
city: {
uniqid: options.cityid || '',
name: options.name || '',
@@ -169,11 +179,9 @@ Page({
})
this.get_config()
this.firstInpage = false;
- setTimeout(() => {
- this.setData({
- money: this.data.money,
- })
- }, 1200)
+ this.setData({
+ money: this.data.money,
+ })
},
firstInpage: true,
onShow() {
@@ -222,8 +230,8 @@ Page({
status: app.globalData.status,
StudentapartmentNew: app.globalData.StudentapartmentNew,
intermediary: app.globalData.user.intermediary,
- // identity: app.globalData.user.identity || 1,
- identity: 1,
+ identity: app.globalData.user.identity || 1,
+ // identity: 1,
})
let screen_data = this.data.screen_data
@@ -345,7 +353,6 @@ Page({
that.setData({
totalSum: data.count,
- // list: that.data.list.concat(list),
loading: false,
page
})
@@ -355,10 +362,11 @@ Page({
})
let selectionObj = {
+ ...this.data.requestData,
location: this.data.requestData.location && this.data.requestData.location.join(','),
}
+ if (this.data.requestData['rent_min'] > 0) selectionObj['money'] = `${this.data.requestData['rent_min']}~${this.data.requestData['rent_max']}`
app.globalData.restSelectionObj = selectionObj
-
},
// 获取地域列表
@@ -373,7 +381,7 @@ Page({
types: this.data.types,
property: data.data.property,
cityList: data.data.cityList,
- allowsearch: data.data.allowsearch || true
+ allowsearch: data.data.allowsearch
})
wx.setStorage({
key: 'countryList',
diff --git a/pages/restOfWorld/restOfWorld.wxml b/pages/restOfWorld/restOfWorld.wxml
index 94531e4..6fcc09f 100644
--- a/pages/restOfWorld/restOfWorld.wxml
+++ b/pages/restOfWorld/restOfWorld.wxml
@@ -15,7 +15,7 @@
-
+
diff --git a/pages/user/user.js b/pages/user/user.js
index b7615a6..c47bb18 100644
--- a/pages/user/user.js
+++ b/pages/user/user.js
@@ -18,7 +18,8 @@ Page({
},
publish: {
page: 1,
- data: []
+ data: [],
+ loading: false,
},
fav_list: [],
fav_page: {
@@ -897,7 +898,11 @@ Page({
// 获取 发布数据 V4的
getPublishData() {
let publish = this.data.publish
- if (publish['page'] == 0) return
+ if (publish['page'] == 0 || publish.loading) return
+ publish.loading = true
+ this.setData({
+ publish
+ })
wx.showLoading({
title: '加载中...',
})
@@ -920,6 +925,9 @@ Page({
})
}).finally(() => {
wx.hideLoading()
+ this.setData({
+ ['publish.loading']: false
+ })
})
},
diff --git a/pages/user/user.wxml b/pages/user/user.wxml
index b86b17b..69ae493 100644
--- a/pages/user/user.wxml
+++ b/pages/user/user.wxml
@@ -78,9 +78,9 @@
-
-
+
+
共 {{ publish.count }} 条房源(上架 {{ stat.listing }} 草稿 {{ stat.draft }} 下架 {{ stat.offshelf }} )
@@ -88,7 +88,6 @@
-
有疑问?来找{{ wechat.nickname }}!
diff --git a/template/listOperations/listOperations.js b/template/listOperations/listOperations.js
index 9ca263e..4e00855 100644
--- a/template/listOperations/listOperations.js
+++ b/template/listOperations/listOperations.js
@@ -119,7 +119,6 @@ Component({
let areaPitchValueOne = this.data.areaPitchValueOne
let conditionObj = this.data.conditionObj
let areaPitchValueTwo = this.data.areaPitchValueTwo
- console.log("value", value);
if (value) {
let obj = {}
areaPitchValueOne = parseInt(value[0]) || 0
@@ -183,11 +182,7 @@ Component({
orderbyy: {
type: Object,
observer(res) {
- // console.log(this.data.orderby);
- console.log("res", res);
-
this.data.orderby.value = res.value
- console.log(this.data.orderby, "111111");
let conditionObj = this.data.conditionObj
conditionObj.orderby['valueText'] = this.data.orderby.obj[res.value]
@@ -195,7 +190,6 @@ Component({
orderby: this.data.orderby,
conditionObj,
})
- console.log("conditionObj", conditionObj);
}
}
},
@@ -647,7 +641,6 @@ Component({
...moreOtherValue
})
-
this.setData({
conditionState: "",
})