From 9c41bf4711b34de221c4caa8ff52ac1a3599f482 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Mon, 29 Dec 2025 10:46:00 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9.?= =?UTF-8?q?=20bugfix:=20customer=E9=80=89=E6=8B=A9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E8=A7=A6=E5=8F=91=E9=94=99=E8=AF=AF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Workshop/profile.vue | 9 +++-- src/views/login/WelcomePage.vue | 1 + src/views/login/customer.vue | 70 ++++++++++++++++----------------- src/views/stylist/dressfor.vue | 13 +++--- src/views/stylist/index.vue | 4 +- src/views/stylist/sex.vue | 5 ++- 6 files changed, 54 insertions(+), 48 deletions(-) diff --git a/src/views/Workshop/profile.vue b/src/views/Workshop/profile.vue index ff71137..3d088fd 100644 --- a/src/views/Workshop/profile.vue +++ b/src/views/Workshop/profile.vue @@ -147,6 +147,7 @@ const onScroll = (e: Event) => { // 打开customer选择时关闭profile弹窗 如果不是点击confirem关闭则重新打开profile弹窗 const handleShowPopup = (flag: boolean) => { showSwitchCustomerPopup.value = flag + if(props.isCustomer) return show.value = !flag if (flag) { loadCustomers(true) @@ -178,15 +179,15 @@ const handleFetchCustomerList = () => { } MyEvent.add('update-customer-list', handleFetchCustomerList) -const openSwitchCustomerPopup = (flag = true) => { - showSwitchCustomerPopup.value = flag -} +// const openSwitchCustomerPopup = (flag = true) => { +// showSwitchCustomerPopup.value = flag +// } onMounted(() => { handleFetchCustomerList() }) -defineExpose({ open, close, openSwitchCustomerPopup }) +defineExpose({ open, close, handleShowPopup })