Commit aeaf3f64 authored by GuanHua's avatar GuanHua

feat:logo添加链接

parent 72eae130
......@@ -7,20 +7,20 @@ import HeaderDropdown from './HeaderDropdown';
export interface UserHeaderProps {
logo?: React.ReactNode,
countryList?: {key: string, name: string, icon: string}[]
countryList?: { key: string, name: string, icon: string }[]
}
/**
* 登录、注册等用户头部
*/
const UserHeader:React.FC<UserHeaderProps> = (props) => {
const UserHeader: React.FC<UserHeaderProps> = (props) => {
return (
<div className={styles.lingxiBusinessUserHeader}>
<Row className={styles.lingxiBusinessMarginContent} justify='space-between' align='middle' style={{height: '100%'}}>
<Row className={styles.lingxiBusinessMarginContent} justify='space-between' align='middle' style={{ height: '100%' }}>
<Col>
{ isString(props.logo) ? <img src={props.logo} className={styles.lingxiBusinessLogo}/> : props.logo }
{isString(props.logo) ? <a href="/"><img src={props.logo} className={styles.lingxiBusinessLogo} /> </a> : props.logo}
</Col>
<Col>
<HeaderDropdown/>
<HeaderDropdown />
</Col>
</Row>
</div>
......
......@@ -17,7 +17,7 @@
.logo {
padding-left: 14px;
&>img {
a>img {
// width: 145px;
display: block;
margin: 0 auto;
......
......@@ -59,7 +59,7 @@ const ShopHeader: React.FC<ShopHeaderPropsType> = (props) => {
<div className={styles.shop_header}>
<div className={styles.shop_header_container}>
<div className={styles.logo}>
<img src={logo} />
<a href="/"><img src={logo} /></a>
</div>
<div className={styles.shop_header_split}></div>
<div className={styles.shop_header_info}>
......
// science下的全局变量在此定义
// 企业商城科技模板
.theme-mall-science {
font-size: 14px;
--mall_main_color: #D32F2F;
--mall_main_color_opacity_2: rgba(211, 47, 47, .2);
--mall_sub_color: rgba(211, 47, 47, 0.1);
......@@ -13,6 +14,7 @@
// 渠道科技类模板
.theme-channel-science {
font-size: 14px;
--mall_main_color: #464552;
--mall_sub_color: #FFFFFF;
......@@ -23,6 +25,7 @@
// 店铺科技类模板颜色配置
.theme-shop-science {
font-size: 14px;
--mall_main_color: #D32F2F;
--mall_sub_color: rgba(211, 47, 47, 0.1);
......
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