From 1bd5fb98f6ebe4e4781d43e21dc242f4ada2fce6 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Fri, 11 Sep 2020 08:25:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/shop/order/detail.vue | 138 ++++++++++++++------------------ src/views/wechat/live/index.vue | 44 +++++++++- 2 files changed, 105 insertions(+), 77 deletions(-) diff --git a/src/views/shop/order/detail.vue b/src/views/shop/order/detail.vue index c51b41c..767ff40 100644 --- a/src/views/shop/order/detail.vue +++ b/src/views/shop/order/detail.vue @@ -15,7 +15,6 @@ 当前订单状态:{{order.statusName}}
修改收货人信息 - 修改商品信息 修改费用信息 关闭订单 备注订单 @@ -51,7 +50,7 @@ {{order.orderId}} 暂无 - {{order.userDTO.nickname}} + {{userDTO.nickname}} {{order.payTypeName }} {{order.isChannel | formatSourceType}} {{order.pinkName }} @@ -96,7 +95,7 @@ 管理员备注 - {{ order.userDTO.nickname}} + {{ userDTO.nickname}} {{order.realName}} {{order.userPhone}} @@ -247,42 +246,42 @@ - - - - - - - - - - - - - - - - - - - - - - - 取 消 - 确 定 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + width="80%">
商品合计 @@ -291,12 +290,12 @@ 积分抵扣 - ¥{{order.totalAmount}} + ¥{{order.totalPrice}} - + - -¥{{order.couponAmount}} - -¥{{order.integrationAmount}} + -¥{{order.couponPrice}} + -¥{{order.useIntegral}} 活动优惠 @@ -307,13 +306,13 @@ -¥{{order.promotionAmount}} - + - ¥{{order.totalAmount+moneyInfo.freightAmount}} + ¥{{order.totalPrice}} - ¥{{order.payAmount+moneyInfo.freightAmount-moneyInfo.discountAmount}} + ¥{{order.payPrice}}
@@ -322,21 +321,21 @@ 确 定
- - - - - - - - - - - - - - - + + + + + + + + + 取 消 + 确 定 + + @@ -405,6 +404,7 @@ import {formatTimeTwo} from '@/utils/index'; closeInfo:{note:null,id:null}, markOrderDialogVisible:false, markInfo:{note:null}, + userDTO: {}, logisticsDialogVisible: { visible: false, list: [] @@ -428,15 +428,6 @@ import {formatTimeTwo} from '@/utils/index'; return value; } }, - formatPayType(value) { - if (value === 1) { - return '支付宝'; - } else if (value === 2) { - return '微信'; - } else { - return '未支付'; - } - }, formatSourceType(value) { if (value === 1) { return '小程序'; @@ -444,13 +435,6 @@ import {formatTimeTwo} from '@/utils/index'; return '公众号/H5'; } }, - formatOrderType(value) { - if (value === 1) { - return '秒杀订单'; - } else { - return '正常订单'; - } - }, formatShippingType(value){ if (value === 1) { return '快递'; @@ -539,6 +523,7 @@ import {formatTimeTwo} from '@/utils/index'; let id = that.$route.params.id || 0; getOrderDetail(id).then(response => { this.order = response; + this.userDTO = this.order.userDTO; }); }, onSelectRegion(data){ @@ -614,6 +599,7 @@ import {formatTimeTwo} from '@/utils/index'; cancelButtonText: '取消', type: 'warning' }).then(() => { + this.moneyDialogVisible=false; // updateMoneyInfo(this.moneyInfo).then(response=>{ // this.moneyDialogVisible=false; // this.$message({ @@ -674,7 +660,7 @@ import {formatTimeTwo} from '@/utils/index'; showMarkOrderDialog(){ this.markOrderDialogVisible=true; this.markInfo.id=this.id; - // this.closeOrder.note=null; + this.order.remark=null; }, handleMarkOrder(){ this.$confirm('是否要备注订单?', '提示', { diff --git a/src/views/wechat/live/index.vue b/src/views/wechat/live/index.vue index b3e550f..713edb3 100644 --- a/src/views/wechat/live/index.vue +++ b/src/views/wechat/live/index.vue @@ -79,6 +79,25 @@ 开启 + + + + 关闭 + 开启 + + + + + 关闭 + 开启 + + + + + 关闭 + 开启 + + + + + + + + + +