From fd88d779300c83cd09af6ee5ec86fc0302dd631a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Thu, 12 Nov 2020 19:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/order-list/order-list-cell.vue | 3 +- src/pages/user/order/order_detail.vue | 55 ++++++++++++++++++- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/src/components/order-list/order-list-cell.vue b/src/components/order-list/order-list-cell.vue index 74b05a5..fe0e42b 100644 --- a/src/components/order-list/order-list-cell.vue +++ b/src/components/order-list/order-list-cell.vue @@ -192,6 +192,7 @@
订单已取消
{ + if (response.data.success == 1) { + this.$message({ + message: "评价订单成功", + type: "success", + }); + this.visible = false; + this.getOrderDetail(); + } else { + this.$message({ + message: "评价订单失败", + type: "error", + }); + } + }); + } else if (this.orderDetail.order_type == 2) { + let query = { + app: this.orderDetail.app_id, + content: this.textarea, + score: this.serviceRate, + apply_id: this.orderDetail.apply_id, + }; + this.$api.user.addServiceEvaluation(query).then((response) => { + if (response.data.success == 1) { + this.$message({ + message: "评价订单成功", + type: "success", + }); + this.visible = false; + this.getOrderDetail(); + } else { + this.$message({ + message: "评价订单失败", + type: "error", + }); + } + }); + } + } }, download() {}, getOrderDetail() { -- 2.26.0