5 changed files with 185 additions and 82 deletions
-
1src/assets/arrow.svg
-
2src/assets/logo.svg
-
3src/assets/style/mixin.scss
-
144src/views/addLiquid/index.vue
-
117src/views/components/Header.vue
@ -0,0 +1 @@ |
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="23" height="15" viewBox="0 0 23 15"><g transform="matrix(0,-1,1,0,-15,15)"><path d="M12.4365,15C12.4365,15,15,17.37044,15,17.37044C15,17.37044,5.12696,26.5,5.12696,26.5C5.12696,26.5,15,35.629599999999996,15,35.629599999999996C15,35.629599999999996,12.4365,38,12.4365,38C12.4365,38,0,26.5,0,26.5C0,26.5,12.4365,15,12.4365,15C12.4365,15,12.4365,15,12.4365,15Z" fill-rule="evenodd" fill="#1989FA" fill-opacity="1"/></g></svg> |
@ -1 +1 @@ |
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg> |
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="224" height="233" viewBox="0 0 224 233"><g><g><path d="M223.99979977416993,114.45162603759766C223.99979977416993,124.83402603759765,215.86279977416993,133.25062603759767,205.82579977416992,133.25062603759767C195.7877997741699,133.25062603759767,89.86419977416992,119.90242603759765,46.42679977416992,114.45162603759766C95.25419977416992,108.22022603759766,195.7877997741699,95.65262603759766,205.82579977416992,95.65262603759766C215.86279977416993,95.65264605499766,223.99979977416993,104.06923603759766,223.99979977416993,114.45162603759766Z" fill="#FAC03D" fill-opacity="1"/></g><g><path d="M201.21678225097656,176.92624592285156C201.23438225097658,182.56134592285156,196.82298225097657,187.13904592285155,191.37518225097656,187.13904592285155C185.94078225097655,187.13904592285155,128.59708225097657,179.92384592285157,105.07118225097656,176.95904592285157C131.50778225097656,173.58095592285156,185.94078225097655,166.77894592285156,191.37518225097656,166.77894592285156C196.79818225097657,166.77890588795157,201.19928225097658,171.31673592285156,201.21678225097656,176.92624592285156Z" fill="#FAC03D" fill-opacity="1"/></g><g><path d="M215.93901684570312,149.52852961425782C215.94201684570314,157.61312961425782,209.60701684570313,164.16892961425782,201.79101684570313,164.16892961425782C193.97901684570314,164.16892961425782,114.44741684570312,153.77242961425782,80.63601684570312,149.52852961425782C118.64531684570312,144.68120961425782,193.97901684570314,134.8947296142578,201.79101684570313,134.8947296142578C209.60501684570312,134.8947296142578,215.93901684570312,141.44651961425782,215.93901684570312,149.52852961425782Z" fill="#FAC03D" fill-opacity="1"/></g><g><path d="M112.735,0.0000200174C33.3546,-0.0135318,-21.121,82.656,7.90892,159.078C36.9389,235.5,131.249,257.697,189.387,201.791C181.175,201.01,163.001,198.721,131.435,194.661L127.085,194.11C85.6178,216.585,34.3882,200.014,12.688,157.106C-9.01216,114.197,7.04277,61.2171,48.539,38.7996C90.0352,16.382,141.243,33.0249,162.887,75.9634C169.261,88.781,184.624,93.5998,196.807,86.6023C208.989,79.6049,213.157,63.5677,206.008,51.1954C185.072,19.1593,150.118,-0.0260227,112.735,0.0000200174Z" fill="#275EFB" fill-opacity="1"/></g></g></svg> |
@ -1 +1,2 @@ |
|||
$textGray: #333; |
|||
$textGray: #333; |
|||
$addLiquidWidth: 410px;//加液配置 card宽度 |
@ -1,3 +1,143 @@ |
|||
<template> |
|||
<div>溶液配置</div> |
|||
</template> |
|||
<div class="add_liquid_bottle"> |
|||
<div class="add_liquid"> |
|||
<div class="config_title"> |
|||
<div class="config_name"> |
|||
<div>1 硝酸</div> |
|||
<img :src="ArrowSvg" class="arrow_img"/> |
|||
</div> |
|||
</div> |
|||
<div class="bottle_ml"> |
|||
<div class="liquid_pos"> |
|||
<div class="contail_percentage"></div> |
|||
<div class="liquid_percent bottle_wd"></div> |
|||
<div class="percent_num">300ml</div> |
|||
</div> |
|||
<div class="ml_name"> |
|||
300ml |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="add_liquid"> |
|||
<div class="config_title"> |
|||
<div class="config_name"> |
|||
<div>1 硝酸</div> |
|||
<img :src="ArrowSvg" class="arrow_img"/> |
|||
</div> |
|||
</div> |
|||
<div class="bottle_ml"> |
|||
<div class="liquid_pos"> |
|||
<div class="contail_percentage"></div> |
|||
<div class="liquid_percent bottle_wd"></div> |
|||
<div class="percent_num">300ml</div> |
|||
</div> |
|||
<div class="ml_name"> |
|||
300ml |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
<script lang="ts" setup> |
|||
import ArrowSvg from '@/assets/arrow.svg' |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@use "@/assets/style/mixin.scss" as *; |
|||
.add_liquid_bottle{ |
|||
display: flex; |
|||
} |
|||
.add_liquid{ |
|||
background: #F4F9FF; |
|||
width: $addLiquidWidth; |
|||
height: 430px; |
|||
border:1px solid #275EFB; |
|||
margin-left: 135px; |
|||
margin-top: 160px; |
|||
border-radius: 20px; |
|||
.config_title{ |
|||
width: $addLiquidWidth; |
|||
height: 80px; |
|||
background: rgba(25, 137, 250, 0.1216); |
|||
padding-top: 16px; |
|||
.config_name{ |
|||
width: 248px; |
|||
height: 50px; |
|||
background: #FFFFFF; |
|||
margin-left: 80px; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
gap: 50px; |
|||
.arrow_img{ |
|||
width: 15px; |
|||
height: 23px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.bottle_ml{ |
|||
|
|||
.liquid_pos{ |
|||
position: relative; |
|||
width: 162px; |
|||
height: 228px; |
|||
margin-top: 36px; |
|||
margin-left: 120px; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
.bottle_wd{ |
|||
height: 30%; |
|||
background-color:red; |
|||
width: 162px; |
|||
} |
|||
} |
|||
.liquid_status{ |
|||
height: 29px; |
|||
font-family: Source Han Sans; |
|||
font-size: 30px; |
|||
font-weight: 500; |
|||
color: #40474E; |
|||
padding-top: 19px; |
|||
} |
|||
|
|||
.contail_percentage{ |
|||
position: absolute; |
|||
width: 162px; |
|||
height: 228px; |
|||
background-image: url('@/assets/container.svg'); |
|||
background-size: cover; |
|||
background-position: center; |
|||
z-index: 1; |
|||
border-radius: 10px; |
|||
} |
|||
|
|||
.liquid_percent { |
|||
position: absolute; |
|||
bottom: 0; |
|||
width: 83px; |
|||
background-color: blue; |
|||
opacity: 0.5; |
|||
z-index: 2; |
|||
border-radius: 0 0 10px 10px; |
|||
} |
|||
|
|||
|
|||
} |
|||
.percent_num{ |
|||
font-size: 30px; |
|||
position: relative; |
|||
z-index: 2; |
|||
} |
|||
.ml_name{ |
|||
width: 174px; |
|||
height: 50px; |
|||
background: #FFFFFF; |
|||
margin-left: 120px; |
|||
text-align: center; |
|||
margin-top: 15px; |
|||
border-radius: 195px; |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue