From b008e2766ec5edd068a580cc5af4f86228847693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Tue, 4 Nov 2025 16:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=B3=E8=AF=B7=E5=94=AE?= =?UTF-8?q?=E5=90=8E=E6=88=90=E5=8A=9F=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/myOrders/index/index.vue | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/myOrders/index/index.vue b/packages/myOrders/index/index.vue index 05b40b30..760319c3 100644 --- a/packages/myOrders/index/index.vue +++ b/packages/myOrders/index/index.vue @@ -213,17 +213,17 @@ export default { console.log(item.id); // 根据条件判断是否可以售后 - // request(afterSaleApi.isAllow, "POST", { - // order_id: item.id, - // }).then((res) => { - // if (res.data.is_allow_after_sales) { - // this.afterSaleGoods = res.data.allow_items; - // // this.selectedAsGood = item.commodity_order_item_list[0].id; - // this.$refs.afterSalePopupRef.openAfterSalePopup(); - // } else { - // this.noSalePopup = true - // } - // }); + request(afterSaleApi.isAllow, "POST", { + order_id: item.id, + }).then((res) => { + if (res.data.is_allow_after_sales) { + this.afterSaleGoods = res.data.allow_items; + // this.selectedAsGood = item.commodity_order_item_list[0].id; + this.$refs.afterSalePopupRef.openAfterSalePopup(); + } else { + this.noSalePopup = true + } + }); }, // 处理退款提交事件 @@ -244,7 +244,9 @@ export default { change_goods_id: data.changeServiceId } request(afterSaleApi.afterSaleCreate, "POST", params).then((res) => { - this.getOrderList(); + uni.showToast({ title: "申请售后成功", icon: "sucess" }), setTimeout(() => { + this.getOrderList(); + }, 1000); }); },