石墨仪设备 前端仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
4.1 KiB

6 months ago
6 months ago
  1. <template>
  2. <div class="add_liquid_bottle">
  3. <div class="add_liquid">
  4. <div class="config_title">
  5. <div class="config_name">
  6. <div>1 硝酸</div>
  7. <img :src="ArrowSvg" class="arrow_img"/>
  8. </div>
  9. </div>
  10. <div class="bottle_ml">
  11. <div class="liquid_pos">
  12. <div class="contail_percentage"></div>
  13. <div class="liquid_percent bottle_wd"></div>
  14. <div class="percent_num">300ml</div>
  15. </div>
  16. <div class="ml_name">
  17. 300ml
  18. </div>
  19. </div>
  20. </div>
  21. <div class="add_liquid">
  22. <div class="config_title">
  23. <div class="config_name">
  24. <div>1 硝酸</div>
  25. <img :src="ArrowSvg" class="arrow_img"/>
  26. </div>
  27. </div>
  28. <div class="bottle_ml">
  29. <div class="liquid_pos">
  30. <div class="contail_percentage"></div>
  31. <div class="liquid_percent bottle_wd"></div>
  32. <div class="percent_num">300ml</div>
  33. </div>
  34. <div class="ml_name">
  35. 300ml
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </template>
  41. <script lang="ts" setup>
  42. import ArrowSvg from '@/assets/arrow.svg'
  43. </script>
  44. <style lang="scss" scoped>
  45. @use "@/assets/style/mixin.scss" as *;
  46. .add_liquid_bottle{
  47. display: flex;
  48. }
  49. .add_liquid{
  50. background: #F4F9FF;
  51. width: $addLiquidWidth;
  52. height: 430px;
  53. border:1px solid #275EFB;
  54. margin-left: 135px;
  55. margin-top: 160px;
  56. border-radius: 20px;
  57. .config_title{
  58. width: $addLiquidWidth;
  59. height: 80px;
  60. background: rgba(25, 137, 250, 0.1216);
  61. padding-top: 16px;
  62. .config_name{
  63. width: 248px;
  64. height: 50px;
  65. background: #FFFFFF;
  66. margin-left: 80px;
  67. display: flex;
  68. justify-content: center;
  69. align-items: center;
  70. gap: 50px;
  71. .arrow_img{
  72. width: 15px;
  73. height: 23px;
  74. }
  75. }
  76. }
  77. .bottle_ml{
  78. .liquid_pos{
  79. position: relative;
  80. width: 162px;
  81. height: 228px;
  82. margin-top: 36px;
  83. margin-left: 120px;
  84. display: flex;
  85. justify-content: center;
  86. align-items: center;
  87. .bottle_wd{
  88. height: 30%;
  89. background-color:red;
  90. width: 162px;
  91. }
  92. }
  93. .liquid_status{
  94. height: 29px;
  95. font-family: Source Han Sans;
  96. font-size: 30px;
  97. font-weight: 500;
  98. color: #40474E;
  99. padding-top: 19px;
  100. }
  101. .contail_percentage{
  102. position: absolute;
  103. width: 162px;
  104. height: 228px;
  105. background-image: url('@/assets/container.svg');
  106. background-size: cover;
  107. background-position: center;
  108. z-index: 1;
  109. border-radius: 10px;
  110. }
  111. .liquid_percent {
  112. position: absolute;
  113. bottom: 0;
  114. width: 83px;
  115. background-color: blue;
  116. opacity: 0.5;
  117. z-index: 2;
  118. border-radius: 0 0 10px 10px;
  119. }
  120. }
  121. .percent_num{
  122. font-size: 30px;
  123. position: relative;
  124. z-index: 2;
  125. }
  126. .ml_name{
  127. width: 174px;
  128. height: 50px;
  129. background: #FFFFFF;
  130. margin-left: 120px;
  131. text-align: center;
  132. margin-top: 15px;
  133. border-radius: 195px;
  134. }
  135. }
  136. </style>