<template>
    <div>
        <HomePageHead></HomePageHead>
        <HomePageNavigation></HomePageNavigation>
        <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading>
        <!-- 频道页--企业 -->
        <main class="index_main" id="all_vue">
            <section class="channel_1 clearfix">
                <div class="channel_box_1 clearfix">
                    <div class="channel_head_btn_box">
                        <div class="channel_head_btn channel_head_btn_only">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[0])" v-if="pageData[0]"
                                :title="pageData[0].alias">
                                {{ pageData[0].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_name_ul" v-if="pageData[0].data2">
                        <div class="channel_name_ul_li" v-for="(item, index) in pageData[0].data2" :key="index">
                            <NuxtLink class="channel_name_ul_li_dot1 dot1" :href="getLinkPathDetail(item)"
                                :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="channel_box_2 clearfix">
                    <div class="channel_1_box clearfix">
                        <HomeSwiperNfcpgx :imgData="pageData[0].data"></HomeSwiperNfcpgx>
                    </div>
                </div>
            </section>
            <!-- 广告1 -->
            <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
            <section class="channel_2 clearfix">
                <div class="channel_box_3 clearfix">
                    <div class="channel_head_btn_box">
                        <div class="channel_head_btn channel_head_btn_only">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[1])" v-if="pageData[1]"
                                :title="pageData[1].alias">
                                {{ pageData[1].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_big_ul clearfix" v-if="pageData[1]">
                        <div class="channel_big_li clearfix" v-if="pageData[1].data[0]">
                            <div class="channel_big_li_img_box" v-if="pageData[1].data[0]">
                                <NuxtLink :href="getLinkPathDetail(pageData[1].data[0])"
                                    :title="pageData[1].data[0].title">
                                    <img class="channel_big_li_img" :src="pageData[1].data[0].imgurl"
                                        :title="pageData[1].data[0].title" alt="">
                                    <span class="channel_big_li_content">{{ pageData[1].data[0].title }}</span>
                                </NuxtLink>
                            </div>
                            <div class="channel_big_li_in" v-if="pageData[1].data2">
                                <div class="channel_ul_1">
                                    <NuxtLink class="channel_ul_1_a dot1" v-for="(item, index) in pageData[1].data2"
                                        :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
                                        :target="item.islink == 1 ? '_blank' : '_self'">
                                        {{ item.title }}
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                        <div class="channel_big_li clearfix" v-if="pageData[1].data[1]">
                            <div class="channel_big_li_img_box" v-if="pageData[1].data[1]">
                                <NuxtLink :href="getLinkPathDetail(pageData[1].data[1])"
                                    :title="pageData[1].data[1].title">
                                    <img class="channel_big_li_img" :src="pageData[1].data[1].imgurl"
                                        :title="pageData[1].data[1].title" alt="">
                                    <span class="channel_big_li_content">{{ pageData[1].data[1].title }}</span>
                                </NuxtLink>
                            </div>
                            <div class="channel_big_li_in" v-if="pageData[1].data3">
                                <div class="channel_ul_1">
                                    <NuxtLink class="channel_ul_1_a dot1" v-for="(item, index) in pageData[1].data3"
                                        :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
                                        :target="item.islink == 1 ? '_blank' : '_self'">
                                        {{ item.title }}
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="channel_head_btn_box channel_head_top">
                        <div class="channel_head_btn channel_head_btn_only">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
                                :title="pageData[2].alias">
                                {{ pageData[2].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="clearfix">
                        <div class="channel_box_5 clearfix">
                            <div class="channel_img_ul_2" v-if="pageData[2]">
                                <div class="channel_img_ul_2_li" v-if="pageData[2].data[0]">
                                    <NuxtLink :href="getLinkPathDetail(pageData[2].data[0])"
                                        :title="pageData[2].data[0].title">
                                        <img class="channel_img_ul_2_li_img" :src="pageData[2].data[0].imgurl" title=""
                                            alt="">
                                        <div class="channel_img_ul_2_li_dot1 dot1">
                                            {{ pageData[2].data[0].title }}
                                        </div>
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                        <div class="channel_box_6 clearfix" v-if="pageData[2]">
                            <div class=" channel_ul_2 clearfix" v-if="pageData[2].data2">
                                <NuxtLink class="channel_ul_2_a dot1" v-for="(item, index) in pageData[2].data2"
                                    :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="channel_box_4 clearfix">
                    <div class="channel_head_btn_box">
                        <div class="channel_head_btn channel_head_btn_only">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[3])" v-if="pageData[3]"
                                :title="pageData[3].alias">
                                {{ pageData[3].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_img_ul_3" v-if="pageData[3].data">
                        <div class="channel_img_ul_3_li clearfix_2" v-for="(item, index) in pageData[3].data"
                            :key="item">
                            <NuxtLink class="channel_img_ul_3_li_a" :href="`/${item.pinyin}/${item.id}.html`"
                                :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                <div class="channel_img_ul_3_li_img_box">
                                    <img class="channel_img_ul_3_li_img" :src="item.imgurl" title="" alt="">
                                </div>
                                <div class="channel_img_ul_3_li_dot3 dot3">
                                    {{ item.title }}
                                </div>
                                <div class="channel_img_ul_3_li_num">{{ index + 1 }}</div>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </section>
            <!-- 广告2 -->
            <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
            <section class="channel_3 clearfix">
                <div class="channel_box_3 clearfix" v-if="pageData[4]">
                    <!--start   模块5 -->
                    <div class="channel_head_btn_box">
                        <div class="channel_head_btn channel_head_btn_only">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[4])" v-if="pageData[4]"
                                :title="pageData[4].alias">
                                {{ pageData[4].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_img_ul_4 clearfix" v-if="pageData[4].data">
                        <div class="channel_img_ul_4_li clearfix" v-for="(item, index) in pageData[4].data"
                            :key="index">
                            <NuxtLink class="channel_img_ul_4_li_a clearfix" :href="getLinkPathDetail(item)"
                                :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                <div class="channel_img_ul_4_li_img_box">
                                    <img class="channel_img_ul_4_li_img" :src="item.imgurl" title="" alt="">
                                </div>
                                <div class="channel_img_ul_4_li_dot2 dot2">{{ item.title }}</div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_ul_3 clearfix" v-if="pageData[4].data2">
                        <div class="channel_ul_3_li clearfix" v-for="(item, index) in pageData[4].data2" :key="index">
                            <NuxtLink class="channel_ul_3_li_a" :href="getLinkPathDetail(item)" :title="item.title"
                                :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                <!-- <div class="channel_ul_3_li_tag">{{ pageData[4].alias }}</div> -->
                                <div class="channel_ul_3_li_dot1 dot1"> {{ item.title }}</div>
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end  模块5 -->
                </div>
                <div class="channel_box_4 clearfix" v-if="pageData[5]">
                    <!--start  模块6-->
                    <div class="channel_head_btn_box">
                        <div class="channel_head_btn channel_head_btn_only">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[5])" v-if="pageData[5]"
                                :title="pageData[5].alias">
                                {{ pageData[5].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_img_ul_5">
                        <div class="channel_img_ul_5_li" v-if="pageData[5].data[0]">
                            <NuxtLink class="channel_img_ul_5_li_a" :href="getLinkPathDetail(pageData[5].data[0])"
                                :title="pageData[5].data[0].title"
                                :target="pageData[5].data[0].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_img_ul_5_li_img" :src="pageData[5].data[0].imgurl" title="" alt="">
                                <div class="channel_img_ul_5_li_dot2 dot2"> {{ pageData[5].data[0].title }}</div>
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end  模块6-->
                </div>
            </section>
            <section class="channel_4 clearfix">
                <div class="channel_box_3 clearfix" v-if="pageData[6]">
                    <div class="channel_head_btn_box">
                        <div class="channel_head_btn">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[6])" v-if="pageData[6]"
                                :title="pageData[6].alias">
                                {{ pageData[6].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_4_text clearfix">
                        <!--start   模块7-->
                        <div class=" clearfix">
                            <div class="channel_box_5 clearfix">
                                <div class="channel_img_ul_6" v-if="pageData[6].data[0]">
                                    <div class="channel_img_ul_6_li">
                                        <NuxtLink class="channel_img_ul_6_li_a"
                                            :href="getLinkPathDetail(pageData[6].data[0])"
                                            :title="pageData[6].data[0].title"
                                            :target="pageData[6].data[0].islink == 1 ? '_blank' : '_self'">
                                            <img class="channel_img_ul_6_li_img" :src="pageData[6].data[0].imgurl"
                                                title="" alt="">
                                            <div class="channel_img_ul_6_li_dot2 dot2">
                                                {{ pageData[6].data[0].title }}
                                            </div>
                                        </NuxtLink>
                                    </div>
                                </div>
                                <div class="channel_img_ul_even_1 clearfix" v-if="pageData[6].data2">
                                    <div class="channel_img_ul_even_1_li" v-for="(item, index) in pageData[6].data2"
                                        :key="index">
                                        <NuxtLink class="channel_img_ul_even_1_li_a" :href="getLinkPathDetail(item)"
                                            :title="item.title" :key="item.id"
                                            :target="item.islink == 1 ? '_blank' : '_self'">
                                            <img class="channel_img_ul_even_1_li_img" :src="item.imgurl" title=""
                                                alt="">
                                            <div class="channel_img_ul_even_1_li_dot2 dot2">
                                                {{ item.title }}
                                            </div>
                                        </NuxtLink>
                                    </div>
                                </div>
                            </div>
                            <div class="channel_box_6 clearfix">
                                <div class="channel_ul_4 clearfix" v-if="pageData[6].data3">
                                    <NuxtLink class="channel_ul_4_a dot1" :href="getLinkPathDetail(item)"
                                        v-for="(item, index) in pageData[6].data3" :key="index"
                                        :target="item.islink == 1 ? '_blank' : '_self'">
                                        {{ item.title }}
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="channel_box_4 clearfix" v-if="pageData[7]">
                    <div class="channel_head_btn_box">
                        <div class="channel_head_btn">
                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[7])" v-if="pageData[7]"
                                :title="pageData[7].alias">
                                {{ pageData[7].alias }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class=" clearfix">
                        <!--start  模块8 -->
                        <div class=" clearfix" v-show="channel_choice_2_num == 1">
                            <div class="channel_img_ul_7 clearfix">
                                <div class="channel_img_ul_7_li" v-if="pageData[7].data[0]">
                                    <NuxtLink class="channel_img_ul_7_li_a"
                                        :href="getLinkPathDetail(pageData[7].data[0])"
                                        :title="pageData[7].data[0].title"
                                        :target="pageData[7].data[0].islink == 1 ? '_blank' : '_self'">
                                        <img class="channel_img_ul_7_li_img" :src="pageData[7].data[0].imgurl" title=""
                                            alt="">
                                        <div class="channel_img_ul_7_li_foot">
                                            <div class="channel_img_ul_7_li_tag">热 门</div>
                                            <div class="channel_img_ul_7_li_dot1 dot1">{{ pageData[7].data[0].title }}
                                            </div>
                                        </div>
                                    </NuxtLink>
                                </div>
                            </div>
                            <div class="channel_ul_5 clearfix" v-if="pageData[7].data2">
                                <NuxtLink class="channel_ul_5_a dot1" :href="getLinkPathDetail(item)"
                                    v-for="(item, index) in pageData[7].data2" :key="index"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </main>
        <!-- 页脚部分 -->
        <HomeFoot1></HomeFoot1>
    </div>
</template>

<script setup>
//0.加载页面依赖 start ---------------------------------------->
import { ref, onMounted } from 'vue';
import { ElMessage } from 'element-plus';
const channel_choice_1_num = ref(1)
const channel_choice_2_num = ref(1)
//0.加载页面依赖 end ---------------------------------------->

//1.获得路由id start ---------------------------------------->
const targetSegment = getRoutePath(1);
//1.1 获得当前的路由id
let routeId;
//通过导航路径反向查询导航id
const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
    method: 'GET',
    query: {
        'pinyin': targetSegment,
    },
});
if (getRouteId.code == 200) {
    routeId = getRouteId.data.category_id
} else {
    console.log("获得路由id出错！", getRouteId.message)
}
//1.获得路由id end ---------------------------------------->

//2.页面交互效果 start ---------------------------------------->
// 2.1 一级栏目
const title = ref("")
const tabsData = ref(1)

async function getPageDataTitle() {
    const mkdata = await requestDataPromise('/web/getOneWebsiteCategory', {
        method: 'GET',
        query: {
            'catid': routeId,
        },
    });
    if (mkdata.code == 200) {
        title.value = mkdata.data.alias;
    } else {
        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
        console.log("错误位置：获取二级标题")
        console.log("后端错误反馈：", mkdata.message)
        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
    }
}
getPageDataTitle();
//2.页面交互效果 end ---------------------------------------->

//3.广告 start ---------------------------------------->
let adImg1 = ref({})
let adImg2 = ref({})
let adImg3 = ref({})
let adImg4 = ref({})
onMounted(async () => {
    //从客户端获取行政职能部门 加快打开速度
    const { $webUrl, $CwebUrl } = useNuxtApp();
    //广告1
    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0001`
    const responseAd1 = await fetch(url, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd1 = await responseAd1.json();
    adImg1.value = resultAd1.data[0];

    //广告2
    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0002`
    const responseAd2 = await fetch(url2, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd2 = await responseAd2.json();
    adImg2.value = resultAd2.data[0];

    //广告3
    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0003`
    const responseAd3 = await fetch(url3, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd3 = await responseAd3.json();
    adImg3.value = resultAd3.data[0];

    //广告4
    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0004`
    const responseAd4 = await fetch(url4, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd4 = await responseAd4.json();
    adImg4.value = resultAd4.data[0];
})
//3.广告 end ---------------------------------------->

//4.页面数据 start ---------------------------------------->
const pageData = ref([
    //示例：
    // {
    //     id: 1, 
    //     title: "", //该导航的标题
    //     data: [], //数据1
    //     data1: [], //数据2
    //     data2: [], //数据3
    //     data3: [], //数据4
    //     data4: [], //数据5
    //     category_id1: "",  //子导航id1
    //     category_id2: "", 
    //     category_id3: "",
    //     category_id4: "",
    //     title1: "", //子导航标题1
    //     title2: "",
    //     title3: "",
    //     title4: "",
    //     cid: "" //该导航的id
    // },
])
const companyData = ref([]);
const newsData = ref([]);

//4.1 获取所有导航
try {
    const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
        method: 'GET',
        query: {
            'placeid': 1,
            'pid': routeId,
            'num': 20
        },
    });
    if (navigateData.code == 200) {
        // 遍历可用的导航池放到页面中
        for (let index in navigateData.data) {
            let data = {
                title: navigateData.data[index].name,
                cid: navigateData.data[index].category_id,
                children_count: navigateData.data[index].children_count,
                alias: navigateData.data[index].alias,
                aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
                data: [],
                data1: [],
                data2: [],
                data3: [],
                data4: [],
                category_id1: "",
                category_id2: "",
                category_id3: "",
                category_id4: "",
                title1: "",
                title2: "",
                title3: "",
                title4: "",
                type: navigateData.data[index].type,
            };
            if (navigateData.data[index].is_url == 1) {
                // 处理 URL 的逻辑
            } else {
                //每个页面最多8个模块
                if (navigateData.data[index].type == 1) {
                    newsData.value.push(data)
                } else if (navigateData.data[index].type == 6) {
                    companyData.value.push(data)
                }
                pageData.value.push(data);
            }
        }
        // console.log('11111111111所有', pageData.value);
        // console.log('11111111111资讯', newsData.value);
        // console.log('11111111111公司', companyData.value);


        //导航池加载完毕，开始申请企业模块数据
        let getJson = []
        for (let i = 0; i < companyData.value.length; i++) {
            if (i == 0) {
                getJson.push({ "id": companyData.value[i].cid + ",1,6" });
            } else if (i == 1) {
                getJson.push({ "id": companyData.value[i].cid + ",6,0" });
            } else if (i == 2) {
                getJson.push({ "id": companyData.value[i].cid + ",2,3" });
            } else if (i == 3) {
                getJson.push({ "id": companyData.value[i].cid + ",1,0" });
            } else if (i == 4) {
                getJson.push({ "id": companyData.value[i].cid + ",3,10" });
            } else if (i == 5) {
                getJson.push({ "id": companyData.value[i].cid + ",1,6" });
            }
        }
        let jsonString = JSON.stringify(getJson);
        getPageAllData(jsonString);

        //导航池加载完毕，开始申请资讯模块数据
        let getJson1 = []
        for (let i = 0; i < newsData.value.length; i++) {
            if (i == 0) {
                getJson1.push({ "parent": routeId + ",0,0", "child": newsData.value[i].cid + ",4,8" });
            } else if (i == 1) {
                getJson1.push({ "parent": routeId + ",0,0", "child": newsData.value[i].cid + ",2,8" });
            }
        }
        let jsonString1 = JSON.stringify(getJson1);
        getPageNewsData(jsonString1);

    } else {
        console.log("错误：渲染8个模块环节出错，请检查是否存在没有数据的模块！")
    }
} catch (error) {
    console.log("错误：导航池渲染执行接口出错！请检查频道页渲染的模块数据是否完整！")
}


async function getPageAllData(jsonString) {
    const mkdata = await requestDataPromise('/web/getWebsiteCompany', {
        method: 'GET',
        query: {
            'id': jsonString
        },
    });

    console.log("频道页渲染的模块数据11111：", mkdata);

    if (mkdata.code == 200) {
        if (mkdata.data.length > 0) {
            //模块3
            pageData.value[2].data = mkdata.data[0].img_num;
            pageData.value[2].data2 = mkdata.data[0].text_num;
        }
        if (mkdata.data.length > 1) {
            //模块4
            pageData.value[3].data = mkdata.data[1].img_num;
        }
        if (mkdata.data.length > 2) {
            //模块5
            pageData.value[4].data = mkdata.data[2].img_num;
            pageData.value[4].data2 = mkdata.data[2].text_num;
        }
        if (mkdata.data.length > 3) {
            //模块6
            pageData.value[5].data = mkdata.data[3].img_num;
        }
        if (mkdata.data.length > 4) {
            //模块7
            for (let index in mkdata.data[4].img_num) {
                if (index < 1) {
                    pageData.value[6].data.push(mkdata.data[4].img_num[index]);
                } else {
                    pageData.value[6].data2.push(mkdata.data[4].img_num[index]);
                }
            }
            pageData.value[6].data3 = mkdata.data[4].text_num;
        }
        if (mkdata.data.length > 5) {
            //模块8
            pageData.value[7].data = mkdata.data[5].img_num;
            pageData.value[7].data2 = mkdata.data[5].text_num;
        }

    } else {
        ElMessage.error(mkdata.message)
    }
}
async function getPageNewsData(jsonString) {
    const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
        method: 'GET',
        query: {
            'id': jsonString
        },
    });

    // console.log("频道页渲染的模块数据22222：", mkdata);

    if (mkdata.code == 200) {
        if (mkdata.data.length > 0) {
            //模块1 顶部大图和列表
            pageData.value[0].data = mkdata.data[0].child.imgnum;
            pageData.value[0].data2 = mkdata.data[0].child.textnum;
        }
        if (mkdata.data.length > 1) {
            //模块2
            pageData.value[1].data = mkdata.data[1].child.imgnum;
            for (let index in mkdata.data[1].child.textnum) {
                if (index < 4) {
                    pageData.value[1].data2.push(mkdata.data[1].child.textnum[index]);
                } else {
                    pageData.value[1].data3.push(mkdata.data[1].child.textnum[index]);
                }
            }
        }
    } else {
        ElMessage.error(mkdata.message)
    }
}
//4.页面数据 end ---------------------------------------->

//5.设置seo信息 start---------------------------------------->
const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
    method: 'GET',
    query: {
        'catid': routeId
    },
});

if (setData.code == 200) {
    let seoTitle = setData.data.seo_title;
    let seoDescription = setData.data.seo_description;
    let seoKeywords = setData.data.seo_keywords;
    let seoSuffix = setData.data.suffix;
    let seoName = setData.data.website_name;

    useSeoMeta({
        title: seoTitle + "_" + seoSuffix,
        meta: [
            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
            { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
        ]
    });
} else {
    console.log("设置频道页SEO出错！", setData.message)
}
//5.设置seo信息 end---------------------------------------->
</script>

<style lang="less" scoped>
@import '@/assets/css/class.less';
</style>