<!--
 * @Author: 15902849627 380091478@qq.com
 * @Date: 2024-08-07 15:18:32
 * @LastEditors: 15902849627 380091478@qq.com
 * @LastEditTime: 2024-09-27 09:32:29
 * @FilePath: \assets\src\page\screenIndex.vue
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
-->
<!-- 首页 -->
<template>
    <div class="container">
        <div class="page_index">
            <div class="times fontFx">
                <span class="m_10 fontMF">{{ nowWeek }}</span>
                <span class="m_10">{{ nowDate }}</span
                >{{ nowTime }}
            </div>
            <div class="tit_box">
                <div class="maintitle">{{ pageName }}</div>
            </div>
            <div class="main">
                <div class="topBox">
                    <div class="left">
                        <div class="l_inner">
                            <div class="e_box" style="margin-top: 0">
                                <div class="tit_bg">
                                    <div class="tit_txt">{{ pageData.COVER.moduleName }}</div>
                                </div>
                                <div class="e_inner" style="display: flex; margin: 20px 0">
                                    <div
                                        class="e_item"
                                        :class="[index % 2 == 0 ? 'e_bg3' : 'e_bg1']"
                                        v-for="(item, index) in pageData.COVER.data"
                                        :key="index"
                                    >
                                        <progressBox :data="item" :color="index % 2 == 0 ? '#1EEBBC' : '#2E9AE2'"> </progressBox>
                                    </div>
                                </div>
                            </div>

                            <div class="absolute">
                                <div
                                    class="e_box e_box2"
                                    style="margin-top: 0"
                                    v-if="pageData.ASSERT_SUMMARY.data && pageData.ASSERT_SUMMARY.data[0]"
                                >
                                    <div class="tit_bg">
                                        <div class="tit_txt">{{ pageData.ASSERT_SUMMARY.data[0].field }}</div>
                                    </div>
                                    <div class="num">
                                        <count
                                            :startVal="0"
                                            bg
                                            separator=""
                                            :length="7"
                                            :endVal="Number(pageData.ASSERT_SUMMARY.data[0].amount)"
                                        />
                                    </div>
                                </div>
                                <div class="ai">
                                    <img src="../assets/img/ai.gif" alt="" style="cursor: pointer;"  @click="showAi=!showAi"/>
                                    <div class="gaojing" v-if="pageData.ALARM.data[0] && showAi">
                                        <p class="title">{{ pageData.ALARM.data[0].field }}</p>
                                        <p class="content">{{ pageData.ALARM.data[0].value }}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="bottom">
                            <div class="l">
                                <div class="e_box" style="margin-top: 6px">
                                    <div class="tit_bg">
                                        <div class="tit_txt">{{ pageData.CAR_PUT.moduleName }}</div>
                                    </div>
                                    <div style="margin-top: 10px">
                                        <lineBox :data="pageData.CAR_PUT.data"></lineBox>
                                    </div>
                                </div>
                                <div class="e_box" style="margin-top: 6px">
                                    <div class="tit_bg">
                                        <div class="tit_txt">{{ pageData.SUPPLEMENT_ENERGY_PUT.moduleName }}</div>
                                    </div>
                                    <div style="margin-top: 10px">
                                        <lineBox :data="pageData.SUPPLEMENT_ENERGY_PUT.data"></lineBox>
                                    </div>
                                </div>
                                <div class="e_box" style="margin-top: 6px">
                                    <div class="tit_bg">
                                        <div class="tit_txt">{{ pageData.BATTERY_PUT.moduleName }}</div>
                                    </div>
                                    <div style="margin-top: 10px">
                                        <lineBox :data="pageData.BATTERY_PUT.data"></lineBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="middle">
                        <div class="top">
                            <div class="btn-list" v-if="pageData.ASSERT_SUMMARY.data[1]">
                                <div class="btn-item" :class="[btn1 == 0 ? 'active' : '']">
                                    <p>{{ pageData.ASSERT_SUMMARY.data[1].field }}</p>
                                    <p>{{ pageData.ASSERT_SUMMARY.data[1].amount }}</p>
                                </div>
                                <div class="btn-item" :class="[btn1 == 1 ? 'active' : '']">
                                    <p>{{ pageData.ASSERT_SUMMARY.data[2].field }}</p>
                                    <p>{{ pageData.ASSERT_SUMMARY.data[2].amount }}</p>
                                </div>
                                <div class="btn-item" :class="[btn1 == 2 ? 'active' : '']">
                                    <p>{{ pageData.ASSERT_SUMMARY.data[3].field }}</p>
                                    <p>{{ pageData.ASSERT_SUMMARY.data[3].amount }}</p>
                                </div>
                                <div class="btn-item" :class="[btn1 == 3 ? 'active' : '']">
                                    <p>{{ pageData.ASSERT_SUMMARY.data[4].field }}</p>
                                    <p>{{ pageData.ASSERT_SUMMARY.data[4].amount }}</p>
                                </div>
                            </div>
                        </div>
                        <div class="mapBox">
                            <mapBox :mapData="pageData.MAP_DATA.data"></mapBox>
                        </div>
                    </div>
                    <div class="left right">
                        <div class="e_box" style="margin-top: 0; margin-left: 15px">
                            <div class="tit_bg">
                                <div class="tit_txt">{{ pageData.COOPERATION.moduleName }}</div>
                            </div>
                            <div class="e_inner" style="display: flex; margin: 20px 0">
                                <div class="e_item e_bg1" v-for="(item, index) in pageData.COOPERATION.data" :key="index">
                                    <progressBox :data="item"></progressBox>
                                </div>
                            </div>
                        </div>
                        <div class="bottom">
                            <div class="r">
                                <div class="e_box">
                                    <div class="tit_bg">
                                        <div class="tit_txt">{{ pageData.CAR_INFO.moduleName }}</div>
                                    </div>
                                    <div class="table">
                                        <div class="th" style="display: flex">
                                            <div class="td" v-for="(i, k) in pageData.CAR_INFO.data.field" :key="k">{{ i }}</div>
                                        </div>
                                        <vue-seamless-scroll
                                            :data="pageData.CAR_INFO.data.value"
                                            class="seamless-warp"
                                            :class-option="defaultOption"
                                        >
                                            <div
                                                class="tr last"
                                                v-for="(item, index) in pageData.CAR_INFO.data.value"
                                                :key="index"
                                                :style="{
                                                    background: index % 2 == 0 ? 'rgba(255,255,255,0.1)' : '',
                                                    color: index == 0 ? '#108a92' : '#fff',
                                                    display: 'flex'
                                                }"
                                            >
                                                <div class="td" v-for="(i, k) in item.split(',')" :key="k">{{ i }}</div>
                                            </div>
                                        </vue-seamless-scroll>
                                    </div>
                                </div>
                                <div class="e_box">
                                    <div class="tit_bg">
                                        <div class="tit_txt">{{ pageData.SUPPLEMENT_ENERGY_INFO.moduleName }}</div>
                                    </div>
                                    <div class="table">
                                        <div class="th" style="display: flex">
                                            <div class="td" v-for="(i, k) in pageData.SUPPLEMENT_ENERGY_INFO.data.field" :key="k">
                                                {{ i }}
                                            </div>
                                        </div>
                                        <vue-seamless-scroll
                                            :data="pageData.SUPPLEMENT_ENERGY_INFO.data.value"
                                            class="seamless-warp"
                                            :class-option="defaultOption"
                                        >
                                            <div
                                                class="tr last"
                                                v-for="(item, index) in pageData.SUPPLEMENT_ENERGY_INFO.data.value"
                                                :key="index"
                                                :style="{
                                                    background: index % 2 == 0 ? 'rgba(255,255,255,0.1)' : '',
                                                    color: index == 0 ? '#108a92' : '#fff',
                                                    display: 'flex'
                                                }"
                                            >
                                                <div class="td" v-for="(i, k) in item.split(',')" :key="k">{{ i }}</div>
                                            </div>
                                        </vue-seamless-scroll>
                                    </div>
                                </div>
                                <div class="e_box">
                                    <div class="tit_bg">
                                        <div class="tit_txt">{{ pageData.CBS_INFO.moduleName }}</div>
                                    </div>
                                    <div class="table">
                                        <div class="th" style="display: flex">
                                            <div class="td" v-for="(i, k) in pageData.CBS_INFO.data.field" :key="k">{{ i }}</div>
                                        </div>
                                        <vue-seamless-scroll
                                            :data="pageData.CBS_INFO.data.value"
                                            class="seamless-warp"
                                            :class-option="defaultOption"
                                        >
                                            <div
                                                class="tr last"
                                                v-for="(item, index) in pageData.CBS_INFO.data.value"
                                                :key="index"
                                                :style="{
                                                    background: index % 2 == 0 ? 'rgba(255,255,255,0.1)' : '',
                                                    color: index == 0 ? '#108a92' : '#fff',
                                                    display: 'flex'
                                                }"
                                            >
                                                <div class="td" v-for="(i, k) in item.split(',')" :key="k">{{ i }}</div>
                                            </div>
                                        </vue-seamless-scroll>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="bottomBox">
                    <div class="bottom">
                        <div class="item">
                            <div class="tit_bg">
                                <div class="tit_txt">{{ pageData.SUPPLEMENT_ENERGY_PROVINCE.moduleName }}</div>
                            </div>
                            <div class="subTitle">{{ pageData.SUPPLEMENT_ENERGY_PROVINCE.data.unit }}</div>
                            <div class="barItem" v-for="(i, k) in pageData.SUPPLEMENT_ENERGY_PROVINCE.data.items" :key="k">
                                <span class="label">{{ i.field }}</span>
                                <div class="barBox">
                                    <div class="active" :style="{ width: i.proportion }"></div>
                                    <span>{{ i.amount }}</span>
                                </div>
                            </div>
                        </div>
                        <div class="item">
                            <div class="tit_bg">
                                <div class="tit_txt">{{ pageData.SUPPLEMENT_ENERGY_COST.moduleName }}</div>
                            </div>
                            <div class="subTitle">{{ pageData.SUPPLEMENT_ENERGY_COST.data.unit }}</div>
                            <div class="barItem" v-for="(i, k) in pageData.SUPPLEMENT_ENERGY_COST.data.items" :key="k">
                                <span class="label">{{ i.field }}</span>
                                <div class="barBox">
                                    <div class="active" :style="{ width: i.proportion }"></div>
                                    <span>{{ i.amount }}</span>
                                </div>
                            </div>
                        </div>
                        <div class="item">
                            <div class="tit_bg">
                                <div class="tit_txt">{{ pageData.CAR_PROVINCE.moduleName }}</div>
                            </div>
                            <div class="subTitle">{{ pageData.CAR_PROVINCE.data.unit }}</div>
                            <div class="barItem" v-for="(i, k) in pageData.CAR_PROVINCE.data.items" :key="k">
                                <span class="label">{{ i.field }}</span>
                                <div class="barBox">
                                    <div class="active" :style="{ width: i.proportion }"></div>
                                    <span>{{ i.amount }}</span>
                                </div>
                            </div>
                        </div>
                        <div class="item">
                            <div class="tit_bg">
                                <div class="tit_txt">{{ pageData.BATTERY_PROVINCE.moduleName }}</div>
                            </div>
                            <div class="subTitle">{{ pageData.BATTERY_PROVINCE.data.unit }}</div>
                            <div class="barItem" v-for="(i, k) in pageData.BATTERY_PROVINCE.data.items" :key="k">
                                <span class="label">{{ i.field }}</span>
                                <div class="barBox">
                                    <div class="active" :style="{ width: i.proportion }"></div>
                                    <span>{{ i.amount }}</span>
                                </div>
                            </div>
                        </div>
                        <div class="item">
                            <div class="tit_bg">
                                <div class="tit_txt">{{ pageData.BATTERY_COST.moduleName }}</div>
                            </div>
                            <div class="subTitle">{{ pageData.BATTERY_COST.data.unit }}</div>
                            <div class="barItem" v-for="(i, k) in pageData.BATTERY_COST.data.items" :key="k">
                                <span class="label">{{ i.field }}</span>
                                <div class="barBox">
                                    <div class="active" :style="{ width: i.proportion }"></div>
                                    <span>{{ i.amount }}</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import AMapLoader from '@amap/amap-jsapi-loader';
