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; }