|
@@ -20,7 +20,15 @@ Page({
|
|
|
page: 1,
|
|
|
size: 100,
|
|
|
name: ''
|
|
|
- }
|
|
|
+ },
|
|
|
+ typeName: {
|
|
|
+ 0: '新房',
|
|
|
+ 1: '二手房',
|
|
|
+ 2: '公寓',
|
|
|
+ 3: '民宿',
|
|
|
+ 4: '社区'
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
gotoWV: function (event) {
|
|
|
let id = event.detail
|
|
@@ -96,7 +104,7 @@ Page({
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
this.setData({
|
|
|
- loading: false1
|
|
|
+ loading: false
|
|
|
})
|
|
|
});
|
|
|
}
|
|
@@ -108,8 +116,19 @@ Page({
|
|
|
onLoad: function (options) {
|
|
|
getApp().checkNetStatu();
|
|
|
this.setData({
|
|
|
- 'fetcherData.type': options.type || 21
|
|
|
+ 'fetcherData.type': options.type || 21,
|
|
|
})
|
|
|
+ if (this.data.typeName[options.type]) {
|
|
|
+ this.setData({
|
|
|
+ isSearch: true
|
|
|
+ })
|
|
|
+ this.getRoomList()
|
|
|
+ wx.setNavigationBarTitle({
|
|
|
+ title: this.data.typeName[options.type]
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
/**
|