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
b2b867a5
Commit
b2b867a5
authored
Nov 09, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
footer
parent
7a1cfc22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
16 deletions
+44
-16
footer.vue
components/footer.vue
+8
-6
nav.vue
components/nav.vue
+36
-10
No files found.
components/footer.vue
View file @
b2b867a5
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<div
class=
"t4"
>
{{
item
.
title
}}
</div>
<div
class=
"t4"
>
{{
item
.
title
}}
</div>
<ul>
<ul>
<li
class=
"t1"
v-for=
"(item,index) in item.list"
:key=
"index"
>
<li
class=
"t1"
v-for=
"(item,index) in item.list"
:key=
"index"
>
<
a
:href=
"item.url"
class=
"textcolor"
>
{{
item
.
name
}}
</a
>
<
span
class=
"textcolor"
@
click=
"xxxxmove(item.url)"
>
{{
item
.
name
}}
</span
>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -26,6 +26,11 @@ import {getMessagephone} from '@/common/list.js'
...
@@ -26,6 +26,11 @@ import {getMessagephone} from '@/common/list.js'
this
.
footList
[
3
].
list
[
1
].
name
=
`电子邮箱 :
${
res
.
data
.
email
}
`
this
.
footList
[
3
].
list
[
1
].
name
=
`电子邮箱 :
${
res
.
data
.
email
}
`
});
});
},
},
methods
:{
xxxxmove
(
url
){
this
.
$router
.
push
(
url
);
}
},
data
()
{
data
()
{
return
{
return
{
/* email:'605664467@qq.com', */
/* email:'605664467@qq.com', */
...
@@ -46,11 +51,11 @@ import {getMessagephone} from '@/common/list.js'
...
@@ -46,11 +51,11 @@ import {getMessagephone} from '@/common/list.js'
},
},
{
{
title
:
"关于我们"
,
title
:
"关于我们"
,
list
:
[{
name
:
"诚招英才"
},
{
name
:
"联系我们"
}]
list
:
[{
name
:
"诚招英才"
,
url
:
'/message/news?id=126'
},
{
name
:
"联系我们"
,
url
:
'/message/news?id=126'
}]
},
},
{
{
title
:
"客服中心"
,
title
:
"客服中心"
,
list
:
[{
name
:
"帮助中心"
},
{
name
:
"在线客服"
}]
list
:
[{
name
:
"帮助中心"
,
url
:
'/message/news?id=127'
},
{
name
:
"在线客服"
,
url
:
'/message/news?id=127'
}]
},
},
/* */
/* */
{
{
...
@@ -59,9 +64,6 @@ import {getMessagephone} from '@/common/list.js'
...
@@ -59,9 +64,6 @@ import {getMessagephone} from '@/common/list.js'
},
},
]
]
}
}
},
mothods
:{
}
}
}
}
</
script
>
</
script
>
...
...
components/nav.vue
View file @
b2b867a5
...
@@ -46,13 +46,30 @@ import inDex from '@/pages/index.vue'
...
@@ -46,13 +46,30 @@ import inDex from '@/pages/index.vue'
}
}
},
},
mounted
(){
mounted
(){
/* if(window.location.href="") */
let
href
=
window
.
location
.
href
.
split
(
"?id="
)[
1
]
if
(
href
==
"127"
){
this
.
nav
=
5
}
if
(
href
==
"126"
){
this
.
nav
=
5
}
let
path
=
this
.
$route
.
path
;
let
path
=
this
.
$route
.
path
;
/* */
console
.
log
(
"path======"
,
path
)
console
.
log
(
"path======"
,
path
)
console
.
log
(
path
!=
"/"
)
console
.
log
(
path
!=
"/"
)
if
(
path
!=
"/"
){
if
(
path
!=
"/"
){
path
=
"/"
if
(
path
.
startsWith
(
"/message/news"
)){
this
.
$router
.
push
(
path
)
this
.
$router
.
push
(
"/message/news?id=127"
)
this
.
$router
.
push
(
"/message/news"
)
}
else
{
path
=
"/"
;
this
.
$router
.
push
(
path
);
}
/* path="/" */
/* this.$router.push(path) */
}
}
/* if(path=="/"){
/* if(path=="/"){
this.nav = "0";
this.nav = "0";
...
@@ -61,6 +78,7 @@ import inDex from '@/pages/index.vue'
...
@@ -61,6 +78,7 @@ import inDex from '@/pages/index.vue'
}else if(path.indexOf("/notice")==0){
}else if(path.indexOf("/notice")==0){
this.nav = "4";
this.nav = "4";
} */
} */
switch
(
path
)
{
switch
(
path
)
{
case
'/'
:
case
'/'
:
this
.
nav
=
"0"
;
this
.
nav
=
"0"
;
...
@@ -92,6 +110,15 @@ import inDex from '@/pages/index.vue'
...
@@ -92,6 +110,15 @@ import inDex from '@/pages/index.vue'
case
"/notice/abortive/"
:
case
"/notice/abortive/"
:
this
.
nav
=
"4"
;
this
.
nav
=
"4"
;
break
;
break
;
case
"/notice/abortive/"
:
this
.
nav
=
"4"
;
break
;
case
"/message/news?id=126"
:
this
.
nav
=
"5"
;
break
;
case
"/message/news?id=127"
:
this
.
nav
=
"5"
;
break
;
}
}
},
},
methods
:
{
methods
:
{
...
@@ -102,13 +129,6 @@ import inDex from '@/pages/index.vue'
...
@@ -102,13 +129,6 @@ import inDex from '@/pages/index.vue'
getindex
()
{
getindex
()
{
let
path
=
this
.
$route
.
path
;
let
path
=
this
.
$route
.
path
;
/* if(path=="/"){
this.nav = "0";
}else if(path.indexOf("/message")==0){
this.nav = "5";
}else if(path.indexOf("/notice")==0){
this.nav = "4";
} */
switch
(
path
)
{
switch
(
path
)
{
case
'/'
:
case
'/'
:
this
.
nav
=
"0"
;
this
.
nav
=
"0"
;
...
@@ -140,6 +160,12 @@ import inDex from '@/pages/index.vue'
...
@@ -140,6 +160,12 @@ import inDex from '@/pages/index.vue'
case
"/notice/abortive/"
:
case
"/notice/abortive/"
:
this
.
nav
=
"4"
;
this
.
nav
=
"4"
;
break
;
break
;
case
"/message/news?id=126"
:
this
.
nav
=
"5"
;
break
;
case
"/message/news?id=127"
:
this
.
nav
=
"5"
;
break
;
}
}
}
}
...
...
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