From 4f780816c6705d7a4a74523af07a487fae93a4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BA=BA=E7=BB=9D=E4=B8=8D=E4=B8=BA?= =?UTF-8?q?=E5=A5=B4?= Date: Tue, 26 Aug 2025 17:52:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E4=BA=86iconfont?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/iconfont/iconfont.js | 1 - src/components/IconFont/index.jsx | 9 +++--- src/components/Sidebar/index.css | 3 +- src/components/Sidebar/index.jsx | 6 ++-- src/components/StageProgress/index.css | 16 +++++++--- src/components/StageProgress/index.jsx | 19 +++++------ src/global.css | 35 -------------------- src/routes/index.jsx | 44 ++++++++++++++++---------- 8 files changed, 58 insertions(+), 75 deletions(-) delete mode 100644 src/assets/iconfont/iconfont.js diff --git a/src/assets/iconfont/iconfont.js b/src/assets/iconfont/iconfont.js deleted file mode 100644 index f397ec9..0000000 --- a/src/assets/iconfont/iconfont.js +++ /dev/null @@ -1 +0,0 @@ -window._iconfont_svg_string_5001462='',(M=>{var l=(z=(z=document.getElementsByTagName("script"))[z.length-1]).getAttribute("data-injectcss"),z=z.getAttribute("data-disable-injectsvg");if(!z){var h,t,a,v,c,p=function(l,z){z.parentNode.insertBefore(l,z)};if(l&&!M.__iconfont__svg__cssinject__){M.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,z=document.createElement("div");z.innerHTML=M._iconfont_svg_string_5001462,(z=z.getElementsByTagName("svg")[0])&&(z.setAttribute("aria-hidden","true"),z.style.position="absolute",z.style.width=0,z.style.height=0,z.style.overflow="hidden",z=z,(l=document.body).firstChild?p(z,l.firstChild):l.appendChild(z))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(a=h,v=M.document,c=!1,d(),v.onreadystatechange=function(){"complete"==v.readyState&&(v.onreadystatechange=null,o())})}function o(){c||(c=!0,a())}function d(){try{v.documentElement.doScroll("left")}catch(l){return void setTimeout(d,50)}o()}})(window); \ No newline at end of file diff --git a/src/components/IconFont/index.jsx b/src/components/IconFont/index.jsx index 641f065..bbd80f2 100644 --- a/src/components/IconFont/index.jsx +++ b/src/components/IconFont/index.jsx @@ -1,12 +1,11 @@ -import "@/assets/iconfont/iconfont.js"; +const baseUrl = + "https://ddcz-1315997005.cos.ap-nanjing.myqcloud.com/static/img/teach_sys_icon/"; const IconFont = (props) => { - const { className, name, onClick } = props; + const { className, src, onClick } = props; return ( - + ); }; diff --git a/src/components/Sidebar/index.css b/src/components/Sidebar/index.css index 6ec14dc..5179546 100644 --- a/src/components/Sidebar/index.css +++ b/src/components/Sidebar/index.css @@ -145,7 +145,8 @@ .sidebar-menu-icon { margin: 0 10px; - font-size: 20px; + width: 20px; + height: 20px; } .sidebar-menu-text { margin-left: 10px; diff --git a/src/components/Sidebar/index.jsx b/src/components/Sidebar/index.jsx index f5ebcbb..9fd3cbb 100644 --- a/src/components/Sidebar/index.jsx +++ b/src/components/Sidebar/index.jsx @@ -11,7 +11,6 @@ const Sidebar = ({ isCollapsed, setIsCollapsed }) => { const navigate = useNavigate(); const location = useLocation(); const studentInfo = useSelector((state) => state.student.studentInfo); - console.log(studentInfo); const handleNavClick = (path) => { navigate(path); }; @@ -67,7 +66,10 @@ const Sidebar = ({ isCollapsed, setIsCollapsed }) => { key={j.path} onClick={() => handleNavClick(j.path)} > - + {j.name} ))} diff --git a/src/components/StageProgress/index.css b/src/components/StageProgress/index.css index b847a06..a783b99 100644 --- a/src/components/StageProgress/index.css +++ b/src/components/StageProgress/index.css @@ -83,16 +83,24 @@ color: #0077ff !important; } - .stage-progress-item-text, - .stage-progress-item-icon { + .stage-progress-item-text { font-size: 16px; font-weight: 500; color: #86909c; margin: 0 5px; } - .stage-progress-item-text-active, - .stage-progress-item-icon-active { + .stage-progress-item-icon { + width: 20px; + height: 20px; + } + .stage-progress-item-icon2 { + width: 5px; + height: 10px; + margin: 0 10px; + } + + .stage-progress-item-text-active { color: #fff !important; } diff --git a/src/components/StageProgress/index.jsx b/src/components/StageProgress/index.jsx index 572737c..e0b61a3 100644 --- a/src/components/StageProgress/index.jsx +++ b/src/components/StageProgress/index.jsx @@ -18,15 +18,12 @@ const StageProgress = () => { 生涯起航 - +
  • step2 能力跃升 - +
  • 垂直方向选择 @@ -34,16 +31,16 @@ const StageProgress = () => {
  • step3 垂直精进 - - - + + +
  • step4 决胜求职 - - - + + +
  • ); diff --git a/src/global.css b/src/global.css index b8ec4f4..4ffd32a 100644 --- a/src/global.css +++ b/src/global.css @@ -189,14 +189,6 @@ html { font-size: 32; } -.icon { - width: 1em; - height: 1em; - vertical-align: -0.15em; - fill: currentcolor; - overflow: hidden; -} - /* ============================== 自定义字体使用示例 ============================== */ @@ -207,30 +199,3 @@ body { "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; } - -/* 使用自定义字体的工具类 */ -.font-unitext { - font-family: "Unitext", sans-serif; -} - -.font-custom { - font-family: "CustomFont", -apple-system, BlinkMacSystemFont, "Segoe UI", - sans-serif; -} - -/* 特定场景的字体应用 */ -.title-custom { - font-family: "Unitext", serif; - font-weight: 900; - font-style: italic; -} - -.text-custom { - font-family: "CustomFont", sans-serif; - font-weight: 400; -} - -.text-custom-bold { - font-family: "CustomFont", sans-serif; - font-weight: 700; -} diff --git a/src/routes/index.jsx b/src/routes/index.jsx index 4223728..4dbea90 100644 --- a/src/routes/index.jsx +++ b/src/routes/index.jsx @@ -40,21 +40,24 @@ export default [ path: "/dashboard", name: "主页", element: , - icon: "icon-home", + default: "recuUY5h1bw5IS", + active: "recuUY5gBxD77p", showMenuItem: true, }, { path: "/profile", name: "个人档案", element: , - icon: "icon-dangan", + default: "recuUY58caXGYc", + active: "recuUY57QGFVLZ", showMenuItem: true, }, { path: "/calendar", name: "日历", element: , - icon: "icon-rili", + default: "recuUY5da0tNkb", + active: "recuUY5dvQEYlx", showMenuItem: true, }, ], @@ -68,35 +71,40 @@ export default [ path: "/public-courses", name: "公共课直播间", element: , - icon: "icon-zhibojian", + default: "recuUY58WKcNff", + active: "recuUY58zAsmTX", showMenuItem: true, }, { path: "/live", name: "课程直播间", element: , - icon: "icon-kecheng", + default: "recuUY5aCUaFlW", + active: "recuUY5abx7Arx", showMenuItem: true, }, { path: "/career-tree", name: "就业管家知识树", element: , - icon: "icon-zhishishu", + default: "recuUY59K6SkoO", + active: "recuUY59l98AZg", showMenuItem: true, }, { path: "/homework", name: "课后作业", element: , - icon: "icon-zuoye", + default: "recuUY5bpDGGa2", + active: "recuUY5aZHbzCC", showMenuItem: true, }, { path: "/job-strategy", name: "定制求职策略", element: , - icon: "icon-dingzhicelue", + default: "recuUY5h1bw5IS", + active: "recuUY5742LbQO", showMenuItem: true, }, { @@ -104,13 +112,13 @@ export default [ name: "定制求职策略详情", element: , showMenu: false, - icon: null, }, { path: "/interview-simulation", name: "线下面试模拟", element: , - icon: "icon-mianshimoni", + default: "recuUY5geqjOp8", + active: "recuUY5fQqg5MD", showMenuItem: true, }, ], @@ -124,14 +132,16 @@ export default [ path: "/expert-support", name: "专家支持中心", element: , - icon: "icon-zhichizhongxin", + default: "recuUY5hQnbcBY", + active: "recuUY5hsxnmk6", showMenuItem: true, }, { path: "/company-jobs", name: "企业内推岗位", element: , - icon: "icon-neitui", + default: "recuUY5chbV7Mn", + active: "recuUY5bPS4Ixx", showMenuItem: true, }, { @@ -139,27 +149,29 @@ export default [ name: "企业内推岗位列表", element: , showMenu: false, - icon: null, }, { path: "/resume-interview", name: "我的简历与面试", element: , - icon: "icon-jianli", + default: "recuUY5dTT3xbx", + active: "recuUY5dvQEYlx", showMenuItem: true, }, { path: "/project-library", name: "我的项目库", element: , - icon: "icon-jianli", + default: "recuUY5eH5ZaYR", + active: "recuUY5ejgtOo5", showMenuItem: true, }, { path: "/portfolio", name: "我的作品集", element: , - icon: "icon-zuopinji", + default: "recuUY5frYJKLC", + active: "recuUY5f5an72x", showMenuItem: true, }, ],