tradeScreen/src/view/index.vue

121 lines
2.5 KiB
Vue
Raw Normal View History

2023-11-22 18:30:06 +08:00
<template>
2023-11-25 18:35:23 +08:00
<div class="box" :style="{ opacity: loading ? 0 : 1 }">
2023-11-23 19:39:47 +08:00
<div class="body">
<div class="l">
2023-12-07 19:05:27 +08:00
<topLeft :areaCodes="areaCodes" />
2023-11-23 19:39:47 +08:00
</div>
<div class="c" id="">
2023-12-07 19:05:27 +08:00
<topCenter :areaCodes="areaCodes"></topCenter>
2023-11-23 19:39:47 +08:00
</div>
<div class="r">
2023-12-07 19:05:27 +08:00
<topRight :areaCodes="areaCodes"></topRight>
2023-11-23 19:39:47 +08:00
</div>
</div>
<div class="foot">
<div class="foot-l">
2023-12-07 19:05:27 +08:00
<bottomLeft :areaCodes="areaCodes"></bottomLeft>
2023-11-23 19:39:47 +08:00
</div>
<div class="c">
2023-12-07 19:05:27 +08:00
<bottomCenter :areaCodes="areaCodes"></bottomCenter>
2023-11-23 19:39:47 +08:00
</div>
<div class="r">
2023-12-07 19:05:27 +08:00
<bottomRight :areaCodes="areaCodes"></bottomRight>
2023-11-23 19:39:47 +08:00
</div>
</div>
2023-11-22 18:30:06 +08:00
</div>
</template>
<script setup>
2023-11-23 19:39:47 +08:00
import { ref, reactive } from "vue"
2023-12-07 19:05:27 +08:00
import topLeft from "@/components/index/topLeft.vue"
import topCenter from "@/components/index/topCenter.vue"
import topRight from "@/components/index/topRight.vue"
import bottomLeft from "@/components/index/bottomLeft.vue"
import bottomCenter from "@/components/index/bottomCenter.vue"
import bottomRight from "@/components/index/bottomRight.vue"
2023-12-08 18:51:02 +08:00
import { areaObj } from '@/store/index.js'
2023-12-11 18:35:55 +08:00
import { useRouter } from "vue-router"
const router = useRouter()
2023-12-08 18:51:02 +08:00
const areaStore = areaObj()
2023-12-07 19:05:27 +08:00
const areaCodes = reactive({
2023-12-08 18:51:02 +08:00
...areaStore.area
2023-12-07 19:05:27 +08:00
})
const loading = ref(false)
2023-11-22 18:30:06 +08:00
</script>
<style lang="scss">
2023-11-23 19:39:47 +08:00
@keyframes jump {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
100% {
transform: translateY(0);
}
}
.body {
2023-11-25 18:35:23 +08:00
height: 45vh;
2023-11-23 19:39:47 +08:00
display: flex;
2023-11-25 18:35:23 +08:00
margin-top: 1vh;
justify-content: space-between;
2023-11-23 19:39:47 +08:00
.l {
2023-11-25 18:35:23 +08:00
width: 25vw;
2023-11-23 19:39:47 +08:00
height: 100%;
2023-11-25 18:35:23 +08:00
position: relative;
2023-11-23 19:39:47 +08:00
}
.c {
box-sizing: border-box;
2023-11-25 18:35:23 +08:00
width: 48vw;
2023-11-23 19:39:47 +08:00
height: 100%;
2023-11-25 18:35:23 +08:00
display: flex;
flex-direction: column;
justify-content: space-between;
2023-11-23 19:39:47 +08:00
}
.r {
2023-11-25 18:35:23 +08:00
width: 25vw;
2023-11-23 19:39:47 +08:00
height: 100%;
2023-11-25 18:35:23 +08:00
position: relative;
2023-11-23 19:39:47 +08:00
}
}
.foot {
2023-11-25 18:35:23 +08:00
margin-top: 1vh;
height: 46vh;
2023-11-23 19:39:47 +08:00
display: flex;
2023-11-25 18:35:23 +08:00
justify-content: space-between;
2023-11-23 19:39:47 +08:00
.foot-l {
2023-11-25 18:35:23 +08:00
width: 25vw;
2023-11-23 19:39:47 +08:00
height: 100%;
2023-11-25 18:35:23 +08:00
position: relative;
2023-11-23 19:39:47 +08:00
}
.c {
2023-11-25 18:35:23 +08:00
width: 48vw;
position: relative;
2023-11-23 19:39:47 +08:00
height: 100%;
2023-11-25 18:35:23 +08:00
box-sizing: border-box;
2023-11-23 19:39:47 +08:00
}
.r {
2023-11-25 18:35:23 +08:00
width: 25vw;
2023-11-23 19:39:47 +08:00
height: 100%;
2023-11-25 18:35:23 +08:00
position: relative;
2023-11-27 18:34:57 +08:00
}
}
2023-11-22 18:30:06 +08:00
</style>