Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
aeaf3f64
Commit
aeaf3f64
authored
Sep 29, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:logo添加链接
parent
72eae130
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
UserHeader.tsx
src/layouts/components/UserHeader.tsx
+5
-5
index.less
src/pages/lxMall/components/ShopHeader/index.less
+1
-1
index.tsx
src/pages/lxMall/components/ShopHeader/index.tsx
+1
-1
colors.less
src/theme/science/styles/colors.less
+3
-0
No files found.
src/layouts/components/UserHeader.tsx
View file @
aeaf3f64
...
...
@@ -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
>
...
...
src/pages/lxMall/components/ShopHeader/index.less
View file @
aeaf3f64
...
...
@@ -17,7 +17,7 @@
.logo {
padding-left: 14px;
&
>img {
a
>img {
// width: 145px;
display: block;
margin: 0 auto;
...
...
src/pages/lxMall/components/ShopHeader/index.tsx
View file @
aeaf3f64
...
...
@@ -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
}
>
...
...
src/theme/science/styles/colors.less
View file @
aeaf3f64
// 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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment