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 @@
...
@@ -35,16 +35,20 @@
},
},
desc
:
"這是一家非常牛逼的旅遊網站"
desc
:
"這是一家非常牛逼的旅遊網站"
},
},
headType
:
0
,
headType
:
1
,
dataList
:{}
dataList
:
{}
};
};
},
},
created
()
{
created
()
{
console
.
log
(
"111"
);
this
.
$root
.
$on
(
'change-head-style'
,
param
=>
{
this
.
$root
.
$on
(
'change-head-style'
,
param
=>
{
this
.
changeHeadHandler
(
param
);
this
.
changeHeadHandler
(
param
);
this
.
getData
();
})
})
},
},
mounted
()
{
this
.
getData
();
},
methods
:
{
methods
:
{
changeHeadHandler
(
t
)
{
changeHeadHandler
(
t
)
{
this
.
headType
=
t
;
this
.
headType
=
t
;
...
@@ -57,15 +61,13 @@
...
@@ -57,15 +61,13 @@
res
=>
{
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
this
.
dataList
=
res
.
data
.
data
;
if
(
this
.
dataList
)
{
if
(
this
.
dataList
)
{
this
.
baseinfo
.
logo
=
this
.
dataList
.
Config
.
Logo
;
this
.
baseinfo
.
logo
=
this
.
dataList
.
Config
.
Logo
;
this
.
baseinfo
.
name
=
this
.
dataList
.
Config
.
Name
;
this
.
baseinfo
.
name
=
this
.
dataList
.
Config
.
Name
;
this
.
baseinfo
.
nav
.
navs
=
this
.
dataList
.
HeaderList
;
this
.
baseinfo
.
nav
.
navs
=
this
.
dataList
.
HeaderList
;
this
.
baseinfo
.
nav
.
bg
=
this
.
dataList
.
Config
.
BgColor
;
this
.
baseinfo
.
nav
.
bg
=
this
.
dataList
.
Config
.
BgColor
;
}
}
}
else
{
}
}
},
},
err
=>
{}
err
=>
{}
...
...
src/pages/About.vue
View file @
4a2dc31c
<
template
>
<
template
>
<div>
关于我们
<q-page>
</div>
<div>
关于我们
</div>
</q-page>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:
[]
,
name
:
"PageAbout"
,
data
()
{
data
()
{
return
{
return
{
obj
:{},
};
};
},
},
created
()
{},
created
()
{},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
},
},
...
...
src/router/routes.js
View file @
4a2dc31c
const
routes
=
[{
const
routes
=
[{
path
:
'/'
,
path
:
'/'
,
component
:
()
=>
component
:
()
=>
import
(
'layouts/HomeLayout.vue'
),
import
(
'layouts/HomeLayout.vue'
),
children
:
[{
children
:
[{
path
:
''
,
path
:
'
/Index
'
,
component
:
()
=>
component
:
()
=>
import
(
'pages/Index.vue'
)
import
(
'pages/Index.vue'
)
}]
},
}]
{
path
:
'/About'
,
component
:
()
=>
import
(
'pages/About.vue'
)
}
]
},
]
// Always leave this as last one
// Always leave this as last one
if
(
process
.
env
.
MODE
!==
'ssr'
)
{
if
(
process
.
env
.
MODE
!==
'ssr'
)
{
routes
.
push
({
routes
.
push
({
path
:
'*'
,
path
:
'*'
,
component
:
()
=>
component
:
()
=>
import
(
'pages/Error404.vue'
)
import
(
'pages/Error404.vue'
)
})
})
}
}
export
default
routes
export
default
routes
\ No newline at end of file
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