import moment from 'moment';
import * as echarts from 'echarts';
import 'echarts-gl';
import count from '@/components/count.vue';
import Charts from '@/components/selfCP/charts.vue';
import { POST, GET } from '@/server/api/common';
import mapBox from '@/components/map.vue';
import progressBox from '@/components/progress.vue';
import lineBox from '@/components/lineBox.vue';
import rightBox from './right.vue';
import { setOption1, setOption2, setOption3, setOption4, setOption5, lineOption, userList } from './data.js';

let infoWindow = null;
let map;
export default {
    name: 'dashboard',
    components: {
        Charts,
        count,
        mapBox,
        rightBox,
        progressBox,
        lineBox
    },
    data() {
        return {
            showAi: true,
            nowWeek: '',
            nowDate: '',
            nowTime: '',
            setOption1,
            setOption2,
            setOption3,
            setOption4,
            setOption5,
            lineOption,
            taskData2: userList,
            btn1: 0,
            pageName: '',
            pageData: {
                pieList: [],
                ALARM: { data: [] },
                AI_RISK: { data: [] },
                ASSERT_SUMMARY: {
                    data: []
                },
                BATTERY_COST: { data: [] },
                BATTERY_PROVINCE: { data: [] },
                BATTERY_PUT: { data: [] },
                CAR_INFO: { data: [] },
                CAR_PROVINCE: { data: [] },
                CAR_PUT: { data: [] },
                CBS_INFO: { data: [] },
                COOPERATION: { data: [] },
                COVER: { data: [] },
                MAP_DATA: { data: [] },
                RISK_RECORD: { data: [] },
                SUPPLEMENT_ENERGY_COST: { data: [] },
                SUPPLEMENT_ENERGY_INFO: { data: [] },
                SUPPLEMENT_ENERGY_PROVINCE: { data: [] },
                SUPPLEMENT_ENERGY_PUT: { data: [] }
            }
        };
    },
    mounted() {
        this.getNowTime();
        this.getData();
        // 定时获取时间
        this.newTimer = setInterval(this.getNowTime, 1000);
        moment.locale('zh-cn');
        // 监听iframe传参
        // window.addEventListener('message', this.getiframeMsg);
    },
    destoryed() {
        clearInterval(this.newTimer);
        this.newTimer = null;
    },
    computed: {
        defaultOption() {
            return {
                step: 2, // 数值越大速度滚动越快
                limitMoveNum: 6, // 开始无缝滚动的数据量 this.dataList.length
                hoverStop: true, // 是否开启鼠标悬停stop
                direction: 1, // 0向下 1向上 2向左 3向右
                openWatch: true, // 开启数据实时监控刷新dom
                singleHeight: 25, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
                singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
                waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
            };
        },
        defaultOption2() {
            return {
                step: 2, // 数值越大速度滚动越快
                limitMoveNum: 4, // 开始无缝滚动的数据量 this.dataList.length
                hoverStop: true, // 是否开启鼠标悬停stop
                direction: 1, // 0向下 1向上 2向左 3向右
                openWatch: true, // 开启数据实时监控刷新dom
                singleHeight: 48, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
                singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
                waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
            };
        }
    },
    beforeRouteLeave(to, from, next) {
        // 离开组件时停掉定时器，节省内存
        clearInterval(this.newTimer);
        next();
    },
    methods: {
        getData() {
            GET(this.$config.api + '/elms-view/view/assertOperations').then((res) => {
                this.pageData = res.data.data.item;
                this.pageData.pieList = this.chunkArray(this.pageData.AI_RISK.data, 6);
                console.log(this.pageData.pieList);

                this.pageName = res.data.data.name;
            });
        },
        chunkArray(array, chunkSize) {
            let result = [];
            for (let i = 0; i < array.length; i += chunkSize) {
                result.push(array.slice(i, i + chunkSize));
            }
            return result;
        },
        getNowTime() {
            let date = new Date();
            // 日期格式  2022.05.31.
            this.nowDate =
                date.getFullYear() +
                '.' +
                (date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1)) +
                '.' +
                (date.getDate() >= 10 ? date.getDate() : '0' + date.getDate());
            // 时间格式 12:11:27
            this.nowTime =
                date.getHours() +
                ':' +
                (date.getMinutes() >= 10 ? date.getMinutes() : '0' + date.getMinutes()) +
                ':' +
                (date.getSeconds() >= 10 ? date.getSeconds() : '0' + date.getSeconds());
            // 星期
            let weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
            this.nowWeek = weeks[date.getDay()];
        }
    }
};
</script>

