diff --git a/src/components/order-list/order-list-cell.vue b/src/components/order-list/order-list-cell.vue
index 38f1bf12f7837c36ca9465577cc489ebcc9814a6..8985b17fcc2709e9aa1e289e344cdc621c445745 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 d06314c6d4cf32773939d9522f701ff5aa90b1f4..96cbf74d557b54ccdf93fafdd91d007924f3f02b 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;
+}