Browse Source

首页布局

master
maochaoying 2 years ago
parent
commit
7736b80502
  1. 7
      src/components/Excel.vue
  2. 92
      src/components/Image.vue
  3. 187
      src/pages/index.vue
  4. 4
      src/store/modules/account.js

7
src/components/Excel.vue

@ -0,0 +1,7 @@
<template>
<div>excel</div>
</template>
<script setup></script>
<style lang="scss" scoped></style>

92
src/components/Image.vue

@ -0,0 +1,92 @@
<template>
<div class="image_container">
<!-- <img :src="I1" alt="图像" class="img" /> -->
<div class="top_info">
<p class="title">北京昌平核电站3号核反应堆</p>
<p class="sign">BEIJINGV30</p>
</div>
<div class="identify_info">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
fill="none"
version="1.1"
width="30"
height="29.999998092651367"
viewBox="0 0 30 29.999998092651367"
>
<g>
<path
d="M15,0C6.74916,0,0,6.74916,0,15C0,23.2508,6.74916,30,15,30C23.2508,30,30,23.2508,30,15C30,6.74916,23.2508,0,15,0ZM22.1672,20.1672C22.6689,20.6689,22.6689,21.5853,22.1672,22.0836C21.9164,22.3344,21.5853,22.5017,21.1672,22.5017C20.8328,22.5017,20.4181,22.3344,20.1672,22.0836L15.3344,17.2508L10.5017,22.0836C10,22.5853,9.08361,22.5853,8.58528,22.0836C8.08696,21.5819,8.08361,20.6656,8.58528,20.1672L13.4181,15.3344L8.58528,10.5017C8.33445,10.2508,8.16722,9.91973,8.16722,9.50167C8.16722,9.16722,8.33445,8.75251,8.58528,8.50167C9.08696,8,10.0033,8,10.5017,8.50167L15.3344,13.3344L20.1672,8.50167C20.4181,8.25084,20.7492,8.08361,21.1672,8.08361C21.5017,8.08361,21.9164,8.25084,22.1672,8.50167C22.4181,8.75251,22.5853,9.08361,22.5853,9.50167C22.5853,9.83612,22.4181,10.2508,22.1672,10.5017L17.3344,15.3344L22.1672,20.1672Z"
fill="#FFFFFF"
fill-opacity="1"
/>
</g>
</svg>
<p class="info">T0B2</p>
</div>
</div>
</template>
<script setup>
import I1 from '@/static/img/login/back.png'
</script>
<style lang="scss" scoped>
.image_container {
width: 100%;
height: 100%;
position: relative;
background: #ddd;
.top_info {
display: flex;
align-items: center;
justify-content: space-between;
position: absolute;
left: 20px;
top: 20px;
right: 20px;
box-sizing: border-box;
padding: 10px 34px;
border-radius: 28px;
background: rgba(76, 90, 224, 0.2);
.title {
font-size: 20px;
font-weight: normal;
letter-spacing: 0.03em;
color: #ffffff;
background: none;
}
.sign {
font-size: 20px;
font-weight: 500;
letter-spacing: 0.03em;
color: #ffffff;
}
}
.identify_info {
position: absolute;
right: 28px;
bottom: 22px;
width: 166px;
height: 54px;
border-radius: 28px;
background: #fe0a0a;
font-size: 26px;
font-weight: 900;
letter-spacing: 0.04em;
color: #ffffff;
display: flex;
align-items: center;
padding-left: 12px;
.info {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
}
.img {
}
}
</style>

187
src/pages/index.vue
File diff suppressed because it is too large
View File

4
src/store/modules/account.js

@ -16,5 +16,9 @@ export const useAccountStore = defineStore({
updateUsername(username) {
this.username = username
},
clearLoginInfo() {
this.token = null
this.username = ''
},
},
})
Loading…
Cancel
Save