优化页面
This commit is contained in:
parent
d4d7fa672e
commit
b6cf58f274
|
@ -76,9 +76,12 @@ const apis = {
|
|||
appraise: {
|
||||
count: {
|
||||
url: "/wxapp/index/seemyevaluation",
|
||||
auth: true,
|
||||
},
|
||||
list: {
|
||||
url: "/wxapp/index/mysevaluation",
|
||||
showLoading: true,
|
||||
auth: true,
|
||||
}
|
||||
},
|
||||
cash: {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue