From ef5eda8cf471146280f47b0a1855484465852f76 Mon Sep 17 00:00:00 2001 From: shenghuo2 <1308357113@qq.com> Date: Sat, 21 Jun 2025 23:15:19 +0800 Subject: [PATCH] refactor(profile): restructure profile pages and add new features --- README.md | 37 +- profile.html | 20 +- profile/home-network.html | 114 ++++++ .../mijiazhongce.html | 2 +- .../product-encyclopedia.html | 2 +- scene.html => profile/scene.html | 2 +- settings.html => profile/settings.html | 2 +- profile/styles/home-network.css | 210 ++++++++++ {styles => profile/styles}/mijiazhongce.css | 0 profile/styles/product-encyclopedia.css | 309 ++++++++++++++ {styles => profile/styles}/scene.css | 0 profile/styles/settings.css | 179 +++++++++ {styles => profile/styles}/user-profile.css | 0 profile/styles/whole-house-smart.css | 376 ++++++++++++++++++ .../user-profile.html | 4 +- .../whole-house-smart.html | 2 +- styles/profile.css | 17 + 17 files changed, 1242 insertions(+), 34 deletions(-) create mode 100644 profile/home-network.html rename mijiazhongce.html => profile/mijiazhongce.html (99%) rename product-encyclopedia.html => profile/product-encyclopedia.html (99%) rename scene.html => profile/scene.html (99%) rename settings.html => profile/settings.html (99%) create mode 100644 profile/styles/home-network.css rename {styles => profile/styles}/mijiazhongce.css (100%) create mode 100644 profile/styles/product-encyclopedia.css rename {styles => profile/styles}/scene.css (100%) create mode 100644 profile/styles/settings.css rename {styles => profile/styles}/user-profile.css (100%) create mode 100644 profile/styles/whole-house-smart.css rename user-profile.html => profile/user-profile.html (97%) rename whole-house-smart.html => profile/whole-house-smart.html (99%) diff --git a/README.md b/README.md index 5b3f429..8cf639c 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,14 @@ #### 功能子页面 - **notifications.html** - 通知中心:消息管理,状态更新 - **environment-settings.html** - 环境设置:分区域监测,数据展示 -- **scene.html** - 智能场景:场景管理,自动化控制 -- **user-profile.html** - 个人资料:用户信息编辑 -- **mijiazhongce.html** - 米家众测:产品试用申请 +- **profile/user-profile.html** - 个人资料:用户信息编辑 - **log.html** - 设备日志:开关记录,历史数据 -- **settings.html** - 设置页面:应用配置 +- **profile/settings.html** - 设置页面:应用配置 - **all-products.html** - 全部产品:产品目录 -- **product-encyclopedia.html** - 产品百科:产品知识 -- **whole-house-smart.html** - 全屋智能:智能解决方案 +- **profile/scene.html** - 智能场景:场景管理,自动化控制 +- **profile/mijiazhongce.html** - 米家众测:产品试用申请 +- **profile/product-encyclopedia.html** - 产品百科:产品知识 +- **profile/whole-house-smart.html** - 全屋智能:智能解决方案 ## 💻 核心代码解释 @@ -106,15 +106,15 @@ project-fin-takeaway/ ├── product.html # 产品页面 ├── mall.html # 商城页面 ├── profile.html # 个人中心页面 -├── scene.html # 智能场景页面 -├── mijiazhongce.html # 米家众测页面 -├── user-profile.html # 个人资料详情页面 + +├── profile/ +│ ├── user-profile.html # 个人资料详情页面 +│ ├── settings.html # 设置页面 +│ └── home-network.html # 家庭网络页面 ├── notifications.html # 通知中心页面 ├── environment-settings.html # 环境设置页面 -├── settings.html # 设置页面 + ├── all-products.html # 全部产品页面 -├── product-encyclopedia.html # 产品百科页面 -├── whole-house-smart.html # 全屋智能页面 ├── log.html # 设备开关日志页面 ├── styles/ # 样式文件目录 │ ├── common.css # 公共样式 @@ -170,12 +170,13 @@ npx http-server │ │ └── → all-products.html │ ├── mall.html ───── 商城页面 │ └── profile.html ── 个人中心 -│ ├── → user-profile.html -│ ├── → scene.html -│ ├── → mijiazhongce.html -│ ├── → product-encyclopedia.html -│ ├── → whole-house-smart.html -│ └── → settings.html +│ ├── → profile/user-profile.html +│ ├── → profile/scene.html +│ ├── → profile/mijiazhongce.html +│ ├── → profile/product-encyclopedia.html +│ ├── → profile/whole-house-smart.html +│ ├── → profile/settings.html +│ └── → profile/home-network.html └── 📁 资源文件 ├── styles/ ──── CSS样式 ├── scripts/ ─── JavaScript diff --git a/profile.html b/profile.html index 56dbf13..49098d1 100644 --- a/profile.html +++ b/profile.html @@ -13,7 +13,7 @@