diff --git a/src/core/apis.js b/src/core/apis.js index 2636f41..20ffbee 100644 --- a/src/core/apis.js +++ b/src/core/apis.js @@ -299,9 +299,11 @@ export default { list: { service: { url: "/wxapp/index/goodsevaluation", + showLoading: true, }, worker: { url: "/wxapp/orderb/allevaluation", + showLoading: true, } } }, diff --git a/src/pages/service/detail.vue b/src/pages/service/detail.vue index d2d9578..7abe2c0 100644 --- a/src/pages/service/detail.vue +++ b/src/pages/service/detail.vue @@ -9,7 +9,7 @@ - + - + { if (list.length > 0) { + if (this.currentAppraiseCate.page == 1) { + this.currentAppraiseCate.list = list; + } else { + this.currentAppraiseCate.list = this.currentAppraiseCate.list.concat(list); + } this.currentAppraiseCate.page++; - this.currentAppraiseCate.list = this.currentAppraiseCate.list.concat(list); } else { this.currentAppraiseCate.more = false; } diff --git a/src/pages/worker/detail.vue b/src/pages/worker/detail.vue index 85d362b..439b4d7 100644 --- a/src/pages/worker/detail.vue +++ b/src/pages/worker/detail.vue @@ -123,7 +123,6 @@ export default { * 切换评价分类 */ changeAppraiseCate(currentAppraiseCate, index) { - currentAppraiseCate.list = []; currentAppraiseCate.more = true; currentAppraiseCate.page = 1; this.currentAppraiseCate = currentAppraiseCate; @@ -142,8 +141,12 @@ export default { }) .then((list) => { if (list.length > 0) { + if (this.currentAppraiseCate.page == 1) { + this.currentAppraiseCate.list = list; + } else { + this.currentAppraiseCate.list = this.currentAppraiseCate.list.concat(list); + } this.currentAppraiseCate.page++; - this.currentAppraiseCate.list = this.currentAppraiseCate.list.concat(list); } else { this.currentAppraiseCate.more = false; }