Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
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
baiguangyao
mr-julyedu
Commits
576254ce
Commit
576254ce
authored
Aug 22, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search history
parent
4b659a32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
src/components/search/index.js
+13
-11
No files found.
src/components/search/index.js
View file @
576254ce
...
...
@@ -59,14 +59,16 @@ class Search extends PureComponent {
/
>
<
Loading
isLoading
=
{
this
.
state
.
isLoading
}
>
<
div
className
=
"search-main"
>
<
div
className
=
"search-land"
>
<
div
className
=
'search-history'
>
<
span
>
最近搜索
<
/span
>
<
i
className
=
"iconfont iconiconfront-56"
onClick
=
{
this
.
clearHistory
}
/
>
<
/div
>
<
div
className
=
"search-tag"
>
{
searchHistory
.
length
>
0
?
{
searchHistory
.
length
>
0
&&
<
div
className
=
"search-land"
>
<
div
className
=
'search-history'
>
<
span
>
最近搜索
<
/span
>
<
i
className
=
"iconfont iconiconfront-56"
onClick
=
{
this
.
clearHistory
}
/
>
<
/div
>
<
div
className
=
"search-tag"
>
{
searchHistory
.
map
((
v
,
i
)
=>
{
return
(
<
Link
...
...
@@ -77,10 +79,10 @@ class Search extends PureComponent {
<
/Link
>
)
})
:
<
div
className
=
{
'no_search_history'
}
style
=
{{
textAlign
:
'center'
,
padding
:
'20px'
}}
>
暂无历史
<
/div
>
}
}
<
/div
>
<
/div
>
<
/div
>
}
<
div
className
=
"search-land search-hot"
>
<
label
className
=
{
'search-history'
}
>
<
span
>
热门搜索
<
/span
>
...
...
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