Commit 4c1f583f authored by GuanHua's avatar GuanHua

feat:能力中心logo修改

parent 3e44c706
......@@ -42,7 +42,7 @@
"copy-to-clipboard": "^3.3.1",
"god": "0.1.28",
"lingxi-design": "^1.0.7",
"lingxi-design-ui": "^1.1.4",
"lingxi-design-ui": "^1.1.5",
"lingxi-editor-core": "^1.0.6",
"lingxi-web": "^1.0.6",
"lint-staged": "^10.0.7",
......@@ -80,4 +80,4 @@
"json2ts": "^0.0.7",
"ora": "^4.0.4"
}
}
}
\ No newline at end of file
import { LogoutOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons';
import { Avatar, Menu, Spin } from 'antd';
import { ClickParam } from 'antd/es/menu';
import React from 'react';
import { history } from 'umi';
import PersonDropdown from './PersonDropdown'
......
......@@ -5,6 +5,7 @@ import {
BorderOutlined,
} from '@ant-design/icons'
import OuterSider from './OuterSide'
import { GlobalConfig } from '@/global/config'
import styles from '../styles/MenuSlider.less'
const { Sider } = Layout
......@@ -72,7 +73,7 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
return <>
<OuterSider {...props} />
<Sider theme="light" className="menu_sider" collapsed={props.collapseState}>
<div className={styles.logo}>LOGOLOGOGOG</div>
<div className={styles.logo}><img src={GlobalConfig.global.siteInfo.logo} /></div>
<div className={styles.menuTitle}>
{menuRouter?.name}
</div>
......
.logo {
height: 32px;
background: rgba(255, 255, 255, 1);
margin: 16px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
&>img {
width: 127px;
height: 44px;
}
}
:global {
......
......@@ -166,7 +166,7 @@ const InformationDetail: React.FC<InformationDetailPropsType> = (props) => {
{
newsDetail.relatedInformation && newsDetail.relatedInformation.map(item => (
<div className={styles.information_about_list_item} key={`information_about_list_item_${item.id}`}>
<ImageBox width={257} height={172} imgUrl={informationImg2} />
<ImageBox width={257} height={172} imgUrl={item.imageUrl} />
<p>
<a href={toDetailLink(item.id)}>
{item.title}
......
......@@ -173,7 +173,7 @@ const Information: React.FC<InformationPropsType> = (props) => {
</div>
<div className={styles.information_focus_right}>
{
photoNews && photoNews.map((item: any, index) => (
photoNews && photoNews.map((item: any, index) => index < 3 && (
<div key={`information_focus_imgbox_sub_${item.id}`} className={index === 0 ? styles.information_focus_imgbox_sub_1 : styles.information_focus_imgbox_sub_2}>
<a href={toDetailLink(item.id)}>
<div className={index === 0 ? styles.information_focus_imgbox_sub_1_img : styles.information_focus_imgbox_sub_2_img} style={{ backgroundImage: `url(${item.imageUrl})` }} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment