Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
4a2dc31c
Commit
4a2dc31c
authored
Jun 24, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6981d7f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
29 deletions
+42
-29
HomeLayout.vue
src/layouts/HomeLayout.vue
+13
-11
About.vue
src/pages/About.vue
+10
-7
routes.js
src/router/routes.js
+19
-11
No files found.
src/layouts/HomeLayout.vue
View file @
4a2dc31c
...
...
@@ -35,16 +35,20 @@
},
desc
:
"這是一家非常牛逼的旅遊網站"
},
headType
:
0
,
dataList
:{}
headType
:
1
,
dataList
:
{}
};
},
created
()
{
console
.
log
(
"111"
);
this
.
$root
.
$on
(
'change-head-style'
,
param
=>
{
this
.
changeHeadHandler
(
param
);
this
.
getData
();
})
},
mounted
()
{
this
.
getData
();
},
methods
:
{
changeHeadHandler
(
t
)
{
this
.
headType
=
t
;
...
...
@@ -57,15 +61,13 @@
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
if
(
this
.
dataList
)
{
this
.
baseinfo
.
logo
=
this
.
dataList
.
Config
.
Logo
;
this
.
baseinfo
.
name
=
this
.
dataList
.
Config
.
Name
;
this
.
baseinfo
.
nav
.
navs
=
this
.
dataList
.
HeaderList
;
this
.
baseinfo
.
nav
.
bg
=
this
.
dataList
.
Config
.
BgColor
;
this
.
dataList
=
res
.
data
.
data
;
if
(
this
.
dataList
)
{
this
.
baseinfo
.
logo
=
this
.
dataList
.
Config
.
Logo
;
this
.
baseinfo
.
name
=
this
.
dataList
.
Config
.
Name
;
this
.
baseinfo
.
nav
.
navs
=
this
.
dataList
.
HeaderList
;
this
.
baseinfo
.
nav
.
bg
=
this
.
dataList
.
Config
.
BgColor
;
}
}
else
{
}
},
err
=>
{}
...
...
src/pages/About.vue
View file @
4a2dc31c
<
template
>
<div>
关于我们
</div>
<q-page>
<div>
关于我们
</div>
</q-page>
</
template
>
<
script
>
export
default
{
props
:
[]
,
name
:
"PageAbout"
,
data
()
{
return
{
obj
:{},
};
},
created
()
{},
mounted
()
{
},
mounted
()
{},
methods
:
{
},
...
...
src/router/routes.js
View file @
4a2dc31c
const
routes
=
[{
path
:
'/'
,
component
:
()
=>
import
(
'layouts/HomeLayout.vue'
),
import
(
'layouts/HomeLayout.vue'
),
children
:
[{
path
:
''
,
path
:
'
/Index
'
,
component
:
()
=>
import
(
'pages/Index.vue'
)
}]
}]
import
(
'pages/Index.vue'
)
},
{
path
:
'/About'
,
component
:
()
=>
import
(
'pages/About.vue'
)
}
]
},
]
// Always leave this as last one
if
(
process
.
env
.
MODE
!==
'ssr'
)
{
routes
.
push
({
path
:
'*'
,
component
:
()
=>
import
(
'pages/Error404.vue'
)
})
routes
.
push
({
path
:
'*'
,
component
:
()
=>
import
(
'pages/Error404.vue'
)
})
}
export
default
routes
\ No newline at end of file
export
default
routes
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