<template>
    <div class="listNewsBox">
        <div class="listNewsTitle">
            <NuxtLink v-if="titleLink1.cid" :href="getLinkPath(titleLink1)" :title="titleLink1.alias">
                <div :class="{ activeTab: activeTab == 0 }" @mouseenter="activeTab = 0">{{ titleLink1.alias }}</div>
            </NuxtLink>
            <NuxtLink v-if="titleLink2.cid" :href="getLinkPath(titleLink2)" :title="titleLink2.alias">
                <div :class="{ activeTab: activeTab == 1 }" @mouseenter="activeTab = 1">{{ titleLink2.alias }}</div>
            </NuxtLink>
        </div>
        <!--样式1-->
        <div class="listNewsContent" v-if="componentStyle == 1">
            <div class="box1" v-if="activeTab == 0">
                <div class="textLeft">
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_1">
                            <img :src="item.imgurl" alt="" v-if="activeImg1 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_1"
                                :class="{ active: activeImg1 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg1 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_1">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_2">
                            <img :src="item.imgurl" alt="" v-if="activeImg2 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_2"
                                :class="{ active: activeImg2 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg2 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box1" v-if="activeTab == 1">
                <div class="textLeft">
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_3">
                            <img :src="item.imgurl" alt="" v-if="activeImg3 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_3"
                                :class="{ active: activeImg3 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg3 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_3">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_4">
                            <img :src="item.imgurl" alt="" v-if="activeImg4 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_4"
                                :class="{ active: activeImg4 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg4 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_4">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--样式2-->
        <div class="listNewsContent" v-if="componentStyle == 2">
            <div class="box1" v-if="activeTab == 0">
                <div class="textLeft">
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_1">
                            <img :src="item.imgurl" alt="" v-if="activeImg1 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_1"
                                :class="{ active: activeImg1 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg1 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_1">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_2">
                            <img :src="item.imgurl" alt="" v-if="activeImg2 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_2"
                                :class="{ active: activeImg2 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg2 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box1" v-if="activeTab == 1">
                <div class="textLeft">
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_3">
                            <img :src="item.imgurl" alt="" v-if="activeImg3 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_3"
                                :class="{ active: activeImg3 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg3 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_3">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_4">
                            <img :src="item.imgurl" alt="" v-if="activeImg4 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_4"
                                :class="{ active: activeImg4 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg4 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_4">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--样式3-->
        <div class="listNewsContent" v-if="componentStyle == 3">
            <div class="box1" v-if="activeTab == 0">
                <div class="textLeft">
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_1">
                            <img :src="item.imgurl" alt="" v-if="activeImg1 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_1"
                                :class="{ active: activeImg1 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg1 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_1">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_2">
                            <img :src="item.imgurl" alt="" v-if="activeImg2 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_2"
                                :class="{ active: activeImg2 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg2 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box1" v-if="activeTab == 1">
                <div class="textLeft">
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_3">
                            <img :src="item.imgurl" alt="" v-if="activeImg3 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_3"
                                :class="{ active: activeImg3 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg3 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_3">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_4">
                            <img :src="item.imgurl" alt="" v-if="activeImg4 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_4"
                                :class="{ active: activeImg4 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg4 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_4">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--样式4-->
        <div class="listNewsContent style4" v-if="componentStyle == 4">
            <div class="box1" v-if="activeTab == 0">
                <div class="textLeft">
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_1">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_1">
                            <img :src="item.imgurl" alt="" v-if="activeImg1 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_1"
                                :class="{ active: activeImg1 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg1 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_2">
                            <img :src="item.imgurl" alt="" v-if="activeImg2 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_2"
                                :class="{ active: activeImg2 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg2 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box1" v-if="activeTab == 1">
                <div class="textLeft">
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_3">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_3">
                            <img :src="item.imgurl" alt="" v-if="activeImg3 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_3"
                                :class="{ active: activeImg3 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg3 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_4">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_4">
                            <img :src="item.imgurl" alt="" v-if="activeImg4 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_4"
                                :class="{ active: activeImg4 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg4 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--样式5-->
        <div class="listNewsContent style5" v-if="componentStyle == 5">
            <div class="box1" v-if="activeTab == 0">
                <div class="textLeft">
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_1">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_1">
                            <img :src="item.imgurl" alt="" v-if="activeImg1 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_1"
                                :class="{ active: activeImg1 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg1 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_2">
                            <img :src="item.imgurl" alt="" v-if="activeImg2 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_2"
                                :class="{ active: activeImg2 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg2 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box1" v-if="activeTab == 1">
                <div class="textLeft">
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_3">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_3">
                            <img :src="item.imgurl" alt="" v-if="activeImg3 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_3"
                                :class="{ active: activeImg3 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg3 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_4">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_4">
                            <img :src="item.imgurl" alt="" v-if="activeImg4 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_4"
                                :class="{ active: activeImg4 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg4 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--样式6-->
        <div class="listNewsContent style6" v-if="componentStyle == 6">
            <div class="box1" v-if="activeTab == 0">
                <div class="textLeft">
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_1">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_1">
                            <img :src="item.imgurl" alt="" v-if="activeImg1 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_1"
                                :class="{ active: activeImg1 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg1 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_2">
                            <img :src="item.imgurl" alt="" v-if="activeImg2 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_2"
                                :class="{ active: activeImg2 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg2 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box1" v-if="activeTab == 1">
                <div class="textLeft">
                    <div class="leftBottom">
                        <div v-for="item in component_style1_News2Array_text_3">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="leftTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_3">
                            <img :src="item.imgurl" alt="" v-if="activeImg3 == index">
                        </div>
                        <div class="leftTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_3"
                                :class="{ active: activeImg3 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg3 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="textRight">
                    <div class="rightBottom">
                        <div v-for="item in component_style1_News2Array_text_4">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <span>{{ item.title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="rightTop">
                        <div class="photo" v-for="(item, index) in component_style1_News1Array_img_4">
                            <img :src="item.imgurl" alt="" v-if="activeImg4 == index">
                        </div>
                        <div class="rightTopText">
                            <div v-for="(item, index) in component_style1_News1Array_img_4"
                                :class="{ active: activeImg4 == index }">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'" @mouseenter="activeImg4 = index">
                                    <span>{{ item.title }}</span>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
//引入vue
import { ref } from 'vue';
//获得新闻数据
const props = defineProps({
    titleLink1: Object,//板块1名称
    titleLink2: Object,//板块2名称
    templateData: Array,//新闻数据
    templateData1: Array,//新闻数据
    componentStyle: Number,//样式编号
});
//定义tab切换
const activeTab = ref(0);
// 图片切换
const activeImg1 = ref(0);
const activeImg2 = ref(0);
const activeImg3 = ref(0);
const activeImg4 = ref(0);

// activeTab==0时需要的变量
const component_style1_News1Array_img_1 = ref([]);
const component_style1_News1Array_img_2 = ref([]);
const component_style1_News2Array_text_1 = ref([]);
const component_style1_News2Array_text_2 = ref([]);
// activeTab==1时需要的变量
const component_style1_News1Array_img_3 = ref([]);
const component_style1_News1Array_img_4 = ref([]);
const component_style1_News2Array_text_3 = ref([]);
const component_style1_News2Array_text_4 = ref([]);

// activeTab==0时给所需变量赋值
component_style1_News1Array_img_1.value = props.templateData.imgnum.slice(0, 2);
component_style1_News1Array_img_2.value = props.templateData.imgnum.slice(2, 4);
component_style1_News2Array_text_1.value = props.templateData.textnum.slice(0, 6);
component_style1_News2Array_text_2.value = props.templateData.textnum.slice(6, 12);
// activeTab==1时给所需变量赋值
component_style1_News1Array_img_3.value = props.templateData1.imgnum.slice(0, 2);
component_style1_News1Array_img_4.value = props.templateData1.imgnum.slice(2, 4);
component_style1_News2Array_text_3.value = props.templateData1.textnum.slice(0, 6);
component_style1_News2Array_text_4.value = props.templateData1.textnum.slice(6, 12);
</script>

<style lang="less" scoped>
//基本样式 start ---------------------------------------->
.listNewsBox {
    position: relative;

    .listNewsTitle {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        border-bottom: 1px solid #999999;
        height: 38px;

        div {
            height: 35px;
            width: 138px;
            line-height: 32px;
            font-size: 22px;
            font-weight: bold;
            color: #333333;
            cursor: pointer;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

            &.activeTab {
                color: #154079;
                background: url("https://img.bjzxtw.org.cn/pre/image/png/20251104/1762224944805589.png") bottom left no-repeat;
            }
        }
    }

    .dashed {
        border-bottom: 1px dashed #999999;
    }

    .listNewsContent {
        margin-top: 20px;

        .box1 {
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;

            .textLeft {
                width: 380px;
                margin-right: 32px;

                .leftTop {
                    display: flex;
                    align-items: flex-start;
                    justify-content: flex-start;
                    margin-bottom: 26px;

                    .photo {
                        width: 185px;
                        height: 130px;

                        img {
                            width: 185px;
                            height: 130px;
                        }
                    }

                    .leftTopText {
                        width: 195px;
                        height: 130px;
                        background-color: #f9fafb;
                        padding: 10px 4px 9px 10px;
                        box-sizing: border-box;

                        div {
                            width: 170px;
                            height: 48px;
                            line-height: 24px;
                            font-size: 18px;
                            color: #333333;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 2;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            word-break: break-all;
                            margin-bottom: 15px;
                            padding-left: 16px;
                            background: url("https://img.bjzxtw.org.cn/pre/image/png/20251204/1764835042961132.png") no-repeat left center;

                            &:last-child {
                                margin-bottom: 0;
                            }

                            &.active {
                                font-weight: bold;
                            }

                            a {
                                color: #333333;
                            }
                        }


                    }
                }

                .leftBottom {
                    div {
                        width: 100%;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        font-size: 18px;
                        color: #666666;
                        margin-bottom: 20px;
                        padding-left: 8px;
                        background: url("https://img.bjzxtw.org.cn/pre/image/png/20251203/1764729502583754.png") no-repeat left center;

                        &:nth-child(3n+1) {
                            font-weight: bold;
                        }

                        &:last-child {
                            margin-bottom: 0;
                        }

                        a {
                            color: #666666;
                        }
                    }
                }
            }

            .textRight {
                width: 380px;

                .rightTop {
                    display: flex;
                    align-items: flex-start;
                    justify-content: flex-start;
                    margin-bottom: 26px;

                    .photo {
                        width: 185px;
                        height: 130px;

                        img {
                            width: 185px;
                            height: 130px;
                        }
                    }

                    .rightTopText {
                        width: 195px;
                        height: 130px;
                        background-color: #f9fafb;
                        padding: 10px 4px 9px 10px;
                        box-sizing: border-box;

                        div {
                            width: 170px;
                            height: 48px;
                            line-height: 24px;
                            font-size: 18px;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 2;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            word-break: break-all;
                            color: #333333;
                            margin-bottom: 15px;
                            padding-left: 16px;
                            background: url("https://img.bjzxtw.org.cn/pre/image/png/20251204/1764835042961132.png") no-repeat left center;

                            &:last-child {
                                margin-bottom: 0;
                            }

                            &.active {
                                font-weight: bold;
                            }

                            a {
                                color: #333333;
                            }
                        }
                    }
                }

                .rightBottom {
                    div {
                        width: 100%;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        font-size: 18px;
                        color: #666666;
                        margin-bottom: 20px;
                        padding-left: 8px;
                        background: url("https://img.bjzxtw.org.cn/pre/image/png/20251203/1764729502583754.png") no-repeat left center;

                        &:nth-child(3n+1) {
                            font-weight: bold;
                        }

                        &:last-child {
                            margin-bottom: 0;
                        }

                        a {
                            color: #666666;
                        }
                    }
                }

            }
        }
    }

    // 样式4, 5, 6共用
    .style4,
    .style5,
    .style6 {
        .box1 {
            .textLeft {
                .leftTop {
                    margin-bottom: 0;
                }

                .leftBottom {
                    margin-bottom: 26px;
                }
            }

            .textRight {
                .rightTop {
                    margin-bottom: 0;
                }

                .rightBottom {
                    margin-bottom: 26px;
                }
            }
        }
    }
}
</style>