From 44dd0a2f9e6ae9d218298669aee6aa3db62661d8 Mon Sep 17 00:00:00 2001 From: chris <510148846@qq.com> Date: Fri, 24 Oct 2025 17:41:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=A2=84=E8=AD=A6=E4=BF=A1=E6=81=AF=E6=A8=A1=E5=9D=97=EF=BC=9B?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E8=AE=BE=E8=AE=A1=E6=88=91=E7=9A=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=9B=E6=96=B0=E5=A2=9E=E9=A2=84=E8=AD=A6=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E9=9D=A2=EF=BC=9B=20style:=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=9F=BA=E7=A1=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/components/basicInfo.vue | 256 +++++++++++++ src/pages/index/components/monitor.vue | 261 +++++++++++++ src/pages/index/components/title.vue | 59 +++ src/pages/index/components/warning.vue | 105 ++++++ src/pages/index/index.vue | 452 ++--------------------- src/pages/index/variables.scss | 14 + src/pages/me/me.vue | 114 ++---- src/pages/warning/warning.vue | 131 +++++++ src/style/base.scss | 2 +- 9 files changed, 903 insertions(+), 491 deletions(-) create mode 100644 src/pages/index/components/basicInfo.vue create mode 100644 src/pages/index/components/monitor.vue create mode 100644 src/pages/index/components/title.vue create mode 100644 src/pages/index/components/warning.vue create mode 100644 src/pages/index/variables.scss create mode 100644 src/pages/warning/warning.vue diff --git a/src/pages/index/components/basicInfo.vue b/src/pages/index/components/basicInfo.vue new file mode 100644 index 0000000..b502881 --- /dev/null +++ b/src/pages/index/components/basicInfo.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/src/pages/index/components/monitor.vue b/src/pages/index/components/monitor.vue new file mode 100644 index 0000000..fbb4f99 --- /dev/null +++ b/src/pages/index/components/monitor.vue @@ -0,0 +1,261 @@ + + + + + diff --git a/src/pages/index/components/title.vue b/src/pages/index/components/title.vue new file mode 100644 index 0000000..627da9f --- /dev/null +++ b/src/pages/index/components/title.vue @@ -0,0 +1,59 @@ + + + + + + diff --git a/src/pages/index/components/warning.vue b/src/pages/index/components/warning.vue new file mode 100644 index 0000000..f911db3 --- /dev/null +++ b/src/pages/index/components/warning.vue @@ -0,0 +1,105 @@ + + + + + + diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 9d29293..e993928 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -2,13 +2,13 @@ * @Author: chris * @Date: 2025-09-15 09:51:59 * @LastEditors: chris - * @LastEditTime: 2025-10-22 17:03:42 + * @LastEditTime: 2025-10-23 16:53:59 --> @@ -95,74 +36,25 @@ function handleModuleClick(module) { - - - - - - - - - {{ item.text }} - {{ item.value }} - - - - - - - + + + <basic-info /> <!-- 监控模块区域 --> - <view class="monitor-section"> - <text class="section-title">实时监控</text> - - <!-- 模块网格 --> - <wd-row :gutter="15" class="module-row"> - <wd-col - v-for="module in modules" - :key="module.id" - :span="12" - > - <view class="module-item-wrapper"> - <view - class="module-card" - @tap="handleModuleClick(module)" - > - <view class="module-icon-container" :class="`module-${module.id}`"> - <image :src="module.icon" mode="aspectFit" class="module-icon" /> - </view> - <view class="module-info"> - <text class="module-title">{{ module.title }}</text> - <text class="module-desc">{{ module.desc }}</text> - </view> - </view> - </view> - </wd-col> - </wd-row> - </view> + <Title title="实时监控" /> + <monitor /> + <!-- 虫情预警模块 --> + <Title title="预警信息"> + <wd-button size="small" type="text" @tap="handleMoreWarning"> + <text class="more-btn-text">查看更多</text> + </wd-button> + + diff --git a/src/pages/index/variables.scss b/src/pages/index/variables.scss new file mode 100644 index 0000000..78bc409 --- /dev/null +++ b/src/pages/index/variables.scss @@ -0,0 +1,14 @@ +// 主题颜色变量 - 轻科技感配色 +$primary-color: #00c6ff; // 科技蓝 +$primary-color-dark: #0072ff; // 深蓝 +$bg-color: #f0f2f5; // 浅灰色背景 +$card-bg: #ffffff; // 纯白色卡片背景 +$card-bg-glass: rgba(255, 255, 255, 0.85); // 玻璃拟态背景 +$text-primary: #0f1419; // 深色主文本 +$text-secondary: #333f51; // 次要文本色 +$text-tertiary: #6e7683; // 辅助文本色 +$border-radius: 16px; // 较大圆角 +$box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); // 柔和的阴影 +$box-shadow-hover: 0 8px 32px rgba(0, 198, 255, 0.15); // 科技蓝阴影 +$transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); // 平滑过渡效果 +$glow-effect: 0 0 15px rgba(0, 198, 255, 0.3); // 发光效果 diff --git a/src/pages/me/me.vue b/src/pages/me/me.vue index c43a47c..253f83b 100644 --- a/src/pages/me/me.vue +++ b/src/pages/me/me.vue @@ -1,7 +1,6 @@ + + + + diff --git a/src/style/base.scss b/src/style/base.scss index 4b6c8b7..a67e7c3 100644 --- a/src/style/base.scss +++ b/src/style/base.scss @@ -2,5 +2,5 @@ view { padding: 0; margin: 0; box-sizing: border-box; - color: $-color-title; + font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; }