石墨仪设备 前端仓库
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.

99 lines
2.8 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. <template>
  2. <div class="h-[--footerHeight] bg-[--bgColor] footer">
  3. <div class="footer_ins">
  4. <van-icon name="discount-o" size="15" style="padding:5px"/>
  5. <span class="ins_text text_size">等待指令</span>
  6. </div>
  7. <div class="footer_waste">
  8. <van-popover v-model:show="showContainerPopover" placement="top-end">
  9. <template #reference>
  10. <div class="footer_container">
  11. <div class="circle" style="background-color: #F2652D;"></div>
  12. <div class="waste_status text_size" style="color:#F2652D">碱中和容器余量低</div>
  13. <div class="waste_detail"><button class="text_size"><van-icon name="arrow" /></button></div>
  14. </div>
  15. </template>
  16. <Liquid></Liquid>
  17. </van-popover>
  18. </div>
  19. <div class="footer_normal">
  20. <van-popover v-model:show="showWastePopover" placement="top-end" class="waste_popover">
  21. <template #reference>
  22. <div class="footer_container">
  23. <div class="circle"></div>
  24. <div class="waste_status text_size">溶液正常</div>
  25. <div class="waste_detail"><button class="text_size"><van-icon name="arrow" /></button></div>
  26. </div>
  27. </template>
  28. <Liquid></Liquid>
  29. </van-popover>
  30. </div>
  31. </div>
  32. </template>
  33. <script lang="ts" setup>
  34. import { ref, onMounted } from 'vue'
  35. import Liquid from './Liquid.vue'
  36. const showContainerPopover = ref(false)
  37. const showWastePopover = ref(false)
  38. </script>
  39. <style scoped>
  40. .footer{
  41. display: flex;
  42. align-items: center;
  43. }
  44. .footer_ins{
  45. display: flex;
  46. align-items: center;
  47. border-radius: 5px;
  48. background: #FFFFFF;
  49. height: 1.25rem;
  50. width: 39.625rem;
  51. margin-left: 11.875rem;
  52. }
  53. .footer_waste{
  54. display: flex;
  55. align-items: center;
  56. border-radius: 5px;
  57. width: 13.4375rem;
  58. height: 2.5rem;
  59. background: #FFFFFF;
  60. margin-left: 10px;
  61. }
  62. .footer_normal{
  63. margin-left: 3.125rem;
  64. }
  65. .text_size{
  66. font-size:1rem;
  67. padding-right: 5px;
  68. }
  69. .footer_container{
  70. display: flex;
  71. align-items: center;
  72. border-radius: 5px;
  73. width: 15.625rem;
  74. height: 2.5rem;
  75. background: #FFFFFF;
  76. .circle {
  77. width: 1rem;
  78. height: 1rem;
  79. background-color: green;
  80. border-radius: 50%;
  81. margin-left: 10px;
  82. }
  83. .waste_status{
  84. padding:5px 5px;
  85. }
  86. .waste_detail{
  87. margin-left: auto
  88. }
  89. }
  90. </style>