From 1b848d0aaf01b3d20fb6286dedfd514b709439fc Mon Sep 17 00:00:00 2001 From: liudianxin Date: Tue, 21 Jul 2020 12:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E4=BA=91=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=AF=84=E4=BB=B7=EF=BC=8C=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E8=B0=83=E6=95=B4=EF=BC=8C=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E6=A1=A3=E6=A1=88=E5=AD=97=E7=AC=A6=E9=95=BF=E5=BA=A6=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/order-list/order-list-cell.vue | 4 +- src/pages/user/order/order_detail.vue | 70 ++++++++- src/pages/user/user_info.vue | 148 ++++++++++++------ src/request/api/user.js | 4 +- 4 files changed, 173 insertions(+), 53 deletions(-) diff --git a/src/components/order-list/order-list-cell.vue b/src/components/order-list/order-list-cell.vue index 38f1bf1..8985b17 100644 --- a/src/components/order-list/order-list-cell.vue +++ b/src/components/order-list/order-list-cell.vue @@ -93,12 +93,12 @@
服务评价
查看评价
收起评价
diff --git a/src/pages/user/order/order_detail.vue b/src/pages/user/order/order_detail.vue index d06314c..96cbf74 100644 --- a/src/pages/user/order/order_detail.vue +++ b/src/pages/user/order/order_detail.vue @@ -37,7 +37,7 @@
服务评价 查看评价 收起评价 @@ -86,6 +86,22 @@ >取消申请
+ +
+
服务评分:
+
+ +
+
评价详情:
+
{{ message.content }}
+
+
{{ orderDetail.order_type == 1 ? "服务" : "应用"}}信息
@@ -456,6 +472,7 @@ export default { duration_unit: this.cellItem.duration_unit }; } + window.sessionStorage.setItem("shoppingCart", JSON.stringify(query)); this.$router.push({ path: "/shop/shop_car_apply", query: query @@ -478,6 +495,37 @@ export default { }); } }); + }, + getMessage() { + if (this.cellItem.order_type == 1) { + this.$api.user + .getServiceEvaluation({ apply_id: this.cellItem.apply_id }) + .then(response => { + if (response.data.success == 1) { + this.message = response.data.data; + this.showMsgBox = true; + } else { + this.$message({ + message: "获取评价失败", + type: "error" + }); + } + }); + } else if (this.cellItem.order_type == 2) { + this.$api.user + .getAppEvaluation({ apply_id: this.cellItem.apply_id }) + .then(response => { + if (response.data.success == 1) { + this.message = response.data.data; + this.showMsgBox = true; + } else { + this.$message({ + message: "获取评价失败", + type: "error" + }); + } + }); + } } } }; @@ -759,6 +807,22 @@ export default { display: block; margin-top: 20px; } +.evaluation_msg { + height: 100%; + border-top: 1px #ededed solid; + padding: 20px; +} +.msg_title { + color: #8890a7; + margin: 0 0 10px; +} +.msg_rate { + margin: 0 0 10px 20px; +} +.msg_text { + margin-left: 20px; + color: #242c43; +}