<style scoped lang="less">
@font-face {
    font-family: MFLiHei;
    src: url('./font/MFLiHei_Noncommercial-Regular.otf') format('opentype');
}

@font-face {
    font-family: FXLed;
    src: url('./font/FX-LED Bold.TTF');
}

.el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
}

.el-carousel__item:nth-child(2n) {
}

.el-carousel__item:nth-child(2n + 1) {
}

.table {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 350px;
    margin-top: 2px;

    .seamless-warp {
        overflow: hidden;
        // height: 360px;
        height: 110px;
        width: 100%;
    }

    .th,
    .tr {
        width: 100%;
        display: flex;
        height: 18px;
        line-height: 18px;
    }

    .th .td,
    .tr .td {
        flex: 1;
        font-weight: 400;
        font-size: 10px;
        color: #ffffff;
        height: 18px;
        line-height: 18px;
        text-align: center;
    }

    .th .td {
        font-size: 12px;
    }
}

.table2 {
    width: 800px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    .th .td {
        font-size: 14px;
        height: 48px;
        line-height: 48px;
    }

    .th .td,
    .tr .td {
        flex: 1;
        font-weight: 400;
        color: #ffffff;
        height: 48px;
        line-height: 48px;
        text-align: center;
    }

    .th,
    .tr {
        width: 100%;
    }

    .tr .td {
        font-size: 12px;
    }

    .seamless-warp {
        overflow: hidden;
        // height: 360px;
        height: 336px;
        width: 100%;
    }
}

