Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
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
张冬
web-site
Commits
cc6ff2b2
Commit
cc6ff2b2
authored
Sep 21, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页---
parent
2fcc836c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
+19
-8
aside.vue
components/aside.vue
+3
-0
header.vue
components/header.vue
+1
-0
nav.vue
components/nav.vue
+4
-1
index.vue
pages/index/index.vue
+11
-7
No files found.
components/aside.vue
View file @
cc6ff2b2
...
@@ -73,6 +73,9 @@
...
@@ -73,6 +73,9 @@
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.el-menu-item
{
cursor
:
pointer
;
}
.sidebar
{
.sidebar
{
width
:
2.4rem
;
width
:
2.4rem
;
border
:
1px
solid
rgba
(
219
,
219
,
219
,
1
);
border
:
1px
solid
rgba
(
219
,
219
,
219
,
1
);
...
...
components/header.vue
View file @
cc6ff2b2
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
.right-pos
{
.right-pos
{
position
:
absolute
;
position
:
absolute
;
left
:
980px
;
left
:
980px
;
cursor
:
pointer
;
}
}
.bg
{}
.bg
{}
...
...
components/nav.vue
View file @
cc6ff2b2
<
template
>
<
template
>
<div
class=
"nav"
>
<div
class=
"nav"
>
<div
class=
"nav-list content flex"
>
<div
class=
"nav-list content flex"
>
<div
:to=
"item.to"
tag=
"div"
:class=
"index==nav?'active':''"
v-for=
"(item,index) in linklist"
:key=
"index"
<div
class=
"nav-sty"
:to=
"item.to"
tag=
"div"
:class=
"index==nav?'active':''"
v-for=
"(item,index) in linklist"
:key=
"index"
@
click=
"change(index,item.to)"
>
{{
item
.
name
}}
</div>
@
click=
"change(index,item.to)"
>
{{
item
.
name
}}
</div>
</div>
</div>
</div>
</div>
...
@@ -88,6 +88,9 @@
...
@@ -88,6 +88,9 @@
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.nav-sty
{
cursor
:
pointer
;
}
.nav
{
.nav
{
width
:
100%
;
width
:
100%
;
border-bottom
:
.05rem
solid
#D6D6D6
;
border-bottom
:
.05rem
solid
#D6D6D6
;
...
...
pages/index/index.vue
View file @
cc6ff2b2
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
<div
class=
"banner"
>
<div
class=
"banner"
>
<el-carousel
trigger=
"click"
height=
"5.41rem"
>
<el-carousel
trigger=
"click"
height=
"5.41rem"
>
<el-carousel-item
v-for=
"(item,index) in picArr"
:key=
"index"
>
<el-carousel-item
v-for=
"(item,index) in picArr"
:key=
"index"
>
<img
:src=
"item.picUrl"
alt=
""
>
<a
:href=
"item.picUrl"
>
<img
:src=
"item.picUrl"
alt=
""
class=
"src-img"
>
</a>
</el-carousel-item>
</el-carousel-item>
</el-carousel>
</el-carousel>
</div>
</div>
...
@@ -19,8 +21,8 @@
...
@@ -19,8 +21,8 @@
<div
class=
"content message"
>
<div
class=
"content message"
>
<div
v-for=
"(item,index) in messageList"
:key=
"index"
class=
"message-item"
>
<div
v-for=
"(item,index) in messageList"
:key=
"index"
class=
"message-item"
>
<div
class=
"t3"
style=
"margin-bottom: 0.2rem;"
>
{{
item
.
head
}}
</div>
<div
class=
"t3"
style=
"margin-bottom: 0.2rem;"
>
{{
item
.
head
}}
</div>
<div
class=
"flex-between"
>
<div
class=
"flex-between"
>
<img
:src=
"item.src"
alt=
""
>
<img
:src=
"item.src"
alt=
""
>
<div>
{{
item
.
title
}}
</div>
<div>
{{
item
.
title
}}
</div>
</div>
</div>
</div>
</div>
...
@@ -62,9 +64,7 @@ import {getSecond} from '@/common/list.js'
...
@@ -62,9 +64,7 @@ import {getSecond} from '@/common/list.js'
//添加验证方法
//添加验证方法
async
getSecond
(){
async
getSecond
(){
let
tokenStr
=
window
.
localStorage
.
getItem
(
'token'
)
let
tokenStr
=
window
.
localStorage
.
getItem
(
'token'
)
if
(
!
tokenStr
){
if
(
tokenStr
){
this
.
$router
.
push
(
'/login/user'
)
}
else
{
this
.
showDefault
=
false
this
.
showDefault
=
false
const
{
data
:
res
}
=
await
getSecond
()
const
{
data
:
res
}
=
await
getSecond
()
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -91,7 +91,7 @@ import {getSecond} from '@/common/list.js'
...
@@ -91,7 +91,7 @@ import {getSecond} from '@/common/list.js'
checkout
(){
checkout
(){
window
.
localStorage
.
clear
()
window
.
localStorage
.
clear
()
this
.
$router
.
push
(
"/login/user"
)
this
.
$router
.
push
(
"/login/user"
)
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -132,6 +132,9 @@ import {getSecond} from '@/common/list.js'
...
@@ -132,6 +132,9 @@ import {getSecond} from '@/common/list.js'
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.src-img
{
cursor
:
pointer
;
}
.banner
{
.banner
{
width
:
9.16rem
;
width
:
9.16rem
;
height
:
5.41rem
;
height
:
5.41rem
;
...
@@ -174,6 +177,7 @@ import {getSecond} from '@/common/list.js'
...
@@ -174,6 +177,7 @@ import {getSecond} from '@/common/list.js'
font-size
:
.16rem
;
font-size
:
.16rem
;
font-weight
:
300
;
font-weight
:
300
;
color
:
rgba
(
4
,
134
,
254
,
1
);
color
:
rgba
(
4
,
134
,
254
,
1
);
cursor
:
pointer
;
}
}
.login
>
.author
{
.login
>
.author
{
...
...
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