- + - + {{ section.title }} + @@ -139,13 +146,6 @@ const sections = reactive([ show: true, path: "/pages/view/notice/index", }, - // { - // id: "hs5", - // icon: "message-3-line", - // text: "家校沟通", - // show: true, - // path: "/pages/view/homeSchool/JiaXiaoGouTong", - // }, { id: "hs6", icon: "filechart2fil", @@ -184,6 +184,18 @@ const sections = reactive([ }, ]); +// 获取分区颜色 +const getSectionColor = (index: number) => { + const colors = ['#4F46E5', '#059669', '#DC2626']; + return colors[index % colors.length]; +}; + +// 获取图标背景颜色 +const getIconBgColor = (index: number) => { + const colors = ['rgba(79, 70, 229, 0.1)', 'rgba(5, 150, 105, 0.1)', 'rgba(220, 38, 38, 0.1)']; + return colors[index % colors.length]; +}; + // 处理网格项点击事件 const handleGridItemClick = (item: GridItem) => { console.log("Clicked item:", item); @@ -197,62 +209,132 @@ const handleGridItemClick = (item: GridItem) => {