Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-template
Project
Project
Details
Activity
Releases
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
张伯涛
web-template
Commits
b08e1321
Commit
b08e1321
authored
Sep 06, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web系统框架初步搭建
parent
b64577a4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
308 additions
and
13 deletions
+308
-13
index.vue
src/views/EnterpriseAppeal/index.vue
+33
-2
index.vue
src/views/OneClickService/index.vue
+31
-2
index.vue
src/views/PolicyDirect/index.vue
+33
-2
index.vue
src/views/ServiceShare/index.vue
+33
-2
index.vue
src/views/activityInformation/index.vue
+31
-2
index.vue
src/views/homePage/components/NavList/index.vue
+88
-0
index.vue
src/views/homePage/index.vue
+26
-1
index.vue
src/views/tool/index.vue
+33
-2
No files found.
src/views/EnterpriseAppeal/index.vue
View file @
b08e1321
<
template
>
<
template
>
<div>
企业诉求
</div>
<div>
<HomeSearch
/>
<nav-list
:list=
"navList"
:current-menu=
"'/EnterpriseAppeal/index'"
/>
<div
class=
"policyDirect-content"
>
企业诉求
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeSearch
from
'@/views/homePage/components/searchHome/index'
import
NavList
from
'@/views/homePage/components/NavList/index'
export
default
{
export
default
{
name
:
'Index'
name
:
'Index'
,
components
:
{
HomeSearch
,
NavList
},
data
()
{
return
{
}
},
computed
:
{
navList
()
{
const
navArray
=
[
{
menuName
:
'首页'
,
path
:
'/homePage/index'
,
query
:
{
}},
{
menuName
:
'政策直达'
,
path
:
'/PolicyDirect/index'
,
query
:
{
}},
{
menuName
:
'服务共享'
,
path
:
'/ServiceShare/index'
},
{
menuName
:
'企业诉求'
,
path
:
'/EnterpriseAppeal/index'
,
query
:
{
}},
{
menuName
:
'一键办事'
,
path
:
'/OneClickService/index'
,
query
:
{
}},
{
menuName
:
'活动信息'
,
path
:
'/activityInformation/index'
,
query
:
{
}},
{
menuName
:
'工具'
,
path
:
'/tool/index'
,
query
:
{
}}
]
return
navArray
}
}
}
}
</
script
>
</
script
>
...
...
src/views/OneClickService/index.vue
View file @
b08e1321
<
template
>
<
template
>
<div>
<div>
<HomeSearch
/>
<nav-list
:list=
"navList"
:current-menu=
"'/OneClickService/index'"
/>
<div
class=
"policyDirect-content"
>
一键办事
一键办事
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeSearch
from
'@/views/homePage/components/searchHome/index'
import
NavList
from
'@/views/homePage/components/NavList/index'
export
default
{
export
default
{
name
:
'Index'
name
:
'Index'
,
components
:
{
HomeSearch
,
NavList
},
data
()
{
return
{
}
},
computed
:
{
navList
()
{
const
navArray
=
[
{
menuName
:
'首页'
,
path
:
'/homePage/index'
,
query
:
{
}},
{
menuName
:
'政策直达'
,
path
:
'/PolicyDirect/index'
,
query
:
{
}},
{
menuName
:
'服务共享'
,
path
:
'/ServiceShare/index'
},
{
menuName
:
'企业诉求'
,
path
:
'/EnterpriseAppeal/index'
,
query
:
{
}},
{
menuName
:
'一键办事'
,
path
:
'/OneClickService/index'
,
query
:
{
}},
{
menuName
:
'活动信息'
,
path
:
'/activityInformation/index'
,
query
:
{
}},
{
menuName
:
'工具'
,
path
:
'/tool/index'
,
query
:
{
}}
]
return
navArray
}
}
}
}
</
script
>
</
script
>
...
...
src/views/PolicyDirect/index.vue
View file @
b08e1321
<
template
>
<
template
>
<div>
政策直达
</div>
<div>
<HomeSearch
/>
<nav-list
:list=
"navList"
:current-menu=
"'/PolicyDirect/index'"
/>
<div
class=
"policyDirect-content"
>
政策直达
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeSearch
from
'@/views/homePage/components/searchHome/index'
import
NavList
from
'@/views/homePage/components/NavList/index'
export
default
{
export
default
{
name
:
'Index'
name
:
'Index'
,
components
:
{
HomeSearch
,
NavList
},
data
()
{
return
{
}
},
computed
:
{
navList
()
{
const
navArray
=
[
{
menuName
:
'首页'
,
path
:
'/homePage/index'
,
query
:
{
}},
{
menuName
:
'政策直达'
,
path
:
'/PolicyDirect/index'
,
query
:
{
}},
{
menuName
:
'服务共享'
,
path
:
'/ServiceShare/index'
},
{
menuName
:
'企业诉求'
,
path
:
'/EnterpriseAppeal/index'
,
query
:
{
}},
{
menuName
:
'一键办事'
,
path
:
'/OneClickService/index'
,
query
:
{
}},
{
menuName
:
'活动信息'
,
path
:
'/activityInformation/index'
,
query
:
{
}},
{
menuName
:
'工具'
,
path
:
'/tool/index'
,
query
:
{
}}
]
return
navArray
}
}
}
}
</
script
>
</
script
>
...
...
src/views/ServiceShare/index.vue
View file @
b08e1321
<
template
>
<
template
>
<div>
服务共享
</div>
<div>
<HomeSearch
/>
<nav-list
:list=
"navList"
:current-menu=
"'/ServiceShare/index'"
/>
<div
class=
"policyDirect-content"
>
服务共享
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeSearch
from
'@/views/homePage/components/searchHome/index'
import
NavList
from
'@/views/homePage/components/NavList/index'
export
default
{
export
default
{
name
:
'Index'
name
:
'Index'
,
components
:
{
HomeSearch
,
NavList
},
data
()
{
return
{
}
},
computed
:
{
navList
()
{
const
navArray
=
[
{
menuName
:
'首页'
,
path
:
'/homePage/index'
,
query
:
{
}},
{
menuName
:
'政策直达'
,
path
:
'/PolicyDirect/index'
,
query
:
{
}},
{
menuName
:
'服务共享'
,
path
:
'/ServiceShare/index'
},
{
menuName
:
'企业诉求'
,
path
:
'/EnterpriseAppeal/index'
,
query
:
{
}},
{
menuName
:
'一键办事'
,
path
:
'/OneClickService/index'
,
query
:
{
}},
{
menuName
:
'活动信息'
,
path
:
'/activityInformation/index'
,
query
:
{
}},
{
menuName
:
'工具'
,
path
:
'/tool/index'
,
query
:
{
}}
]
return
navArray
}
}
}
}
</
script
>
</
script
>
...
...
src/views/activityInformation/index.vue
View file @
b08e1321
<
template
>
<
template
>
<div>
<div>
<HomeSearch
/>
<nav-list
:list=
"navList"
:current-menu=
"'/activityInformation/index'"
/>
<div
class=
"policyDirect-content"
>
活动信息
活动信息
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeSearch
from
'@/views/homePage/components/searchHome/index'
import
NavList
from
'@/views/homePage/components/NavList/index'
export
default
{
export
default
{
name
:
'Index'
name
:
'Index'
,
components
:
{
HomeSearch
,
NavList
},
data
()
{
return
{
}
},
computed
:
{
navList
()
{
const
navArray
=
[
{
menuName
:
'首页'
,
path
:
'/homePage/index'
,
query
:
{
}},
{
menuName
:
'政策直达'
,
path
:
'/PolicyDirect/index'
,
query
:
{
}},
{
menuName
:
'服务共享'
,
path
:
'/ServiceShare/index'
},
{
menuName
:
'企业诉求'
,
path
:
'/EnterpriseAppeal/index'
,
query
:
{
}},
{
menuName
:
'一键办事'
,
path
:
'/OneClickService/index'
,
query
:
{
}},
{
menuName
:
'活动信息'
,
path
:
'/activityInformation/index'
,
query
:
{
}},
{
menuName
:
'工具'
,
path
:
'/tool/index'
,
query
:
{
}}
]
return
navArray
}
}
}
}
</
script
>
</
script
>
...
...
src/views/homePage/components/NavList/index.vue
0 → 100644
View file @
b08e1321
<
template
>
<div
class=
"sf-nav-list"
>
<ul
class=
"sf-menu"
>
<li
v-for=
"(menu, index) in list"
:key=
"index"
:class=
"
{'sf-menu-item': true, 'sf-menu-item__active': currentMenu === menu.path}"
@click.stop="currentMenuChange(menu)"
>
{{
menu
.
menuName
}}
</li>
</ul>
</div>
</
template
>
<
script
>
export
default
{
name
:
'NavList'
,
props
:
{
list
:
{
type
:
Array
,
default
()
{
return
[]
}
},
currentMenu
:
{
type
:
String
,
default
()
{
return
'/homePage/index'
}
}
},
data
()
{
return
{
// currentMenu: '/'
}
},
mounted
()
{
},
methods
:
{
currentMenuChange
({
path
,
query
})
{
this
.
$router
.
push
({
path
,
query
},
(
s
)
=>
{
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.sf-nav-list
{
background
:
linear-gradient
(
180deg
,
#21ADF3
0%
,
#018FD6
100%
);
.sf-menu
{
overflow
:
hidden
;
list-style
:
none
;
font-size
:
19px
;
color
:
#333333
;
padding
:
0
;
display
:
flex
;
width
:
1200px
;
margin
:
0
auto
;
justify-content
:
flex-start
;
.sf-menu-item
{
cursor
:
pointer
;
display
:
block
;
letter-spacing
:
1px
;
font-weight
:
500
;
float
:
left
;
height
:
50px
;
line-height
:
50px
;
background
:
linear-gradient
(
180deg
,
#21ADF3
0%
,
#018FD6
100%
);
padding
:
0
25px
;
color
:
#FFFFFF
;
width
:
149px
;
text-align
:
center
;
}
.sf-menu-item
:not
(
:last-of-type
)
{
border-right
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.7490196078431373
);
}
.sf-menu-item.sf-menu-item__active
{
background
:
#FFFFFF
;
color
:
#018FD6
;
font-weight
:
bold
;
border-top
:
3px
solid
rgba
(
220
,
25
,
25
,
1
);
}
}
}
</
style
>
src/views/homePage/index.vue
View file @
b08e1321
<
template
>
<
template
>
<div>
<div>
<HomeSearch
/>
<HomeSearch
/>
<nav-list
:list=
"navList"
/>
<div
class=
"home-content"
>
首页
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeSearch
from
'./components/searchHome/index'
import
HomeSearch
from
'./components/searchHome/index'
import
NavList
from
'./components/NavList/index'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
components
:
{
components
:
{
HomeSearch
HomeSearch
,
NavList
},
data
()
{
return
{
}
},
computed
:
{
navList
()
{
const
navArray
=
[
{
menuName
:
'首页'
,
path
:
'/homePage/index'
,
query
:
{
}},
{
menuName
:
'政策直达'
,
path
:
'/PolicyDirect/index'
,
query
:
{
}},
{
menuName
:
'服务共享'
,
path
:
'/ServiceShare/index'
},
{
menuName
:
'企业诉求'
,
path
:
'/EnterpriseAppeal/index'
,
query
:
{
}},
{
menuName
:
'一键办事'
,
path
:
'/OneClickService/index'
,
query
:
{
}},
{
menuName
:
'活动信息'
,
path
:
'/activityInformation/index'
,
query
:
{
}},
{
menuName
:
'工具'
,
path
:
'/tool/index'
,
query
:
{
}}
]
return
navArray
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/tool/index.vue
View file @
b08e1321
<
template
>
<
template
>
<div>
工具
</div>
<div>
<HomeSearch
/>
<nav-list
:list=
"navList"
:current-menu=
"'/tool/index'"
/>
<div
class=
"policyDirect-content"
>
工具
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HomeSearch
from
'@/views/homePage/components/searchHome/index'
import
NavList
from
'@/views/homePage/components/NavList/index'
export
default
{
export
default
{
name
:
'Index'
name
:
'Index'
,
components
:
{
HomeSearch
,
NavList
},
data
()
{
return
{
}
},
computed
:
{
navList
()
{
const
navArray
=
[
{
menuName
:
'首页'
,
path
:
'/homePage/index'
,
query
:
{
}},
{
menuName
:
'政策直达'
,
path
:
'/PolicyDirect/index'
,
query
:
{
}},
{
menuName
:
'服务共享'
,
path
:
'/ServiceShare/index'
},
{
menuName
:
'企业诉求'
,
path
:
'/EnterpriseAppeal/index'
,
query
:
{
}},
{
menuName
:
'一键办事'
,
path
:
'/OneClickService/index'
,
query
:
{
}},
{
menuName
:
'活动信息'
,
path
:
'/activityInformation/index'
,
query
:
{
}},
{
menuName
:
'工具'
,
path
:
'/tool/index'
,
query
:
{
}}
]
return
navArray
}
}
}
}
</
script
>
</
script
>
...
...
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