diff --git a/pages/index/index.js b/pages/index/index.js index 4401e5d..02166fe 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -104,6 +104,8 @@ Page({ let listType = "" recommendedTab.forEach(el => { + if (el.type == 'recommend') el.select = false + if (el.type == 'wholelease') el.select = true if (el['select']) listType = el['type'] }) @@ -423,7 +425,7 @@ Page({ let pagevalue = "" recommendedTab.forEach(el => { el['select'] = false - if (el.type == type) pagevalue = el['pagevalue'] + // if (el.type == type) pagevalue = el['pagevalue'] }) recommendedTab[index]['select'] = true this.setData({ @@ -431,8 +433,8 @@ Page({ listDataLeft: [], listDataRight: [], listType: type, - listPage: 1, - pagevalue, + listPage: 0, + pagevalue: 0, }) this.leftHeight = 0 this.rightHeight = 0 @@ -451,7 +453,7 @@ Page({ page: this.data.listPage, limit: 20, type: this.data.listType, - pagevalue: this.data.pagevalue || 0 + pagevalue: this.data.pagevalue || 0, }).then(res => { this.getListDataState = false @@ -462,7 +464,7 @@ Page({ let listType = this.data.listType let recommendedTab = this.data.recommendedTab recommendedTab.forEach(el => { - if (el.type == listType) el['pagevalue'] = pagevalue + // if (el.type == listType) el['pagevalue'] = pagevalue }) this.setData({ @@ -474,7 +476,7 @@ Page({ this.listDataIndex = 0 this.calculateProcessingCenter() - + }).finally(() => { this.getListDataState = false wx.hideLoading() diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 134c8f3..961a817 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -762,8 +762,8 @@ page { } .apartment-block .apartment-list .apartment-image-item { - width: 144rpx; - height: 96rpx; + width: 141rpx; + height: 93rpx; border-radius: 6rpx; }