From 2c55a993edcbbf4f4e5c5c15389e41cbf894aad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=9D=E5=A3=AB=E9=A5=AD=E5=9B=A2?= Date: Thu, 2 May 2024 04:11:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix=20=E4=BF=AE=E5=9D=90=E9=AA=91=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/horse/Index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/horse/Index.vue b/src/views/horse/Index.vue index e89d122e8..85b80c16b 100644 --- a/src/views/horse/Index.vue +++ b/src/views/horse/Index.vue @@ -348,6 +348,7 @@ export default { showCount() { if (this.isPhone) { this.per = 8; + this.count = 8; return; } const listWidth = this.$refs.listRef?.clientWidth - 120; @@ -362,7 +363,7 @@ export default { const page = this.typeList.filter((e) => e.type === type)[0].page; let params = cloneDeep(this.params); params.page = page + 1; - params.per = append ? this.per * 3 : this.per; + params.per = append ? this.count * 3 : this.count; params.type = type; this.loadList(params, type); }, @@ -374,12 +375,12 @@ export default { list.forEach((e) => { params.page = e.page; params.type = e.type; - params.per = this.per; + params.per = this.count; this.loadList(params, e.type); }); } else { params.page = this.page; - params.per = this.per * 3; + params.per = this.count * 3; this.loadList({ ...params, type: this.active }, this.active); } }, @@ -388,7 +389,7 @@ export default { if (this.typeList[index].pages < params.page && this.active === "") params.page = 1; getHorses(params) .then((res) => { - const { list, total, pages, page } = res.data; + const { list, total, pages, page, per } = res.data; const _list = this.appendMode ? concat(this.typeList[index].list, list) : list; const newList = _list.map((item) => { item.typeName = this.getType(item); @@ -410,6 +411,7 @@ export default { this.typeList[index].pages = pages || 1; if (this.active !== "") this.page = page || 1; this.total = total; + this.per = per; }) .finally(() => { this.loading = false; From 8bbc90657c56b37191092286d02be5f7a34d54f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=9D=E5=A3=AB=E9=A5=AD=E5=9B=A2?= Date: Thu, 2 May 2024 04:23:58 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix=20=E6=9D=82=E7=B1=8D=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/book/Index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/book/Index.vue b/src/views/book/Index.vue index 13650a3a3..a1f0a3f1e 100644 --- a/src/views/book/Index.vue +++ b/src/views/book/Index.vue @@ -195,7 +195,7 @@ export default { return this.$store.state.client; }, params() { - const _params = { client: this.client, per: this.per }; + const _params = { client: this.client }; if (this.keyword) _params.keyword = this.keyword; if (this.active) _params.profession = this.active; return _params; @@ -264,6 +264,7 @@ export default { showCount() { if (this.isPhone) { this.per = 8; + this.count = 8; return; } const listWidth = this.$refs.listRef?.clientWidth - 120; @@ -278,7 +279,7 @@ export default { const page = this.list.filter((e) => e.id == type)[0].page; let params = cloneDeep(this.params); params.page = page + 1; - params.per = append ? this.per * 3 : this.per; + params.per = append ? this.count * 3 : this.per; params.profession = type; this.loadList(params, type); }, @@ -295,7 +296,7 @@ export default { }); } else { params.page = this.page; - params.per = this.per * 3; + params.per = this.count * 3; this.loadList({ ...params, profession: this.active }, this.active); } }, @@ -305,7 +306,7 @@ export default { if (this.list[index].pages < params.page && this.active === 0) params.page = 1; getList(params) .then((res) => { - const { list, total, pages, page } = res.data; + const { list, total, pages, page, per } = res.data; const _list = this.appendMode ? concat(this.list[index].list, list) : list; this.list[index].list = _list || []; this.list[index].page = page || 1; @@ -313,6 +314,7 @@ export default { this.list[index].total = total || 0; if (this.active !== 0) this.page = page || 1; this.total = total; + this.per = per; }) .finally(() => { this.loading = false; From 966159b0953601bfdea5de3d98e15ac9cc6db2ed Mon Sep 17 00:00:00 2001 From: TiAmo <361258177@qq.com> Date: Mon, 6 May 2024 12:50:50 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20gonggao=E9=A1=B6=E9=83=A8=E9=97=B4?= =?UTF-8?q?=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pvg/Gonggao.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/pvg/Gonggao.vue b/src/views/pvg/Gonggao.vue index 0f3dfd84f..e13d22518 100644 --- a/src/views/pvg/Gonggao.vue +++ b/src/views/pvg/Gonggao.vue @@ -113,7 +113,7 @@ export default {