From 5d0dbb3c05cb138ffdcf0698431cb28e7a4641b2 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Sun, 28 Jun 2020 19:12:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=EF=BC=8C=E4=BA=91?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=AF=B9=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E6=B2=A1=E5=8A=A0=EF=BC=8C=E4=B8=AA=E4=BA=BA=E6=A1=A3?= =?UTF-8?q?=E6=A1=88+=E5=A4=8D=E5=88=B6=E6=88=90=E5=8A=9F=EF=BC=8C?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85+=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/e-charts/dashboard.vue | 37 ++-- src/components/shop-cloud/shop-cloud.vue | 262 +++++++++++++++++++---- src/pages/data-analysis/my-service.vue | 12 +- src/pages/user/order/order_detail.vue | 25 ++- src/pages/user/user_info.vue | 5 +- src/request/api/user.js | 4 +- 6 files changed, 279 insertions(+), 66 deletions(-) diff --git a/src/components/e-charts/dashboard.vue b/src/components/e-charts/dashboard.vue index de3968d..92a51d8 100644 --- a/src/components/e-charts/dashboard.vue +++ b/src/components/e-charts/dashboard.vue @@ -3,6 +3,7 @@ @@ -82,7 +80,7 @@ export default { .in_analysis { padding: 0 10px 10px; height: 100%; - min-width: 1000px; + min-width: 1700px; } .in_l { } @@ -91,7 +89,7 @@ export default { .in_c { } .in_block { - height: 300px; + height: 280px; padding: 10px; } .block { diff --git a/src/pages/user/order/order_detail.vue b/src/pages/user/order/order_detail.vue index 97858c6..469a6df 100644 --- a/src/pages/user/order/order_detail.vue +++ b/src/pages/user/order/order_detail.vue @@ -75,10 +75,15 @@ @click="showMsgBox = false" >收起评价 再次申请 + 取消申请
{{ orderDetail.order_type == 1 ? "服务" : "应用"}}信息
@@ -353,6 +358,24 @@ export default { path: "/shop/shop_car_apply", query: query }); + }, + cancelDetail() { + this.$api.user + .cancelOrder({ order_id: this.orderDetail.order_id }) + .then(response => { + if (response.data.success == 1) { + this.$message({ + message: "取消订单成功", + type: "success" + }); + this.$router.push({ name: "orderList" }); + } else { + this.$message({ + message: "取消订单失败", + type: "error" + }); + } + }); } } }; diff --git a/src/pages/user/user_info.vue b/src/pages/user/user_info.vue index 9ac6366..a109763 100644 --- a/src/pages/user/user_info.vue +++ b/src/pages/user/user_info.vue @@ -403,7 +403,10 @@ export default { input.select(); if (document.execCommand("copy")) { document.execCommand("copy"); - console.log("复制成功"); + this.$message({ + message: "复制成功", + type: "success" + }); } document.body.removeChild(input); }, diff --git a/src/request/api/user.js b/src/request/api/user.js index 2252292..c052065 100644 --- a/src/request/api/user.js +++ b/src/request/api/user.js @@ -34,7 +34,9 @@ const user = { getOrderApproval(params) { return axios.get(`/apaas/serviceapp/v3/order/approval?apply_id=${params.apply_id}`); }, - + cancelOrder(params) { + return axios.get(`/order/cancel?order_id=${params.order_id}`); + }, // user info getNowUser() { -- 2.26.0