Commit 6b1f0224 by 前端

修改首页

1 parent 7d011225
...@@ -26,11 +26,9 @@ ...@@ -26,11 +26,9 @@
</div> </div>
</div> </div>
<!-- 欢迎词 end --> <!-- 欢迎词 end -->
<fixed-arrow />
</div> </div>
</template> </template>
<script> <script>
import FixedArrow from '@/components/Arrow.vue';
export default { export default {
name: 'TopHead', name: 'TopHead',
props: { props: {
...@@ -39,9 +37,6 @@ export default { ...@@ -39,9 +37,6 @@ export default {
default: '广联数科运营看板' default: '广联数科运营看板'
} }
}, },
components:{
FixedArrow
},
data() { data() {
return { return {
month: '', month: '',
...@@ -65,7 +60,7 @@ export default { ...@@ -65,7 +60,7 @@ export default {
this.month = m.getMonth() + 1 this.month = m.getMonth() + 1
this.day = m.getDate() this.day = m.getDate()
this.week = weekList[m.getDay()] this.week = weekList[m.getDay()]
this.initTime(); this.initTime()
}, },
methods: { methods: {
// 定时获取时间 // 定时获取时间
......
...@@ -6,31 +6,37 @@ ...@@ -6,31 +6,37 @@
* @LastEditTime: 2024-01-26 11:42:10 * @LastEditTime: 2024-01-26 11:42:10
--> -->
<template> <template>
<div class="layout"> <div class="page_layout">
<view-container> <!-- 顶部 开始 -->
<template #title> <div class="head">
<!-- <view-title> <top-head />
</view-title> --> </div>
<Head></Head>
</template> <!-- 顶部 end -->
<template #content>
<!-- <view-content></view-content> --> <!-- 内容区域 开始 -->
<!-- <components :is="tabName"></components> --> <div class="content">
<view-life-scene-data></view-life-scene-data> <view-life-scene-data></view-life-scene-data>
</template> </div>
</view-container> <!-- 内容区域 end -->
<!-- 左右箭头 开始 -->
<fixed-arrow />
<!-- 左右箭头 end -->
</div> </div>
</template> </template>
<script> <script>
import './pages' import './pages'
import Head from '@/components/Head.vue' import TopHead from '@/components/Head.vue'
import ViewLifeSceneData from './pages/ViewLifeSceneData.vue' import ViewLifeSceneData from './pages/ViewLifeSceneData.vue'
import FixedArrow from '@/components/Arrow.vue'
export default { export default {
name: '', name: '',
components: { components: {
Head, TopHead,
ViewLifeSceneData ViewLifeSceneData,
FixedArrow
}, },
computed: { computed: {
tabName() { tabName() {
...@@ -82,6 +88,23 @@ export default { ...@@ -82,6 +88,23 @@ export default {
} }
} }
</script> </script>
<style lang="scss">
<style lang="scss" scoped></style> body,
html {
background: #061422;
}
</style>
<style lang="scss" scoped>
.page_layout {
display: flex;
height: 100vh;
flex-direction: column;
.head {
flex-shrink: 0;
}
.content {
flex: 1;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!