<template>
    <div class="articleBigBox">
        <div class="articleBox">
            <div class="listRouterBox">
                <templateBreadcrumb :routeId="routeId" :articleName="articleData.data.title" />
            </div>
            <div class="articleContentBox">
                <div class="articleContentBoxLeft">
                    <article1Style :templateData="articleData" :skinId="skinId" />
                </div>
                <div class="articleContentBoxRight">
                    <div class="articleContentBoxRightTop">
                        <div v-if="templateData.componentList[1].component_style == 1">
                            <news1style :templateData="templateData.componentList[1].data" :skinId="skinId"/>
                        </div>
                        <div v-if="templateData.componentList[1].component_style == 2">
                            <news2style :templateData="templateData.componentList[1].data" :skinId="skinId"/>
                        </div>
                    </div>
                    <div class="articleContentBoxRightBottom">
                        <div v-if="templateData.componentList[2].component_style == 1">
                            <hotNews1style :templateData="templateData.componentList[2].data" :skinId="skinId"/>
                        </div>
                        <div v-if="templateData.componentList[2].component_style == 2">
                            <hotNews2style :templateData="templateData.componentList[2].data" :skinId="skinId"/>
                        </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 hotNews1style from '@/components/template/component/list/270x580/1.vue'
import hotNews2style from '@/components/template/component/list/270x580/2.vue'

const props = defineProps({
    skinId: Number,//皮肤id
    articleData:Object,//新闻正文
    templateData:Object,//其他组件
    routeId: Number,//导航池id
});
</script>

<style lang="less" scoped>
.articleBigBox{
    width: 100%;
    //height: 1587px;
    margin-bottom: 30px;
    .articleBox{
        width: 1200px;
        //height: 1587px;
        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;
                //height: 1384px;
                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;
                }
            }
        }
    }
}
</style>