From f7049473bb97c9467b2f6c8b1c8cc60fd4a5259d Mon Sep 17 00:00:00 2001 From: lzh Date: Tue, 24 Mar 2026 23:07:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(home):=20=E9=9A=90=E8=97=8F=E8=93=9D?= =?UTF-8?q?=E7=89=99=E8=B0=83=E8=AF=95=E5=85=A5=E5=8F=A3=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20AreaPicker=20=E6=89=93=E5=BC=80=E6=97=B6=20FAB=20?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=81=AE=E6=8C=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从首页常用应用中移除蓝牙调试菜单项 - AreaPicker 弹窗打开时隐藏 FAB 按钮,关闭后恢复 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/pages/index/components/menu-section.vue | 1 - src/pages/index/index.vue | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/pages/index/components/menu-section.vue b/src/pages/index/components/menu-section.vue index f9f2fc5..5843468 100644 --- a/src/pages/index/components/menu-section.vue +++ b/src/pages/index/components/menu-section.vue @@ -97,7 +97,6 @@ const quickApps = [ { key: 'inspection', name: '巡检记录', icon: 'i-carbon-list-checked', color: '#8B5CF6', bgLight: '#F5F3FF', url: '/pages-ops/inspection/list' }, { key: 'workOrderStats', name: '工单统计', icon: 'i-carbon-chart-bar', color: '#3B82F6', bgLight: '#EFF6FF', url: '/pages-ops/work-order/stats' }, { key: 'trafficStats', name: '客流统计', icon: 'i-carbon-pedestrian', color: '#10B981', bgLight: '#ECFDF5', url: '/pages/scan/traffic/index' }, - { key: 'bluetoothDebug', name: '蓝牙调试', icon: 'i-carbon-bluetooth', color: '#0EA5E9', bgLight: '#F0F9FF', url: '/pages/scan/bluetooth-debug/index' }, ] function handleQuickApp(app: any) { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index d54be7f..20e9067 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -24,8 +24,9 @@ - + - + @@ -59,19 +60,26 @@ definePage({ }) const showFabMenu = ref(false) +const showAreaPicker = ref(false) const areaPickerRef = ref>() /** 选择区域巡检 */ function handleManualInspection() { showFabMenu.value = false + showAreaPicker.value = true areaPickerRef.value?.open() } /** 区域选择完成 → 跳转巡检页 */ function handleSelectArea({ areaId, areaName }: { areaId: number, areaName: string }) { + showAreaPicker.value = false uni.navigateTo({ url: `/pages-ops/inspection/index?areaId=${areaId}&areaName=${encodeURIComponent(areaName)}` }) } +function handleAreaPickerClose() { + showAreaPicker.value = false +} + /** 新增工单 */ function handleCreateOrder() { showFabMenu.value = false