generated from maochaoying/dreamworks-frontend-template
5 changed files with 237 additions and 1 deletions
-
BINsrc/assets/img/lower_water.png
-
BINsrc/assets/img/upper_water.png
-
98src/components/charts/LowerTank.vue
-
98src/components/charts/UpperTank.vue
-
42src/components/modals/EjectLiquid.vue
After Width: 14 | Height: 11 | Size: 362 B |
After Width: 14 | Height: 11 | Size: 352 B |
@ -0,0 +1,98 @@ |
|||||
|
<template> |
||||
|
<div class="lower_tank_container"> |
||||
|
<div class="title_wrap"> |
||||
|
<div class="left_wrap"> |
||||
|
<div class="icon_wrap"> |
||||
|
<img :src="LowerWater" class="icon" alt="" /> |
||||
|
</div> |
||||
|
<p class="text">下仓液氮液位</p> |
||||
|
</div> |
||||
|
<div class="right_wrap">2/3</div> |
||||
|
</div> |
||||
|
<div class="grid_water"> |
||||
|
<div class="default"></div> |
||||
|
<div class="default active"></div> |
||||
|
<div class="default active"></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
import LowerWater from '@/assets/img/lower_water.png' |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.lower_tank_container { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
border-radius: 16px; |
||||
|
background: #565ee4; |
||||
|
box-sizing: border-box; |
||||
|
padding: 10px; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
.title_wrap { |
||||
|
box-sizing: border-box; |
||||
|
padding: 9px 5px 21px 7px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: space-between; |
||||
|
.left_wrap { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
.icon_wrap { |
||||
|
width: 30px; |
||||
|
height: 30px; |
||||
|
background: #ffffff; |
||||
|
margin-right: 6px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
border-radius: 50%; |
||||
|
.icon { |
||||
|
width: 14px; |
||||
|
height: 11px; |
||||
|
} |
||||
|
} |
||||
|
.text { |
||||
|
font-family: Source Han Sans CN; |
||||
|
font-size: 20px; |
||||
|
font-weight: 500; |
||||
|
line-height: normal; |
||||
|
letter-spacing: 0.04em; |
||||
|
color: #ffffff; |
||||
|
} |
||||
|
} |
||||
|
.right_wrap { |
||||
|
width: 68px; |
||||
|
height: 28px; |
||||
|
border-radius: 14px; |
||||
|
background: #4d54d0; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
font-family: Source Han Sans CN; |
||||
|
font-size: 22px; |
||||
|
font-weight: 500; |
||||
|
line-height: normal; |
||||
|
letter-spacing: 0.04em; |
||||
|
color: #ffffff; |
||||
|
} |
||||
|
} |
||||
|
.grid_water { |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
justify-content: space-between; |
||||
|
.default { |
||||
|
border-radius: 7px; |
||||
|
height: 47px; |
||||
|
width: 100%; |
||||
|
background: #4d54d0; |
||||
|
} |
||||
|
.active { |
||||
|
background: #849dff; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,98 @@ |
|||||
|
<template> |
||||
|
<div class="upper_tank_container"> |
||||
|
<div class="title_wrap"> |
||||
|
<div class="left_wrap"> |
||||
|
<div class="icon_wrap"> |
||||
|
<img :src="UpperWater" class="icon" alt="" /> |
||||
|
</div> |
||||
|
<p class="text">上仓液氮液位</p> |
||||
|
</div> |
||||
|
<div class="right_wrap">1/3</div> |
||||
|
</div> |
||||
|
<div class="grid_water"> |
||||
|
<div class="default"></div> |
||||
|
<div class="default"></div> |
||||
|
<div class="default active"></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
import UpperWater from '@/assets/img/upper_water.png' |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.upper_tank_container { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
border-radius: 16px; |
||||
|
background: #13c3f4; |
||||
|
box-sizing: border-box; |
||||
|
padding: 10px; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
.title_wrap { |
||||
|
box-sizing: border-box; |
||||
|
padding: 9px 5px 21px 7px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: space-between; |
||||
|
.left_wrap { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
.icon_wrap { |
||||
|
width: 30px; |
||||
|
height: 30px; |
||||
|
background: #ffffff; |
||||
|
margin-right: 6px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
border-radius: 50%; |
||||
|
.icon { |
||||
|
width: 14px; |
||||
|
height: 11px; |
||||
|
} |
||||
|
} |
||||
|
.text { |
||||
|
font-family: Source Han Sans CN; |
||||
|
font-size: 20px; |
||||
|
font-weight: 500; |
||||
|
line-height: normal; |
||||
|
letter-spacing: 0.04em; |
||||
|
color: #ffffff; |
||||
|
} |
||||
|
} |
||||
|
.right_wrap { |
||||
|
width: 68px; |
||||
|
height: 28px; |
||||
|
border-radius: 14px; |
||||
|
background: #10b3e1; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
font-family: Source Han Sans CN; |
||||
|
font-size: 22px; |
||||
|
font-weight: 500; |
||||
|
line-height: normal; |
||||
|
letter-spacing: 0.04em; |
||||
|
color: #ffffff; |
||||
|
} |
||||
|
} |
||||
|
.grid_water { |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
justify-content: space-between; |
||||
|
.default { |
||||
|
border-radius: 7px; |
||||
|
height: 47px; |
||||
|
width: 100%; |
||||
|
background: #10b3e1; |
||||
|
} |
||||
|
.active { |
||||
|
background: #1fedf4; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue