Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6c9110bc
authored
May 08, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加首页头部
1 parent
d484bacb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
8 deletions
src/views/home/index.vue
src/views/home/index.vue
View file @
6c9110b
<
template
>
<div>
<nafm-header
:leftArrow=
"false"
>
<div
class=
"head-custom-container"
>
<div
class=
"search-input-box"
@
click=
"handleSearch"
>
<div
src=
""
alt=
""
class=
"search-icon"
/>
<span
class=
"search-placeholder"
>
请输入您想搜索的内容
</span>
</div>
<div
class=
"head-message-box"
>
</div>
</div>
</nafm-header>
<span
@
click=
"jumpLogin"
>
跳转登录页面
</span>
<FooterBottom
/>
</div>
</
template
>
<
script
>
export
default
{
name
:
'Home'
,
components
:
{
},
name
:
"Home"
,
components
:
{},
data
()
{
return
{}
return
{}
;
},
methods
:
{
jumpLogin
()
{
this
.
$router
.
push
({
name
:
'Login'
})
name
:
"Login"
,
});
},
handleSearch
()
{},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
@PaddingSize
:
15px
;
@HeadHeight
:
33px
;
.head-custom-container
{
width
:
100%
;
height
:
@
HeadHeight
;
padding
:
0
@
PaddingSize
;
display
:
flex
;
align-items
:
center
;
.search-input-box
{
width
:
100%
;
height
:
100%
;
border-radius
:
calc
(
@
HeadHeight
/
2
);
background-color
:
rgba
(
255
,
255
,
255
,
0.2
);
padding
:
0
@
PaddingSize
;
display
:
flex
;
align-items
:
center
;
@
SearchIconSize
:
12px
;
.search-icon
{
background
:
white
;
width
:
@
SearchIconSize
;
height
:
@
SearchIconSize
;
}
.search-placeholder
{
color
:
white
;
font-size
:
12px
;
padding-left
:
22px
;
}
}
@MessageBoxSize
:
23px
;
.head-message-box
{
width
:
@
MessageBoxSize
;
height
:
@
MessageBoxSize
;
margin-left
:
@
PaddingSize
;
background
:
white
;
}
}
</
script
>
\ No newline at end of file
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment