<!--
 * @Author: your name
 * @Date: 2021-10-13 11:31:08
 * @LastEditTime: 2021-11-04 14:06:41
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /data-show/src/views/EventDetails/eventCorrelation/index.vue
-->
<template>
    <div class="ec-outter" v-loading="load">
        <div class="ec-top" align="center">
            <v-btn @click="goback">返回品牌洞察</v-btn>
        </div>
        <div class="ec-inner">
            <span class="ec-label">{{brand}}</span>
            <div class="ec-footer">
                <img class="m1" src="../../../assets/images/BrandInsight/ic_glsl.png" />
                <a-popover title="事件关联数量">
                    <template slot="content">
                        <div class="pd-item" v-for="(item,index) in list" :key="index">
                            <span>{{item.key}}</span>
                            <span>{{item.value}}</span>
                        </div>
                    </template>
                    <div class="d1">
                        <span class="s1">{{zolNum|formatMoney(0,'',',')}}</span>
                        <span class="s2">事件关联数量(条)</span>
                    </div>
                </a-popover>
            </div>
        </div>
    </div>
</template>

<script>
import { getBrandOverviewCount0528 } from "@/api/EventDetails";
export default {
    name: "eventCorrelation",
    data() {
        return {
            brand: "",
            load: false,
            form: {
                sBrand: "",
                token: "",
            },
            zolNum: 0,
            list: [],
        };
    },
    created() {
        this.form.token = this.getToken;
        this.brand = this.getBrand.brandname || "奥迪";
        this.getDdta();
    },
    methods: {
        getDdta() {
            let obj = Object.assign({}, this.getCtime2, this.form);
            this.load = true;
            getBrandOverviewCount0528(obj).then((res) => {
                let data = res.data;
                this.zolNum = data.count;
                this.list = data.data;
                this.load = false;
            });
        },
        goback() {
            this.$router.go(-1);
        },
    },
};
</script>

<style lang="less" scoped>
.ec-outter {
    display: flex;
    width: 620px;
    height: 560px;
    justify-content: center;
    margin-left: 16px;
    .ec-top {
        position: absolute;
        width: 100%;
        height: auto;
        top: 0px;
        left: 0px;
    }
    .ec-inner {
        position: relative;
        width: 470px;
        height: 520px;
        margin-top: 38px;
        background-image: url("../../../assets/images/BrandInsight/img_tz.png");
        background-repeat: no-repeat;
        background-size: cover;
        .ec-label {
            text-align: center;
            display: block;
            font-size: 40px;
            color: #b2daf7;
            margin-top: 110px;
        }
        .ec-footer {
            position: absolute;
            width: auto;
            height: auto;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            bottom: 16px;
            left: 96px;
            .m1 {
                width: 80px;
                height: 80px;
            }
            .d1 {
                margin-left: 20px;
                .s1 {
                    display: block;
                    font-family: Bebas;
                    font-size: 38px;
                    color: #fff;
                }
                .s2 {
                    display: block;
                    font-size: 22px;
                    color: #afb2b7;
                }
            }
        }
    }
}
.pd-item {
    display: flex;
    justify-content: space-between;
    color: #fff;
    border-bottom: 1px solid #173b6d;
    padding: 10px;
}
</style>
