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
7f96cac4
Commit
7f96cac4
authored
Dec 31, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 修改商城首页logo样式
parent
d33f998e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
index.tsx
src/pages/lxMall/components/CommonHeader/index.tsx
+1
-1
index.tsx
src/pages/lxMall/components/Header/index.tsx
+4
-3
No files found.
src/pages/lxMall/components/CommonHeader/index.tsx
View file @
7f96cac4
...
...
@@ -15,7 +15,7 @@ const CommonHeader: React.FC<ShopHeaderPropsType> = (props) => {
const
{
title
,
logoUrl
,
type
,
shopUrlParam
}
=
props
const
getLink
=
()
=>
{
let
url
:
string
=
''
let
url
:
string
switch
(
type
)
{
case
LAYOUT_TYPE
.
channel
:
url
=
`
${
GlobalConfig
.
channelRootRoute
}
?channelId=
${
shopUrlParam
}
`
...
...
src/pages/lxMall/components/Header/index.tsx
View file @
7f96cac4
...
...
@@ -5,6 +5,7 @@ import { history } from 'umi'
import
{
FileTextOutlined
,
DownOutlined
}
from
'@ant-design/icons'
import
isEmpty
from
'lodash/isEmpty'
import
{
PublicApi
}
from
'@/services/api'
import
ImageBox
from
'@/components/ImageBox'
import
{
getAuth
}
from
'@/utils/auth'
import
styles
from
'./index.less'
...
...
@@ -19,7 +20,7 @@ const Header: React.FC<HeaderPropsType> = (props) => {
const
[
count
,
setCount
]
=
useState
<
number
>
(
0
)
const
{
search
}
=
history
.
location
.
query
le
t
handleScroll
=
()
=>
{
cons
t
handleScroll
=
()
=>
{
const
scrollTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
const
floatSearch
=
document
.
getElementById
(
"floatSearch"
)
if
(
floatSearch
)
{
...
...
@@ -50,7 +51,7 @@ const Header: React.FC<HeaderPropsType> = (props) => {
},
[])
useEffect
(()
=>
{
if
(
!!
search
)
{
if
(
search
)
{
setSearchValue
(
search
)
}
else
{
setSearchValue
(
""
)
...
...
@@ -97,7 +98,7 @@ const Header: React.FC<HeaderPropsType> = (props) => {
<
div
className=
{
styles
.
header
}
>
<
div
className=
{
styles
.
header_container
}
>
<
div
className=
{
styles
.
logo
}
>
<
img
src
=
{
logo
}
/>
<
ImageBox
width=
{
145
}
height=
{
50
}
imgUrl
=
{
logo
}
/>
</
div
>
<
div
className=
{
styles
.
mall_search
}
>
<
div
className=
{
styles
.
mall_search_tags
}
>
...
...
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