From 956954cf093d77c36496e5b68879d7aa31039f9b Mon Sep 17 00:00:00 2001 From: zty Date: Fri, 12 Jun 2026 10:14:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20C=E7=AB=AF=E6=B1=A1=E6=9F=93=E6=BA=90?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E4=B8=8E=E4=B8=93=E4=B8=9A=E7=AB=AF=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 专业首页"预测"区加"污染源识别·快速溯源"入口卡 → /source - 落地页"专业看板"按钮:有token直达/home,否则去登录 - 污染源识别页顶栏加"进入专业系统 →"链接 → /home - 两端共用同一套账号(手机号注册的用户也能进专业系统) Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/web/src/pages/Home.vue | 3 ++- apps/web/src/pages/Landing.vue | 2 +- apps/web/src/pages/SourceTracing.vue | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/src/pages/Home.vue b/apps/web/src/pages/Home.vue index 3a85454..1d0444a 100644 --- a/apps/web/src/pages/Home.vue +++ b/apps/web/src/pages/Home.vue @@ -4,7 +4,7 @@
预测
- +
{{ c.title }} ›
{{ c.desc }}
@@ -43,6 +43,7 @@ const predictCards = [ { title: '新建项目预测', desc: '从头配置项目、空间、材料进行预测', action: () => (createOpen.value = true) }, { title: '快速导入项目', desc: '根据模板或文件导入后调整配置预测', action: () => router.push({ name: 'template' }) }, { title: '继续配置预测', desc: '继续已保存、未提交的配置', action: () => router.push({ name: 'drafts' }) }, + { title: '污染源识别 · 快速溯源', desc: '单空间快速预测,溯源主要污染材料', action: () => router.push('/source') }, ]; const moreCards = [ { title: '项目模板库', desc: '查看管理公共、自建的项目模板', action: () => router.push({ name: 'template' }) }, diff --git a/apps/web/src/pages/Landing.vue b/apps/web/src/pages/Landing.vue index 5b0ffa0..ffbf8b1 100644 --- a/apps/web/src/pages/Landing.vue +++ b/apps/web/src/pages/Landing.vue @@ -198,7 +198,7 @@ onBeforeUnmount(stop); function scrollTop() { window.scrollTo({ top: 0, behavior: 'smooth' }); } function scrollTo(id: string) { document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' }); } -function goPro() { router.push('/login'); } +function goPro() { router.push(localStorage.getItem('token') ? '/home' : '/login'); } // 预测入口 → 手机注册 const authOpen = ref(false); diff --git a/apps/web/src/pages/SourceTracing.vue b/apps/web/src/pages/SourceTracing.vue index 849a3a2..f51c23c 100644 --- a/apps/web/src/pages/SourceTracing.vue +++ b/apps/web/src/pages/SourceTracing.vue @@ -5,6 +5,7 @@
污染源识别SOURCE TRACING · 甲醛
+ 进入专业系统 → {{ auth.org?.name || '访客' }}