diff --git a/src/views/FirstPage/FirstPage.vue b/src/views/FirstPage/FirstPage.vue index e8c2a09..ab1ee09 100644 --- a/src/views/FirstPage/FirstPage.vue +++ b/src/views/FirstPage/FirstPage.vue @@ -261,11 +261,13 @@ export default { // 获取活动公告列表 async getFrontLists() { clearInterval(this.timer); + const pageSize = parseInt((this.height - 76) / 40); + console.log('pageSize: ', pageSize); const params = { param: { activityType: [], pageNum: 1, - pageSize: this.height > 160 ? 3 : 2, + pageSize, title: '', }, };