From b6cf58f2748857fe1d6f5f247db25f2c7004bb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Thu, 30 Mar 2023 01:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/apis.js | 3 +++ src/pages/member/appraise.vue | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/apis.js b/src/core/apis.js index 354cc37..8a2102a 100644 --- a/src/core/apis.js +++ b/src/core/apis.js @@ -76,9 +76,12 @@ const apis = { appraise: { count: { url: "/wxapp/index/seemyevaluation", + auth: true, }, list: { url: "/wxapp/index/mysevaluation", + showLoading: true, + auth: true, } }, cash: { diff --git a/src/pages/member/appraise.vue b/src/pages/member/appraise.vue index 3653c1d..6996814 100644 --- a/src/pages/member/appraise.vue +++ b/src/pages/member/appraise.vue @@ -70,7 +70,6 @@ export default { * 切换评价分类 */ changeAppraiseCate(currentCate) { - currentCate.list = []; currentCate.more = true; currentCate.page = 1; this.currentCate = currentCate; @@ -88,8 +87,12 @@ export default { }) .then((list) => { if (list.length > 0) { + if (this.currentCate.page == 1) { + this.currentCate.list = list; + } else { + this.currentCate.list = this.currentCate.list.concat(list); + } this.currentCate.page++; - this.currentCate.list = this.currentCate.list.concat(list); } else { this.currentCate.more = false; }