优化页面

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: {
count: {
url: "/wxapp/index/seemyevaluation",
auth: true,
},
list: {
url: "/wxapp/index/mysevaluation",
showLoading: true,
auth: true,
}
},
cash: {

View File

@ -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) {
this.currentCate.page++;
if (this.currentCate.page == 1) {
this.currentCate.list = list;
} else {
this.currentCate.list = this.currentCate.list.concat(list);
}
this.currentCate.page++;
} else {
this.currentCate.more = false;
}