From 81c9229993df71801a4ae511f4552345e8cd73c8 Mon Sep 17 00:00:00 2001 From: tk Date: Mon, 1 Jul 2024 16:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=09=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afeat=20=E3=80=90=E4=B8=BB=09=E9=A2=98=E3=80=91?= =?UTF-8?q?=EF=BC=9A=E9=80=80=E6=AC=BE=20=E5=BC=B9=E5=87=BA=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E6=8E=A7=E4=BB=B6=20=E3=80=90=E6=8F=8F=09=E8=BF=B0?= =?UTF-8?q?=E3=80=91=EF=BC=9A=20=09[=E5=8E=9F=E5=9B=A0]=EF=BC=9A=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E9=80=80=E6=AC=BE=20=E5=B9=B6=E4=B8=94=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20=E9=80=80=E6=AC=BE=E9=87=91=E9=A2=9D=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=20=09[=E8=BF=87=E7=A8=8B]=EF=BC=9A=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E9=80=80=E6=AC=BE=20=E5=B9=B6=E4=B8=94=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E9=80=80=E6=AC=BE=E9=87=91=E9=A2=9D=E8=A1=A8=E5=8D=95=20=09[?= =?UTF-8?q?=E5=BD=B1=E5=93=8D]=EF=BC=9A=20=E3=80=90=E7=BB=93=09=E6=9D=9F?= =?UTF-8?q?=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- src/components/QuestTabs.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/QuestTabs.vue b/src/components/QuestTabs.vue index 8c4f460..6633422 100644 --- a/src/components/QuestTabs.vue +++ b/src/components/QuestTabs.vue @@ -149,17 +149,23 @@ export default { }, methods: { questAss, // 修改订单 + /** + * @description: 封装退款函数 同步后续操作 + * @param {*} refundOrderSn 订单编号 + * @param {*} refundShopId 商铺id + * @param {*} refundPrice 退款金额 + * @param {*} refundType 退款类型 'buyer'买家申请 'seller'卖家主动 + */ refund (refundOrderSn, refundShopId, refundPrice, refundType) { refund(refundOrderSn, refundShopId, refundPrice, refundType).then(res => { - if (res.data.status === 1) { - this.dialogVisible = false - this.refundIndex = this.tempRefundIndex + if (res.data.status === 1) { // 退款申请成功时 + this.dialogVisible = false // 退款弹出框 关闭 + this.refundIndex = this.tempRefundIndex // 标记退款订单 的索引 方便做ui样式 } }) }, // 退款接口 parseTime, // 时间戳格式化 setRefundItem (item, index, refundType) { - console.log(item) this.tempRefundIndex = index this.refundTotal_price = item.total_price this.refundApply_price = item.apply_price