From cb63e15aece0e82c3ee395e190034b5bc01e331e Mon Sep 17 00:00:00 2001 From: zhangyh Date: Thu, 16 Oct 2025 13:34:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=80=BB=E8=BE=91&=E8=AF=AD=E9=9F=B3=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asistant/components/AudioVisualizer.vue | 152 ++++++++++++++++++ src/views/asistant/components/InputArea.vue | 150 +++++++++++++++-- src/views/login/LoginPage.vue | 12 +- src/views/stylist/customer.vue | 4 + src/views/stylist/dressfor.vue | 4 + src/views/stylist/index.vue | 2 +- src/views/stylist/sex.vue | 4 + 7 files changed, 306 insertions(+), 22 deletions(-) create mode 100644 src/views/asistant/components/AudioVisualizer.vue diff --git a/src/views/asistant/components/AudioVisualizer.vue b/src/views/asistant/components/AudioVisualizer.vue new file mode 100644 index 0000000..f235b98 --- /dev/null +++ b/src/views/asistant/components/AudioVisualizer.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/views/asistant/components/InputArea.vue b/src/views/asistant/components/InputArea.vue index 04cb71f..bde800c 100644 --- a/src/views/asistant/components/InputArea.vue +++ b/src/views/asistant/components/InputArea.vue @@ -19,19 +19,25 @@
- +
+
+ + + +
-
+
@@ -44,14 +50,13 @@ diff --git a/src/views/login/LoginPage.vue b/src/views/login/LoginPage.vue index 6c7cd6c..588ea80 100644 --- a/src/views/login/LoginPage.vue +++ b/src/views/login/LoginPage.vue @@ -117,16 +117,6 @@ const validateForm = () => { return isValid } -// 计算属性:表单是否有效 -const isFormValid = computed(() => { - return ( - formData.email && - formData.password && - validateEmail(formData.email) && - validatePassword(formData.password) - ) -}) - // 返回上一页 const goBack = () => { router.go(-1) @@ -151,7 +141,7 @@ const handleLogin = async () => { showToast('登录成功') // 登录成功后跳转到主页或工作台 - router.push('/workshop') + router.push('/stylist/customer') } catch (error) { console.error('登录失败:', error) showToast('登录失败,请重试') diff --git a/src/views/stylist/customer.vue b/src/views/stylist/customer.vue index 1903e5e..eaab713 100644 --- a/src/views/stylist/customer.vue +++ b/src/views/stylist/customer.vue @@ -40,6 +40,9 @@