From d83a6bdd6998f4893d16c4925f21be4e88494778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 12 Aug 2026 19:17:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor(official):=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=BC=94=E7=A4=BA=E6=95=B0=E6=8D=AE=E5=85=9C=E5=BA=95=E5=AE=98?= =?UTF-8?q?=E7=BD=91=E5=86=85=E5=AE=B9=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在关于我们页补充企业优势和联系方式演示数据展示 - 资讯列表页增加分类标签,实现按分类筛选资讯 - 文章详情页新增相关推荐文章展示逻辑 - 主页使用演示数据兜底导航、Banner、核心业务、公司简介和文章列表 - 各页面均优化站点信息使用,优先展示真实数据,缺失时使用演示数据 - 留言页增加公司联系信息展示,提升体验 - 个人中心页支持分享官网,展示演示数据防止空白 - 主页Banner支持无图时使用渐变背景和文字占位 - 统一使用演示数据,保证页面无空白,提升整体稳定性和用户体验 --- .idea/workspace.xml | 34 ++++--- package.json | 1 + scripts/safe-build-weapp.sh | 16 ++++ src/official/about/index.tsx | 48 ++++++++-- src/official/article-detail/index.tsx | 29 +++++- src/official/article/index.tsx | 96 +++++++++++++------ src/official/data/demo.ts | 118 +++++++++++++++++++++++ src/official/index/index.tsx | 130 ++++++++++++++++++++++---- src/official/message/index.tsx | 33 ++++++- src/official/mine/index.tsx | 36 ++++++- 10 files changed, 463 insertions(+), 78 deletions(-) create mode 100644 scripts/safe-build-weapp.sh create mode 100644 src/official/data/demo.ts diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7be24e7..7129006 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,8 +4,15 @@