添加看板
parent
7c212afa71
commit
062d620795
Binary file not shown.
After Width: | Height: | Size: 831 KiB |
Binary file not shown.
After Width: | Height: | Size: 1018 KiB |
Binary file not shown.
After Width: | Height: | Size: 778 KiB |
Binary file not shown.
After Width: | Height: | Size: 846 KiB |
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="app">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "Liner",
|
||||
data() {
|
||||
return {
|
||||
time:'',
|
||||
date:'',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,61 @@
|
||||
<template>
|
||||
<div>
|
||||
<router-view></router-view>
|
||||
<div class="time" id="time">{{ time }}</div>
|
||||
<div class="date" id="date">{{ date }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {AppMain} from './components'
|
||||
|
||||
let getDateIntervalFun = null
|
||||
export default {
|
||||
name: 'BoardIndex',
|
||||
components: {
|
||||
AppMain,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
time: '1',
|
||||
date: '1'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
const getDate = () => {
|
||||
let date = new Date()
|
||||
let YYYY = date.getFullYear()
|
||||
let MM = (date.getMonth() + 1).toString().length === 1 ? ('0' + (date.getMonth() + 1)) : (date.getMonth() + 1)
|
||||
let dd = (date.getDate() + 1).toString().length === 1 ? ('0' + (date.getDate() + 1)) : (date.getDate() + 1)
|
||||
let HH = (date.getHours() + 1).toString().length === 1 ? ('0' + (date.getHours() + 1)) : (date.getHours() + 1)
|
||||
let mm = (date.getMinutes() + 1).toString().length === 1 ? ('0' + (date.getMinutes() + 1)) : (date.getMinutes() + 1)
|
||||
let ss = (date.getSeconds() + 1).toString().length === 1 ? ('0' + (date.getSeconds() + 1)) : (date.getSeconds() + 1)
|
||||
this.date = `${YYYY} - ${MM} - ${dd}`
|
||||
this.time = `${HH} : ${mm} : ${ss}`
|
||||
}
|
||||
getDateIntervalFun = setInterval(getDate,1000)
|
||||
},
|
||||
beforeDestroy() {
|
||||
getDateIntervalFun = null
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.time, .date {
|
||||
position: absolute;
|
||||
font-size: 0.8vw;
|
||||
color: #fcfcfc;
|
||||
transform: translate(-50%, -50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.time {
|
||||
top: 3.2%;
|
||||
left: 85.8%;
|
||||
}
|
||||
|
||||
.date {
|
||||
top: 3.2%;
|
||||
left: 94.1%;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "Liner",
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
created() {
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.app-container {
|
||||
background-image: url("../../../assets/board/liner.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue