From bbee79e33542ae459efbf1e39a0081bda0137648 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 09 二月 2026 15:30:25 +0800
Subject: [PATCH] 首页菜单更改
---
src/pages/index.vue | 46 ++++++++++++++++++++++++++++++++++++++--------
1 files changed, 38 insertions(+), 8 deletions(-)
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 1395867..b45e9c6 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -133,6 +133,30 @@
</up-grid>
</view>
</view>
+ <!-- 浜哄姏璧勬簮妯″潡 -->
+ <view class="common-module collaboration-module">
+ <view class="module-header">
+ <view class="module-title-container">
+ <text class="module-title">浜哄姏璧勬簮</text>
+ </view>
+ </view>
+ <view class="module-content">
+ <up-grid :border="false"
+ col="4">
+ <up-grid-item v-for="(item, index) in humanResourcesItems"
+ :key="index"
+ @click="handleCommonItemClick(item)">
+ <view class="icon-container"
+ :style="{ background: item.bgColor }">
+ <up-icon :name="item.icon"
+ :size="58"
+ color="#ffffff"></up-icon>
+ </view>
+ <text class="item-label">{{item.label}}</text>
+ </up-grid-item>
+ </up-grid>
+ </view>
+ </view>
<!-- 鐢熶骇绠℃帶妯″潡 -->
<!-- <view class="common-module production-module">-->
<!-- <view class="module-header">-->
@@ -298,6 +322,16 @@
label: "渚涘簲鍟嗗線鏉�",
},
]);
+ const humanResourcesItems = reactive([
+ {
+ icon: "/static/images/icon/caigoutaizhang@2x.png",
+ label: "鎵撳崱绛惧埌",
+ },
+ {
+ icon: "/static/images/icon/caigoutaizhang@2x.png",
+ label: "浜哄憳钖祫",
+ },
+ ]);
const safetyItems = reactive([
{
icon: "/static/images/icon/caigoutaizhang@2x.png",
@@ -310,10 +344,6 @@
{
icon: "/static/images/icon/caigoutaizhang@2x.png",
label: "鍗遍櫓浣滀笟",
- },
- {
- icon: "/static/images/icon/xunjianshangchuan@2x.png",
- label: "宸℃涓婁紶",
},
{
icon: "/static/images/icon/guzhangfenxi@2x.png",
@@ -373,10 +403,6 @@
{
icon: "/static/images/icon/kehubaifang@2x.png",
label: "瀹㈡埛鎷滆",
- },
- {
- icon: "/static/images/icon/guzhangfenxi@2x.png",
- label: "鎵撳崱绛惧埌",
},
]);
@@ -447,6 +473,10 @@
label: "缁撴灉楠岃瘉",
bgColor: "#9c27b0",
},
+ {
+ icon: "/static/images/icon/xunjianshangchuan@2x.png",
+ label: "宸℃涓婁紶",
+ },
]);
// 澶勭悊甯哥敤鍔熻兘鐐瑰嚮
--
Gitblit v1.9.3