|
@@ -60,16 +60,7 @@ Router({
|
|
|
],
|
|
|
middleList: {},
|
|
|
middleEmptyLength: 0,
|
|
|
- // middleList: [{
|
|
|
- // url: 'https://m4.publicimg.browser.qq.com/publicimg/pcqb/ewtab_yunying/477_266_datu_20210802.jpg',
|
|
|
- // title: '华发水岸1'
|
|
|
- // }, {
|
|
|
- // url: 'https://m4.publicimg.browser.qq.com/publicimg/pcqb/ewtab_yunying/477_266_datu_20210802.jpg',
|
|
|
- // title: '华发水岸1'
|
|
|
- // }, {
|
|
|
- // url: 'https://m4.publicimg.browser.qq.com/publicimg/pcqb/ewtab_yunying/477_266_datu_20210802.jpg',
|
|
|
- // title: '华发水岸1'
|
|
|
- // }, ],
|
|
|
+
|
|
|
roomTabList: [{
|
|
|
type: 0,
|
|
|
title: '新房'
|
|
@@ -118,6 +109,7 @@ Router({
|
|
|
})
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
+
|
|
|
this.setData({
|
|
|
roomList: [],
|
|
|
'fetcherData.page': 1,
|
|
@@ -168,6 +160,9 @@ Router({
|
|
|
this.setData({
|
|
|
loading: true
|
|
|
})
|
|
|
+ wx.showLoading({
|
|
|
+ title: '加载中...',
|
|
|
+ })
|
|
|
util.request(api.BrandList, this.data.fetcherData).then((res) => {
|
|
|
this.setData({
|
|
|
loading: false
|
|
@@ -261,16 +256,16 @@ Router({
|
|
|
},
|
|
|
|
|
|
onShow: function (options) {
|
|
|
-
|
|
|
-
|
|
|
// 页面显示
|
|
|
let city = app.globalData.city
|
|
|
if (city != this.data.city) {
|
|
|
this.setData({
|
|
|
'city': app.globalData.city,
|
|
|
+ 'fetcherData.page':1,
|
|
|
middleEmptyLength: 0,
|
|
|
hasData:true,
|
|
|
- loading:false
|
|
|
+ loading:false,
|
|
|
+ roomList:[]
|
|
|
})
|
|
|
this.getRoomList()
|
|
|
for (let i = 0; i < this.data.middleTabList.length; i++) {
|