diff --git a/pages/order/evaluate/myEvaluate.vue b/pages/order/evaluate/myEvaluate.vue index 84ed1a2..35dc244 100644 --- a/pages/order/evaluate/myEvaluate.vue +++ b/pages/order/evaluate/myEvaluate.vue @@ -27,7 +27,7 @@ {{ gradeList[order.grade] || '' }} - + @@ -45,10 +45,10 @@ - + - + @@ -78,6 +78,10 @@ export default { return { list: [ //顶部tab + + { + name: "全部订单", + }, { name: "待评价", }, @@ -123,12 +127,18 @@ export default { this.params.loadStatus = "more"; this.orderList = []; //重新读取数据 + if (val == 0) { + delete this.params.commentStatus this.loadData(); - } - if (val == 1) { + } else if (val == 1) { + this.params.commentStatus = "UNFINISHED"; this.orderList = []; - this.loadComments(); + this.loadData(); + } else { + this.params.commentStatus = "FINISHED"; + this.orderList = []; + return this.loadComments(); } }, }, @@ -138,7 +148,7 @@ export default { * 判断当前店铺是否有可评价的商品 */ commentStatus(val) { - if (this.current == 1) { + if (this.current == 2) { return true; } else { let show; @@ -251,11 +261,7 @@ export default { if (this.params.loadStatus == "noMore") return; if (index == 0) { this.loadData(); - } - if (index == 1) { - this.params.audit_status = "PASS_AUDIT"; - this.params.comments_type = "INITIAL"; - this.params.comment_status = "WAIT_CHASE"; + } else { this.loadComments(); } },