diff --git a/src/components/order-list/order-list-cell.vue b/src/components/order-list/order-list-cell.vue
index 74b05a546542a0cb0b147f990bc4b028e9e83179..fe0e42bd1a3e85345f436c4f10cafdb5f9c8df51 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() {