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 cf032fd7
authored
May 20, 2021
by
fanx
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
fixed conflict
2 parents
1e35f5ca
faf24dca
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
3 deletions
src/components/NafmHeader.vue
src/router/index.js
src/router/modules/home.js
src/views/home/index.vue
src/views/home/search.vue
src/components/NafmHeader.vue
View file @
cf032fd
...
...
@@ -160,6 +160,7 @@ section {
.nav_left
{
display
:
flex
;
align-items
:
center
;
z-index
:
2
;
:active
{
opacity
:
0.5
;
}
...
...
@@ -182,13 +183,13 @@ section {
align-items
:
center
;
justify-content
:
center
;
font-size
:
18px
;
z-index
:
-1
;
}
.nav_right
{
min-width
:
100px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
z-index
:
2
;
}
}
</
style
>
\ No newline at end of file
src/router/index.js
View file @
cf032fd
...
...
@@ -5,6 +5,7 @@ import userRouter from './modules/user'
import
memberRouter
from
'./modules/member'
import
qulificationRouter
from
'./modules/qualification'
import
regIssueRouter
from
'./modules/regIssue'
import
homeRouter
from
'./modules/home'
import
{
NativeMenuApi
}
from
'@/api/NativeApis'
const
APP_ENV
=
process
.
env
.
VUE_APP_NODE_ENV
...
...
@@ -40,7 +41,7 @@ const routes = [
},
component
:
()
=>
import
(
/* webpackChunkName: "catalog" */
'@/views/catalog/'
)
// 首页
}
].
concat
(
userRouter
,
memberRouter
,
qulificationRouter
,
regIssueRouter
)
].
concat
(
userRouter
,
memberRouter
,
qulificationRouter
,
regIssueRouter
,
homeRouter
)
const
router
=
new
VueRouter
({
routes
...
...
src/router/modules/home.js
0 → 100644
View file @
cf032fd
const
Routers
=
[
{
path
:
'/home/search'
,
name
:
'GlobalSearch'
,
meta
:
{
title
:
'全局搜索'
,
isLogin
:
false
},
component
:
()
=>
import
(
/* webpackChunkName: "GlobalSearch" */
'@/views/home/search.vue'
)
// 全局搜索
},
{
path
:
'/home/search/result'
,
name
:
'GlobalSearchResult'
,
meta
:
{
title
:
'全局搜索'
,
isLogin
:
false
},
component
:
()
=>
import
(
/* webpackChunkName: "GlobalSearchResult" */
'@/views/home/search.vue'
)
// 全局搜索
},
]
export
default
Routers
\ No newline at end of file
src/views/home/index.vue
View file @
cf032fd
...
...
@@ -40,7 +40,9 @@ export default {
});
},
handleSearch
()
{
},
handleSearch
()
{
this
.
$router
.
push
({
name
:
'GlobalSearch'
})
},
handleTop
(
module
)
{
const
modules
=
[]
...
...
src/views/home/search.vue
0 → 100644
View file @
cf032fd
<
template
>
<div
class=
"global-search nafmii-head-bg3"
>
<nafm-header
navClass=
"nafmii-head-bg3"
>
<SearchInput
class=
"search-input"
v-model=
"keyword"
:placeholder=
"$t('home.searchPlaceholder')"
@
search=
"handleSearch"
/>
</nafm-header>
<main>
<div
class=
"search-history-title"
>
<span>
搜索历史
</span>
<div
class=
"clear"
>
<img
src=
""
alt=
""
>
</div>
</div>
<div
class=
"search-history-values"
>
<span>
ksdj离开
</span>
<span>
ksdj离开
</span>
<span>
ksdj离开水电费会计师
</span>
<span>
ksdj离开水电费会计师
</span>
<span>
水电费会计师
</span>
<span>
电费会计师
</span>
</div>
</main>
</div>
</
template
>
<
script
>
import
SearchInput
from
'@/components/SearchInput'
export
default
{
name
:
'GlobalSearch'
,
components
:
{
SearchInput
},
data
()
{
return
{
keyword
:
null
}
},
methods
:
{
handleSearch
(
val
)
{
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.global-search
{
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
.search-input
{
width
:
100%
;
padding-left
:
40px
;
}
main
{
background
:
#fafafa
;
height
:
100%
;
padding
:
20px
15px
;
.search-history-title
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
span
{
color
:
#333333
;
font-size
:
12px
;
}
.clear
{
width
:
25px
;
height
:
25px
;
background
:
white
;
}
}
.search-history-values
{
padding-top
:
5px
;
display
:
flex
;
flex-wrap
:
wrap
;
span
{
background
:
white
;
line-height
:
30px
;
font-size
:
12px
;
padding
:
0
15px
;
border-radius
:
15px
;
color
:
#161818
;
margin-right
:
10px
;
margin-bottom
:
10px
;
}
}
}
}
</
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