
<template>
    <div class="h-[--footerHeight] bg-[--bgColor] footer">
        <div class="footer_ins">
            <van-icon name="discount-o" size="15" style="padding:5px"/>
            <span class="ins_text text_size">等待指令</span>
        </div>

        <div class="footer_waste">
            <van-popover v-model:show="showContainerPopover" placement="top-end">
                <template #reference>
                    <div class="footer_container">
                        <div class="circle" style="background-color: #F2652D;"></div>
                        <div class="waste_status text_size" style="color:#F2652D">碱中和容器余量低</div>
                        <div class="waste_detail"><button class="text_size"><van-icon name="arrow" /></button></div>
                    </div>
                </template>
                <Liquid></Liquid>
            </van-popover>
        </div>

        <div class="footer_normal">
            <van-popover v-model:show="showWastePopover" placement="top-end" class="waste_popover">
                <template #reference>
                    <div class="footer_container">
                        <div class="circle"></div>
                        <div class="waste_status text_size">溶液正常</div>
                        <div class="waste_detail"><button class="text_size"><van-icon name="arrow" /></button></div>
                    </div>
                </template>
                <Liquid></Liquid>
            </van-popover>
        </div>
    </div>

</template>
<script lang="ts" setup>
import { ref, onMounted } from 'vue'
import Liquid from './Liquid.vue'
const showContainerPopover = ref(false)
const showWastePopover = ref(false)

</script>
<style scoped>
    .footer{
       display: flex; 
       align-items: center;
    }
    .footer_ins{
        display: flex;
        align-items: center;
        border-radius: 5px;
        background: #FFFFFF;
        height: 80px;
        width: 1268px;
        margin-left: 380px;
    }
    .footer_waste{
        display: flex;
        align-items: center;
        border-radius: 5px;
        width: 430px;
        height: 80px;
        background: #FFFFFF;
        margin-left: 10px;
    }

    .footer_normal{
        margin-left: 100px;
    }

    .text_size{
        font-size:30px;
        padding-right: 5px;
    }
    .footer_container{
        display: flex;
        align-items: center;
        border-radius: 5px;
        width: 500px;
        height: 80px;
        background: #FFFFFF;
        .circle {
            width: 30px; 
            height: 30px; 
            background-color: green; 
            border-radius: 50%; 
            margin-left: 10px;
        }

        .waste_status{
            padding:5px 5px;
        }

        .waste_detail{
            margin-left: auto
        }
    }
</style>
