<template>
    <div class="PSY">
        <h5 class="h5">PSY分析：</h5>
        <header class="header">
            <article class="card">
                <h5 class="title">PSA</h5>
                <span class="value">19.8</span>
                <div class="describe">
                    <div class="up">
                        <span>年同比</span>
                        <span class="icon el-icon-caret-top"></span>
                        <span>12%</span>
                    </div>
                    <div class="down">
                        <span>周环比</span>
                        <span class="icon el-icon-caret-bottom"></span>
                        <span>11%</span>
                    </div>
                </div>
            </article>

            <article class="card">
                <h5 class="title">PSA</h5>
                <span class="value">19.8</span>
                <div class="describe">
                    <div class="up">
                        <span>年同比</span>
                        <span class="icon el-icon-caret-top"></span>
                        <span>12%</span>
                    </div>
                    <div class="down">
                        <span>周环比</span>
                        <span class="icon el-icon-caret-bottom"></span>
                        <span>11%</span>
                    </div>
                </div>
            </article>

            <article class="card">
                <h5 class="title">PSA</h5>
                <span class="value">19.8</span>
                <div class="describe">
                    <div class="up">
                        <span>年同比</span>
                        <span class="icon el-icon-caret-top"></span>
                        <span>12%</span>
                    </div>
                    <div class="down">
                        <span>周环比</span>
                        <span class="icon el-icon-caret-bottom"></span>
                        <span>11%</span>
                    </div>
                </div>
            </article>
        </header>
        <section class="section">
            <psy-chart/>
        </section>
    </div>
</template>

<script>
import PSY_chart from "./charts/PSY_chart";

export default {
    name: "PSY",
    components: {
        "psy-chart": PSY_chart
    },
    data() {
        return {};
    },
    created() {
    },
    methods: {
        
    }
};
</script>

<style lang="scss" scoped>
.PSY{
    .h5{
        margin-bottom: 15px;
        font-size: 18px;
        font-weight: 600;
        color: #444;
    }
    .header{
        width: 75%;
        display: flex;
        justify-content: space-around;
        .card{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            width: 250px;
            height: 140px;
            padding: 15px 20px 0 20px;
            border: 1px solid #ddd;
            border-radius: 10px;
            color: #999;
            .title{
                font-size: 30px;
                
            }
            .value{
                font-size: 30px;
                text-align: center;
                color: #444;
                font-weight: 600;
                padding-bottom: 10px;
                width: 100%;
                border-bottom: 2px #ddd solid;
            }
            .describe{
                flex: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                .up{
                    margin-right: 25px;
                    .icon{
                        color: #8FD96B;
                        margin: 0 3px;
                    }
                }
                .down{
                    .icon{
                        color: #F5232E;
                        margin: 0 3px;
                    }
                }
            }
        }
    }
    .section{
        margin-top: 30px;
    }
}
</style>
