From f01662b185bf109fd666378953b46e2155c13ac4 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Sat, 7 Nov 2026 20:01:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=85=A5=E6=94=B9=E4=B8=BA=E5=88=86=E7=BB=84?= =?UTF-8?q?=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 服务接入下五个分组由纵向平铺改为按钮切换,默认接入诊断;表单与测试状态均在页面级响应式状态中,切换不丢失未保存输入与最近测试结果。 --- .../src/views/admin/SystemSettingsView.vue | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue index 07384f3f..726f376b 100644 --- a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue +++ b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue @@ -23,7 +23,7 @@ :key="item.id" type="button" :class="['settings-subnav__item', { 'is-active': activeGroup === item.id }]" - @click="scrollToGroup(item.id)" + @click="handleGroupNavClick(item.id)" > {{ item.label }} {{ item.badge }} @@ -115,7 +115,7 @@
-
+

接入诊断

TEST
@@ -174,7 +174,7 @@
-
+

地图服务

安全接入
@@ -226,7 +226,7 @@
-
+

微信内容审核

安全回调
@@ -388,7 +388,7 @@
-
+

对象存储读取顺序

FILE
@@ -419,7 +419,7 @@
-
+

短信服务

SMS
@@ -782,6 +782,8 @@ const toggleProbeDetail = (service: string, operation: string) => { } const activeGroup = ref('') +/** activeServiceGroup switches the five service groups so only one is rendered at a time. */ +const activeServiceGroup = ref('settings-group-probe') const groupNavItems = computed>(() => { if (activeSection.value === 'runtime') { return [{ id: 'settings-group-account', label: '账号与登录' }, { id: 'settings-group-shop', label: '门店经营' }] @@ -828,8 +830,18 @@ const scrollToGroup = (id: string) => { element.classList.add('is-located') window.setTimeout(() => element.classList.remove('is-located'), 1500) } +const handleGroupNavClick = (id: string) => { + if (activeSection.value === 'services') { + activeServiceGroup.value = id + activeGroup.value = id + return + } + scrollToGroup(id) +} watch(activeSection, () => { - activeGroup.value = groupNavItems.value[0]?.id || '' + activeGroup.value = activeSection.value === 'services' + ? activeServiceGroup.value + : groupNavItems.value[0]?.id || '' }, { immediate: true }) const runProbe = async (service: string, operation: string) => { const key = `${service}:${operation}`