优化页面

This commit is contained in:
TOP糯米 2023-03-30 01:08:56 +08:00
parent d4d7fa672e
commit b6cf58f274
2 changed files with 8 additions and 2 deletions

View File

@ -76,9 +76,12 @@ const apis = {
appraise: { appraise: {
count: { count: {
url: "/wxapp/index/seemyevaluation", url: "/wxapp/index/seemyevaluation",
auth: true,
}, },
list: { list: {
url: "/wxapp/index/mysevaluation", url: "/wxapp/index/mysevaluation",
showLoading: true,
auth: true,
} }
}, },
cash: { cash: {

View File

@ -70,7 +70,6 @@ export default {
* 切换评价分类 * 切换评价分类
*/ */
changeAppraiseCate(currentCate) { changeAppraiseCate(currentCate) {
currentCate.list = [];
currentCate.more = true; currentCate.more = true;
currentCate.page = 1; currentCate.page = 1;
this.currentCate = currentCate; this.currentCate = currentCate;
@ -88,8 +87,12 @@ export default {
}) })
.then((list) => { .then((list) => {
if (list.length > 0) { 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.page++;
this.currentCate.list = this.currentCate.list.concat(list);
} else { } else {
this.currentCate.more = false; this.currentCate.more = false;
} }