Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
ycc-website
Commits
efa4ae59
Commit
efa4ae59
authored
Jan 21, 2022
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:头尾css调整
parent
9ead4031
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
Header.vue
src/layout/MainPage/Header.vue
+1
-5
index.vue
src/layout/MainPage/index.vue
+4
-4
No files found.
src/layout/MainPage/Header.vue
View file @
efa4ae59
<
template
>
<
template
>
<div
class=
"fixed
min-w-1200 top-0 w-full z-50 flex justify-center ease-in duration-200"
:class=
"
{'bg-white': $route.path !== '/home' || !isTop
}">
<div
class=
"fixed
top-0 w-full z-50 flex justify-center ease-in duration-200"
:class=
"
{'bg-white': $route.path !== '/home' || !isTop, 'min-w-1200': !isMobile
}">
<div
v-if=
"!isMobile"
class=
"min-w-1200 h-16 text-footer-color md:w-bodySet flex justify-between items-center ease-in duration-500"
>
<div
v-if=
"!isMobile"
class=
"min-w-1200 h-16 text-footer-color md:w-bodySet flex justify-between items-center ease-in duration-500"
>
<div
class=
"flex items-center"
>
<div
class=
"flex items-center"
>
<img
src=
"@/assets/images/header/logo.png"
alt=
"logo"
width=
"164"
>
<img
src=
"@/assets/images/header/logo.png"
alt=
"logo"
width=
"164"
>
...
@@ -118,6 +118,3 @@ export default Vue.extend({
...
@@ -118,6 +118,3 @@ export default Vue.extend({
}
}
})
})
</
script
>
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/layout/MainPage/index.vue
View file @
efa4ae59
<
template
>
<
template
>
<div
:class=
"
{'ycc_container': !isMobile}">
<div
:class=
"
{'ycc_container': !isMobile}">
<
!--
<main-header></main-header>
--
>
<
main-header></main-header
>
<div
class=
"bg-gray-50"
>
<div
class=
"bg-gray-50"
>
<keep-alive
name=
"newsLists"
>
<keep-alive
name=
"newsLists"
>
<router-view
/>
<router-view
/>
</keep-alive>
</keep-alive>
</div>
</div>
<
!--
<main-footer></main-footer>
--
>
<
main-footer></main-footer
>
</div>
</div>
</
template
>
</
template
>
...
@@ -26,8 +26,8 @@ export default Vue.extend({
...
@@ -26,8 +26,8 @@ export default Vue.extend({
}
}
},
},
components
:
{
components
:
{
//
"main-header": () => import("./Header.vue"),
"main-header"
:
()
=>
import
(
"./Header.vue"
),
//
"main-footer": () => import("./Footer.vue"),
"main-footer"
:
()
=>
import
(
"./Footer.vue"
),
}
}
});
});
</
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