<template>
    <div class="articleBigBox">
        <div class="articleBox">
            <div class="listRouterBox">
                <templateBreadcrumb :routeId="routeId" :articleName="articleData.title" />
            </div>
            <div class="articleContentBox">
                <div class="articleContentBoxLeft">
                    <article1Style :templateData="articleData" :skinId="skinId" />
                </div>
                <div class="articleContentBoxRight">
                    <div class="articleContentBoxRightTop">
                        <div v-if="skinId==1">
                            <!--最新资讯皮肤1-->
                            <news1style :componentStyle="templateData[1].component_style" />
                        </div>
                        <div v-if="skinId==2">
                            <!--最新资讯皮肤2-->
                            <news2style :componentStyle="templateData[1].component_style" />
                        </div>
                        <div v-if="skinId==3">
                            <!--最新资讯皮肤3-->
                            <news3style :componentStyle="templateData[1].component_style" />
                        </div>
                        <div v-if="skinId==4">
                            <!--最新资讯皮肤4-->
                            <news4style :componentStyle="templateData[1].component_style" />
                        </div>
                        <div v-if="skinId==5">
                            <!--最新资讯皮肤5-->
                            <news5style :componentStyle="templateData[1].component_style" />
                        </div>
                    </div>
                    <div class="articleContentBoxRightBottom">
                        <div v-if="skinId==1">
                            <!--热点资讯皮肤1-->
                            <hotNews1style :componentStyle="templateData[2].component_style"/>
                        </div>
                        <div v-if="skinId==2">
                            <!--热点资讯皮肤2-->
                            <hotNews2style :componentStyle="templateData[2].component_style" />
                        </div>
                        <div v-if="skinId==3">
                            <!--热点资讯皮肤3-->
                            <hotNews3style :componentStyle="templateData[2].component_style" />
                        </div>
                        <div v-if="skinId==4">
                            <!--热点资讯皮肤4-->
                            <hotNews4style :componentStyle="templateData[2].component_style" />
                        </div>
                        <div v-if="skinId==5">
                            <!--热点资讯皮肤5-->
                            <hotNews5style :componentStyle="templateData[2].component_style" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
//引入vue
import {ref} from 'vue';
import {ElPagination} from 'element-plus';
//引入面包屑路径组件
import templateBreadcrumb from '@/components/template/component/public/breadcrumb.vue'
//正文组件
import article1Style from '@/components/template/component/article/900x1384/1.vue'
//最新资讯
import news1style from '@/components/template/component/list/270x450/1.vue'
import news2style from '@/components/template/component/list/270x450/2.vue'
import news3style from '@/components/template/component/list/270x450/3.vue'
import news4style from '@/components/template/component/list/270x450/4.vue'
import news5style from '@/components/template/component/list/270x450/5.vue'
//热点精选
import hotNews1style from '@/components/template/component/list/270x580/1.vue'
import hotNews2style from '@/components/template/component/list/270x580/2.vue'
import hotNews3style from '@/components/template/component/list/270x580/3.vue'
import hotNews4style from '@/components/template/component/list/270x580/4.vue'
import hotNews5style from '@/components/template/component/list/270x580/5.vue'
const props = defineProps({
    skinId: Number,//皮肤id
    articleData:Object,//新闻正文
    templateData:Object,//其他组件
    routeId: Number,//导航池id
});
</script>

<style lang="less" scoped>
//基本样式 start ---------------------------------------->
.articleBigBox{
    width: 100%;
    margin-bottom: 30px;
    .articleBox{
        width: 1200px;
        margin: 0 auto;
        .listRouterBox{
            border-bottom: 1px solid #D9D9D9;
        }
        .articleContentBox {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-top: 17px;
            .articleContentBoxLeft {
                width: 900px;
                position: relative;
            }
            .articleContentBoxRight {
                width: 270px;
                height: 1050px;
                margin-bottom: 30px;
                .articleContentBoxRightTop {
                    width: 270px;
                    height: 440px;
                    margin-bottom: 30px;
                    position: relative;
                }
                .articleContentBoxRightBottom {
                    width: 270px;
                    height: 580px;
                    position: relative;
                }
            }
        }
    }
}
//基本样式 end ---------------------------------------->
</style>