<template>
    <div class="all">
        <img class="pageBg" src="../assets/productBg.jpg">
        <div class="contentFrame">
            <img class="contentImg" src="../assets/appliances/high/pay.png">
            <img class="pageRedDot pageRedDot1" @click="lookDetail('pvclipai')" src="../assets/pageRedDot.png">
        </div>
        <sidebar class="sidebarSty"></sidebar>
        <phoneAppliancesWin v-if="winShow" :product="product" @hiddenWin='winControl' :category="category" :detailName="detailName"></phoneAppliancesWin>
    </div>
</template>

<script>
    import Sidebar from '../components/sidebar'
    import phoneAppliancesWin from './phone_appliances_win'
    export default {
        name: "appliances_high_pay",
        data(){
            return{
                product:"appliances",//产品
                category:"high",//类别
                detailName:"",//详细名称
                winShow:false,//是否显示弹窗
            }
        },
        components:{
            Sidebar,
            phoneAppliancesWin
        },
        methods:{
            lookDetail(name){//查看详情
                this.detailName = name;
                this.winControl();
            },
            winControl(){//控制弹窗显示状态
                this.winShow = !this.winShow;
            }
        }
    }
</script>

<style scoped>
    .pageBg{
        position: fixed;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 7.5rem;
        height: 15.06rem;
    }
    .contentFrame{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 7.5rem;
        height: 12.06rem;
        display: flex;
        justify-content: center;
        overflow: hidden;
    }
    .contentImg{
        width: 6.93rem;
        height: 11.15rem;
    }
    .pageRedDot{
        position: absolute;
        width: 0.29rem;
        height: 0.29rem;
        animation: dotTwinkle 3s linear infinite;
    }
    @keyframes dotTwinkle {
        0%{opacity: 0.2}
        50%{opacity:1}
        100%{opacity:0.2}
    }
    .pageRedDot1{
        left: 2.34rem;
        top: 5.2rem;
    }
    .sidebarSty{
        position: fixed;
        top:0.3rem;
        left: 0.3rem;
    }
</style>