* {
    user-select: none;
}

.fontMF {
    font-family: MFLiHei;
}

.fontFx {
    font-family: FXLed;
}

.flex {
    display: flex;
    align-items: center;
}

.MR40 {
    margin-right: 40px;
}

.m_10 {
    margin-right: 10px;
}

.f1 {
    font-size: 12px;
}

.times {
    position: fixed;
    right: 50px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    top: 0px;
    color: #fff;
}

.last {
    .td:last-child {
        color: #3a93ff;
    }
}

.tit_box {
    position: fixed;
    width: 100%;
    height: 67px;
    background-position: 0 0;
    background-repeat: no-repeat;
    left: 0px;
    top: 26px;
    z-index: 50;

    .maintitle {
        text-align: center;
        font-weight: 400;
        font-size: 30px;
        color: #ffffff;
        line-height: 67px;
        height: 67px;
        margin-top: -22px;
        background: linear-gradient(0deg, #9dc7fb 0%, #9dc7fb 40%, #ffffff 70%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        flex: 1;
        font-weight: bold;
        letter-spacing: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        font-size: 30px;
        color: #ffffff;
    }
}

.container {
    width: 100%;
    height: 1080px;
    background: url('../assets/img/background.png') no-repeat;
    background-size: 100% 100%;
}
.bottomBox {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    .bottom {
        width: 100%;
        display: flex;
        justify-content: space-between;

        .item {
            width: 342px;
            height: 198px;
            padding: 20px 20px;
            background: url('../assets/img/smallBg.png') no-repeat rgba(255, 255, 255, 0.05);
            background-size: 100% 100%;
            box-sizing: border-box;

            .subTitle {
                font-weight: 400;
                font-size: 12px;
                color: #ffffff;
                line-height: 30px;
            }

            .barItem {
                display: flex;
                margin-bottom: 5px;

                .barBox {
                    width: 247px;
                    height: 18px;
                    background: rgba(255, 255, 255, 0.1);
                    display: flex;
                    align-items: center;

                    .active {
                        height: 10px;
                        background: linear-gradient(90deg, #0067ff, #3a93ff);
                    }

                    span {
                        font-weight: 400;
                        font-size: 12px;
                        color: #ffffff;
                        line-height: 30px;
                        margin-left: 8px;
                    }
                }

                .label {
                    display: block;
                    width: 66px;
                    font-weight: 400;
                    font-size: 12px;
                    color: #ffffff;
                    line-height: 18px;
                }
            }
        }
    }
}
.page_index {
    width: 100%;
    height: 1080px;
    // overflow: hidden;
    position: relative;
    padding: 0 60px;
    padding-top: 102px;
    background: url('../assets/img/border.png') no-repeat;
    background-size: calc(100% - 40px) calc(100% - 40px);
    background-position: 20px 20px;
    box-sizing: border-box;

    .main {
        display: flex;
        justify-content: space-between;
        position: relative;
        height: 900px;
        .bottom {
            display: flex;
        }
        .topBox {
            display: flex;
            width: 100%;
        }
        .tit_bg {
            width: 200px;
            height: 21px;
            background-image: url(../assets/img/tit_bg1.png);
            background-position: 0 0;
            background-repeat: no-repeat;

            .tit_txt {
                font-weight: 400;
                font-size: 14px;
                color: #ffffff;
                line-height: 26px;
                text-indent: 30px;
            }
        }

        .left {
            width: 529px;
            height: 689px;
            background: url('../assets/img/leftBg.png') no-repeat;
            background-size: 100% 100%;
            padding: 20px 20px;
            margin-top: 20px;
            box-sizing: border-box;

            .l_inner {
                display: flex;
                align-items: center;
                position: relative;

                .absolute {
                    position: absolute;
                    right: -220px;
                    top: 0;

                    .ai {
                        position: relative;
                        top: 346px;
                        img {
                            width: 133px;
                            height: 130px;
                        }

                        .gaojing {
                            width: 281px;
                            height: 90px;
                            background: url('../assets/img/gaojing.png') no-repeat;
                            background-size: 100% 100%;
                            color: #fff;
                            padding-top: 11px;
                            padding-left: 5px;
                            box-sizing: border-box;

                            .content {
                                width: 270px;
                                height: 63px;
                                font-family: Source Han Sans SC;
                                font-weight: 400;
                                font-size: 11px;
                                margin-top: 11px;
                                color: #ffffff;
                            }

                            .title {
                                font-weight: bold;
                                font-size: 14px;
                                padding-left: 33px;
                                color: #333333;
                            }
                        }
                    }
                }
            }

            .e_box {
                margin-top: 14px;

                .e_item {
                    width: 75px;
                    height: 75px;
                    background-position: 0 0;
                    background-repeat: no-repeat;
                    margin-right: 13px;
                }

                .e_item:nth-last-child(1) {
                    margin-right: 0;
                }

                .e_bg1 {
                    background-image: url(../assets/img/card1.png);
                    background-size: 100% 100%;
                }

                .e_bg2 {
                    background-image: url(../assets/img/card2.png);
                    background-size: 100% 100%;
                }

                .e_bg3 {
                    background-image: url(../assets/img/card3.png);
                    background-size: 100% 100%;
                }

                .e_bg4 {
                    background-image: url(../assets/img/card4.png);
                    background-size: 100% 100%;
                }
            }

            .inner {
                margin-top: 87px;
            }

            .e_box2 {
                .tit_bg {
                    background: none;

                    .tit_txt {
                        display: flex;
                        align-items: center;
                        text-indent: 30px;
                        background: url('../assets/img/dot.png') no-repeat;
                        background-size: 20px 20px;
                    }
                }
            }
        }

        .middle {
            //    width:851px;
            flex: 1;
            .top {
                width: 100%;
                // left: 50%;
                // top: 20px;
                // margin-left: -528px;
                height: 25px;
                background: url('../assets/img/btnBoxBG.png') no-repeat;
                background-size: 100% 100%;
                z-index: 20;

                .btn-list {
                    width: 374px;
                    display: flex;
                    justify-content: space-between;
                    position: absolute;
                    left: 50%;
                    margin-left: -191px;
                    top: -15px;
                    align-items: center;

                    .btn-item {
                        width: 47px;
                        height: 41px;
                        background: url('../assets/img/btn.png') no-repeat;
                        background-size: 100% 100%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        flex-direction: column;
                        cursor: pointer;

                        p:first-child {
                            font-family: MFLiHei;
                            font-weight: 400;
                            font-size: 11px;
                            color: #3a93ff;
                            margin: 0;
                            text-align: center;
                        }

                        p:last-child {
                            font-family: FXLed;
                            font-weight: 400;
                            font-size: 11px;
                            margin: 0;
                            text-align: center;
                            color: #3a93ff;
                        }
                    }

                    .active {
                        width: 57px;
                        height: 55px;
                        background: url('../assets/img/btnActive.png') no-repeat;
                        background-size: 100% 100%;

                        p:first-child {
                            font-family: MFLiHei;
                            font-weight: 400;
                            font-size: 13px;
                            color: #3a93ff;
                            margin: 0;
                            text-align: center;
                        }

                        p:last-child {
                            font-family: FXLed;
                            font-weight: 400;
                            font-size: 12px;
                            margin: 0;
                            text-align: center;
                            color: #3a93ff;
                        }
                    }
                }
            }
        }

        .right {
            width: 529px;
            height: 689px;
            background: url('../assets/img/rightBg.png') no-repeat;
            background-size: 100% 100%;
            padding: 20px;
            box-sizing: border-box;
            margin-top: 20px;
            padding-left: 150px;
        }
    }
}

.pieList {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    height: 368px;
    box-sizing: border-box;

    .carousel {
    }
}
</style>
