From a159fbdb222382eb48c6f0deb62ede95db75dbf9 Mon Sep 17 00:00:00 2001 From: BAKEYi <16298417+bakeyi@user.noreply.gitee.com> Date: Thu, 23 Apr 2026 10:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=AE=B6=E5=B7=A5=E4=BD=8D=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=9B=A0=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=AF=BC=E8=87=B4=E7=9A=84=E9=A1=B5=E9=9D=A2=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BAbug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/SellerDetail.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pages/shop/SellerDetail.vue b/pages/shop/SellerDetail.vue index 8d7005c..2f9ae10 100644 --- a/pages/shop/SellerDetail.vue +++ b/pages/shop/SellerDetail.vue @@ -377,15 +377,18 @@ }) .then((res) => { if (this.identity == 0) { + // 商家视角:优先使用手艺人信息,若没有则使用商家自己的信息 + const provider = res.data.user_syr || res.data.user_sj || {}; this.orderInfo = res.data ? { - ...res.data.order, - ...res.data.work_seat, - ...res.data.user_syr, - work_hour_id: res.data.work_seat.id, - order_id: res.data.order.id, - user_sj_id: res.data.user_syr.id, + ...res.data.order, + ...res.data.work_seat, + ...provider, + work_hour_id: res.data.work_seat.id, + order_id: res.data.order.id, + user_sj_id: provider.id, } : {}; } else if (this.identity == 1) { + // 手艺人视角 this.orderInfo = res.data ? { ...res.data.order, ...res.data.work_hour,