<template>
    <div>
        <HomePageHead></HomePageHead>
        <HomePageNavigation></HomePageNavigation>
        <main class="index_main">
            <!--头条-->
            <h1 class="head_h3">
                <NuxtLink class="head_h3_a dot1" :href="getLinkPathDetail(headline)" :title="headline.title"
                    :target="headline.islink == 1 ? '_blank' : '_self'">
                    {{ headline.title }}
                </NuxtLink>
            </h1>
            <section class="index_1 clearfix">
                <div class="index_1_left">
                    <div class="roll_1_box">
                        <HomeSwiperSnsc></HomeSwiperSnsc>
                    </div>
                </div>
                <div class="index_1_right">
                    <div class="index_1_ul">
                        <NuxtLink class="index_1_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                            v-for="(item, index) in hotNewsList" :key="index"
                            :target="item.islink == 1 ? '_blank' : '_self'">
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                </div>
            </section>
            <!--广告1-->
            <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
            <section class="index_2 clearfix">
                <div class="index_1_left clearfix">
                    <!--open 农业市场-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[0].cid"
                            :href="getLinkPath(pageData[0])"
                            :title="pageData[0].alias"
                            >
                            {{pageData[0].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[0].cid"
                            :href="getLinkPath(pageData[0])"
                            :title="pageData[0].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_1_box_1 clearfix">
                        <div class="index_img_big_2_ul">
                            <div class="index_img_big_2_li" v-for="item in boxData1">
                                <NuxtLink class="index_img_big_2_li_a" 
                                    :href="getLinkPathDetail(item)" 
                                    :title="item.title" 
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img class="index_img_big_2_li_img" :src="item.imgurl" :alt="item.title">
                                    <div class="index_img_big_2_li_dot1 dot1">{{ item.title }}</div>
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="index_2_img_ul clearfix">
                            <div class="index_2_img_li" v-for="item in boxData1data2">
                                <NuxtLink class="index_2_img_li_a" 
                                    :href="getLinkPathDetail(item)" 
                                    :title="item.title" 
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img class="index_2_img_li_img" :src="item.imgurl" :alt="item.title">
                                    <div class="index_2_img_li_dot1 dot1">{{ item.title }}</div>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="index_1_box_2 clearfix">
                        <div class="index_ul_2">
                            <NuxtLink 
                                class="index_ul_2_a dot1"
                                v-for="item in boxData1data3"
                                :href="getLinkPathDetail(item)" 
                                :title="item.title" 
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end 农业市场-->
                </div>
                <div class="index_1_right clearfix">
                    <!--open 特产商城-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[1].cid"
                            :href="getLinkPath(pageData[1])"
                            :title="pageData[1].alias"
                            >
                            {{pageData[1].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[1].cid"
                            :href="getLinkPath(pageData[1])"
                            :title="pageData[1].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_img_big_1_ul clearfix">
                        <div class="index_img_big_1_li" v-for="item in boxData2">
                            <NuxtLink class="index_img_big_1_li_a" :href="getLinkPathDetail(item)" :title="item.title" :target="item.islink == 1 ? '_blank' : '_self'">
                                <img class="index_img_big_1_li_img" :src="item.imgurl" alt="item.title">
                                <div class="index_img_big_1_li_dot1 dot1">
                                    {{ item.title }}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_ul_5">
                        <NuxtLink class="index_ul_5_a dot1" v-for="item in boxData2data2" :href="getLinkPathDetail(item)" :title="item.title" :target="item.islink == 1 ? '_blank' : '_self'">
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                    <!--end 特产商城-->
                </div>
            </section>
            <section class="index_3 clearfix">
                <div class="index_1_left clearfix">
                    <!--open 科教商城-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[2].cid"
                            :href="getLinkPath(pageData[2])"
                            :title="pageData[2].alias"
                            >
                            {{pageData[2].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[2].cid"
                            :href="getLinkPath(pageData[2])"
                            :title="pageData[2].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_1_box_1 clearfix">
                        <div class="index_img_big_3_ul">
                            <div class="index_img_big_3_li" v-for="item in boxData3">
                                <NuxtLink 
                                    :href="getLinkPathDetail(item)" 
                                    class="index_img_big_3_li_a"
                                    :title="item.title" 
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img class="index_img_big_3_li_img" :src="item.imgurl" alt="item.title">
                                    <div class="index_img_big_3_li_dot1 dot1">
                                        {{ item.title }}
                                    </div>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="index_1_box_2 clearfix">
                        <div class="index_ul_3">
                            <NuxtLink 
                                :href="getLinkPathDetail(item)" 
                                class="index_ul_3_a dot1"
                                v-for="item in boxData3data2"
                                :title="item.title" 
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end 科教商城-->
                </div>
                <div class="index_1_right clearfix">
                    <!--open 生活商城-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[3].cid"
                            :href="getLinkPath(pageData[3])"
                            :title="pageData[3].alias"
                            >
                            {{pageData[3].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[3].cid"
                            :href="getLinkPath(pageData[3])"
                            :title="pageData[3].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_2_box_1 clearfix">
                        <div class="index_img_ul_2 clearfix">
                            <div class="index_img_ul_2_li" v-for="item in boxData4">
                                <NuxtLink 
                                    :href="getLinkPathDetail(item)" 
                                    class="index_img_ul_2_li_a"
                                    :title="item.title" 
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img class="index_img_ul_2_li_img" :src="item.imgurl" alt="item.title">
                                    <div class="index_img_ul_2_li_dot1 dot1">
                                        {{item.title}}
                                    </div>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="index_2_box_2 clearfix">
                        <div class="index_ul_4">
                            <div class="index_ul_4_li_box" v-for="item in boxData4data2">
                                <div class="index_ul_4_li">
                                    <NuxtLink 
                                        :href="getLinkPathDetail(item)" 
                                        :title="item.title" 
                                        :target="item.islink == 1 ? '_blank' : '_self'"
                                        class="index_ul_4_a dot2"
                                    >
                                        {{ item.title }}
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--end 生活商城-->
                </div>
            </section>
            <section class="index_4 clearfix">
                <!--open 市场动态-->
                <div class="index_1_box_1 clearfix">
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[4].cid"
                            :href="getLinkPath(pageData[4])"
                            :title="pageData[4].alias"
                            >
                            {{pageData[4].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[4].cid"
                            :href="getLinkPath(pageData[4])"
                            :title="pageData[4].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_img_big_4_ul">
                        <div class="index_img_big_4_li" v-for="item in boxData5">
                            <NuxtLink class="index_img_big_4_li_a" :href="getLinkPathDetail(item)" :title="item.title" :target="item.islink == 1 ? '_blank' : '_self'">
                                <img class="index_img_big_4_li_img" :src="item.imgurl" alt="item.title">
                                <div class="index_img_big_4_li_dot1 dot1">
                                    {{ item.title }}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_ul_6">
                        <NuxtLink 
                            class="index_ul_6_a dot1" 
                            :href="getLinkPathDetail(item)"
                            v-for="item in boxData5data2"
                            :title="item.title" 
                            :target="item.islink == 1 ? '_blank' : '_self'"
                        >
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                    <!--end 市场动态-->
                </div>
                <!--open 市场管理-->
                <div class="index_1_box_2 clearfix">
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[5].cid"
                            :href="getLinkPath(pageData[5])"
                            :title="pageData[5].alias"
                            >
                            {{pageData[5].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[5].cid"
                            :href="getLinkPath(pageData[5])"
                            :title="pageData[5].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <HomeAdAdindexmain :imgurl="adImg2"></HomeAdAdindexmain>
                    <div class="index_ul_7">
                        <NuxtLink 
                            v-for="item in boxData6"
                            class="index_ul_7_a dot1"
                            :href="getLinkPathDetail(item)" 
                            :title="item.title" 
                            :target="item.islink == 1 ? '_blank' : '_self'"
                        >
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                    <div class="index_ul_8 clearfix">
                        <NuxtLink 
                            v-for="item in boxData6data2"
                            class="index_ul_8_a dot1"
                            :href="getLinkPathDetail(item)" 
                            :title="item.title" 
                            :target="item.islink == 1 ? '_blank' : '_self'"
                        >
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                    <!--end 市场管理-->
                </div>
                <!--open 致富信息-->
                <div class="index_1_right clearfix">
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[6].cid"
                            :href="getLinkPath(pageData[6])"
                            :title="pageData[6].alias"
                            >
                            {{pageData[6].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[6].cid"
                            :href="getLinkPath(pageData[6])"
                            :title="pageData[6].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_img_big_5_ul clearfix">
                        <div class="index_img_big_5_li" v-for="item in boxData7">
                            <NuxtLink 
                                class="index_img_big_5_li_a" 
                                :href="getLinkPathDetail(item)" 
                                :title="item.title" 
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                <img class="index_img_big_5_li_img" :src="item.imgurl" alt="item.title">
                                <div class="index_img_big_5_li_dot1 dot1">
                                    {{ item.title }}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_ul_9">
                        <NuxtLink 
                            class="index_ul_9_a dot1" 
                            :href="getLinkPathDetail(item)" 
                            v-for="item in boxData7data2"
                            :title="item.title" 
                            :target="item.islink == 1 ? '_blank' : '_self'"
                        >
                            {{ item.title }}
                        </NuxtLink>  
                    </div>
                    <!--end 致富信息-->
                </div>
            </section>
            <!--广告3-->
            <HomeAdvertising :imgurl="adImg3"></HomeAdvertising>
            <section class="index_5 clearfix">
                <!--open 市场服务-->
                <div class="index_1_box_1 clearfix">
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[7].cid"
                            :href="getLinkPath(pageData[7])"
                            :title="pageData[7].alias"
                            >
                            {{pageData[7].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[7].cid"
                            :href="getLinkPath(pageData[7])"
                            :title="pageData[7].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_img_ul_3">
                        <div class="index_img_ul_3_li" v-for="item in boxData8">
                            <NuxtLink 
                                class="index_img_ul_3_a"
                                :href="getLinkPathDetail(item)" 
                                :title="item.title" 
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                <div class="index_img_ul_3_img_box">
                                    <img class="index_img_ul_3_img" :src="item.imgurl" alt="item.title">
                                </div>
                                <div class="index_img_ul_3_dot2 dot2">
                                    {{ item.title }}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_ul_10">
                        <NuxtLink 
                            class="index_ul_10_a dot1"
                            v-for="item in boxData8data2"
                            :href="getLinkPathDetail(item)" 
                            :title="item.title" 
                            :target="item.islink == 1 ? '_blank' : '_self'"
                        >
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                </div>
                <!--end 市场服务-->
                <div class="index_1_box_2 clearfix">
                    <!--open 市场信息-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[8].cid"
                            :href="getLinkPath(pageData[8])"
                            :title="pageData[8].alias"
                            >
                            {{pageData[8].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[8].cid"
                            :href="getLinkPath(pageData[8])"
                            :title="pageData[8].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_img_ul_4">
                        <div class="index_img_ul_4_li" v-for="item in boxData9">
                            <NuxtLink 
                                class="index_img_ul_4_a"
                                :href="getLinkPathDetail(item)" 
                                :title="item.title" 
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                <div class="index_img_ul_4_img_box">
                                    <img class="index_img_ul_4_img" :src="item.imgurl" alt="item.title">
                                </div>
                                <div class="index_img_ul_4_dot2 dot2">
                                    {{ item.title }}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_ul_11">
                        <NuxtLink 
                            class="index_ul_11_a dot1"
                            :href="getLinkPathDetail(item)" 
                            :title="item.title" 
                            v-for="item in boxData9data2"
                            :target="item.islink == 1 ? '_blank' : '_self'"
                        >
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                    <!--end 市场信息-->
                </div>
                <div class="index_1_right clearfix">
                    <!--open 三农知识-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[9].cid"
                            :href="getLinkPath(pageData[9])"
                            :title="pageData[9].alias"
                            >
                            {{pageData[9].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[9].cid"
                            :href="getLinkPath(pageData[9])"
                            :title="pageData[9].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_ul_12">
                        <div class="index_ul_12_li dot1" v-for="(item,index) in boxData10">
                            <div class="index_ul_12_li_num">{{ index + 1 }}</div>
                            <NuxtLink 
                                :href="getLinkPathDetail(item)" 
                                :title="item.title" 
                                :target="item.islink == 1 ? '_blank' : '_self'"
                                class="index_ul_12_a dot1"
                            >
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end 三农知识-->
                </div>
            </section>
            <section class="index_6 clearfix">
                <div class="index_1_left clearfix">
                    <!--open 农资商城-->
                    <div class="index_2_head">
                        <div class="index_2_head_name">
                            <NuxtLink
                                class="index_2_head_name_a"
                                v-if="pageData[10].cid"
                                :href="getLinkPath(pageData[10])"
                                :title="pageData[10].alias"
                                >
                                {{pageData[10].alias}}
                            </NuxtLink>
                        </div>
                        <div class="index_2_head_right">
                            <NuxtLink 
                                class="index_6_head_right_a" 
                                v-for="item in boxData11menu"
                                :to="{ path: `/${item.aLIas_pinyin}/list-1.html}`}" 
                                :title="item.alias"
                            >
                                {{item.alias}}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_1_box_1 clearfix">
                        <div class="index_img_big_6_ul">
                            <div class="index_img_big_6_li" v-for="item in boxData11">
                                <NuxtLink 
                                    class="index_img_big_6_li_a"
                                    :href="getLinkPathDetail(item)" 
                                    :title="item.title" 
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img :src="item.imgurl" alt="item.title">
                                    <div class="index_img_big_6_li_dot1 dot1">
                                        {{ item.title }}
                                    </div>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="index_1_box_2 clearfix">
                        <div class="index_ul_13">
                            <NuxtLink 
                                class="index_ul_13_a dot1"
                                :href="getLinkPathDetail(item)" 
                                v-for="item in boxData11data2"
                                :title="item.title" 
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end 农资商城-->
                </div>
                <div class="index_1_right clearfix">
                    <!--open 文化商城-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[11].cid"
                            :href="getLinkPath(pageData[11])"
                            :title="pageData[11].alias"
                            >
                            {{pageData[11].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[11].cid"
                            :href="getLinkPath(pageData[11])"
                            :title="pageData[11].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_2_box_1 clearfix">
                        <div class="index_img_ul_5">
                            <div class="index_img_ul_5_li" v-for="item in boxData12">
                                <NuxtLink 
                                    class="index_img_ul_5_li_a"
                                    :href="getLinkPathDetail(item)" 
                                    :title="item.title" 
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img class="index_img_ul_5_li_img" :src="item.imgurl" alt="item.title">
                                    <div class="index_img_ul_5_li_dot1 dot1">
                                        {{ item.title }}
                                    </div>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="index_2_box_2 clearfix">
                        <div class="index_ul_14">
                            <div class="index_ul_14_li_box" v-for="item in boxData12data2">
                                <div class="index_ul_14_li">
                                    <NuxtLink
                                        class="index_ul_14_a dot2"
                                        :href="getLinkPathDetail(item)"
                                        :title="item.title"
                                        :target="item.islink == 1 ? '_blank' : '_self'"
                                    >
                                        {{ item.title }}
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--end 文化商城-->
                </div>
            </section>
            <section class="index_7 clearfix">
                <div class="index_1_left clearfix">
                    <!--open 农副商城-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[12].cid"
                            :href="getLinkPath(pageData[12])"
                            :title="pageData[12].alias"
                            >
                            {{pageData[12].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[12].cid"
                            :href="getLinkPath(pageData[12])"
                            :title="pageData[12].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_1_box_1 clearfix">
                        <div class="index_img_big_7_ul">
                            <div class="index_img_big_7_li" v-for="item in boxData13" :key="item.id">
                                <NuxtLink
                                    class="index_img_big_7_li_a"
                                    :href="getLinkPathDetail(item)"
                                    :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img class="index_img_big_7_li_img" :src="item.imgurl" alt="item.title">
                                    <div class="index_img_big_7_li_dot1 dot1">
                                        {{ item.title }}
                                    </div>
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="index_img_ul_6 clearfix">
                            <div class="index_img_ul_6_li" v-for="item in boxData13data2" :key="per_obj">
                                <NuxtLink
                                    class="index_img_ul_6_a"
                                    :href="getLinkPathDetail(item)"
                                    :title="item.title"
                                    :target="item.islink == 1 ? '_blank' : '_self'"
                                >
                                    <img class="index_img_ul_6_li_img" :src="item.imgurl" alt="item.title">
                                    <div class="index_img_ul_6_li_dot1 dot1">
                                        {{ item.title }}
                                    </div>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="index_1_box_2 clearfix">
                        <div class="index_ul_15">
                            <NuxtLink
                                class="index_ul_15_a dot1"
                                v-for="item in boxData13data3"
                                :href="getLinkPathDetail(item)"
                                :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end 农副商城-->
                </div>
                <div class="index_1_right clearfix">
                    <!--open 人才市场-->
                    <div class="index_2_head">
                        <NuxtLink
                            class="index_2_head_name"
                            v-if="pageData[13].cid"
                            :href="getLinkPath(pageData[13])"
                            :title="pageData[13].alias"
                            >
                            {{pageData[13].alias}}
                        </NuxtLink>
                        <NuxtLink
                            class="index_2_head_more"
                            v-if="pageData[13].cid"
                            :href="getLinkPath(pageData[13])"
                            :title="pageData[13].alias"
                            >
                            更多 &gt;
                        </NuxtLink>
                    </div>
                    <div class="index_img_ul_7 clearfix">
                        <div class="index_img_ul_7_li" v-for="item in boxData14">
                            <NuxtLink
                                class="index_img_ul_7_a"
                                :href="getLinkPathDetail(item)"
                                :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                <img class="index_img_ul_7_li_img" :src="item.imgurl" alt="item.title">
                                <div class="index_img_ul_7_li_dot1 dot1">
                                    {{ item.title }}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_name_ul">
                        <div class="index_name_ul_li" v-for="item in boxData14data2">
                            <NuxtLink
                                class="index_name_ul_li_tag"
                                :href="getLinkPathDetail(item)"
                                :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                <div class="index_img_ul_7_li_dot1 dot1">
                                    民工动态
                                </div>
                            </NuxtLink>
                            <NuxtLink
                                class="index_name_ul_li_dot1 dot1"
                                :href="getLinkPathDetail(item)"
                                :title="item.title"
                                :target="item.islink == 1 ? '_blank' : '_self'"
                            >
                                <div class="index_img_ul_7_li_dot1 dot1">
                                    {{item.title}}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <!--end 人才市场-->
                </div>
            </section>
            <HomeAdvertising :imgurl="adImg4"></HomeAdvertising>
        </main>
        <HomeFoot></HomeFoot>
    </div>
</template>

<script setup>
//0.加载页面必备组件 start---------------------------------------->
import { ref, onMounted } from 'vue';
import { ElMessage } from 'element-plus';
//0.加载页面必备组件 end---------------------------------------->


//1.获取头条新闻 start---------------------------------------->
//1.1 头条
const headline = ref({})

async function getModelData1() {
    const mkdata = await requestDataPromise('/web/getWebsiteArticlett', {
        method: 'GET',
        query: {
            'pageSize': 1,
            'level': 1,
            'placeid': 0,
            'id': ''
        },
    });
    if (mkdata.code == 200) {
        //填充大标题
        headline.value = mkdata.data[0]
    } else {
        console.log("设置大标题错误", mkdata.message)
    }
}
getModelData1()

//1.3 今日热点
const hotNewsList = ref("")
async function getModelData3() {
    const mkdata = await requestDataPromise('/web/getWebsiteArticlett', {
        method: 'GET',
        query: {
            'pageSize': 10,
            'level': 6,
            'placeid': 0,
            'id': ''
        },
    });
    if (mkdata.code == 200) {
        hotNewsList.value = mkdata.data;
    } else {
        console.log("获取首页今日热点错误", mkdata.message)
    }
}
getModelData3()
//1.获取头条新闻 end---------------------------------------->



//2.选项卡 start---------------------------------------->
const hoverStatus = ref(1)
const qhPic = function (num) {
    hoverStatus.value = num;
}
//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=snzxw_index_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=snzxw_index_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=snzxw_index_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=snzxw_index_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---------------------------------------->
//4.1导航
const pageData = ref([
    //示例 { cid: "", title: "", data: [] ,children_count:""},
]);
//4.2 模块数据
//模块1
const boxData1 = ref([])
const boxData1data2 = ref([])
const boxData1data3 = ref([])
//模块2
const boxData2 = ref([]);
const boxData2data2 = ref([]);
//模块3 
const boxData3 = ref([]);
const boxData3data2 = ref([]);
//模块4
const boxData4 = ref([]);
const boxData4data2 = ref([]);
//模块5
const boxData5 = ref([]);
const boxData5data2 = ref([]);
//模块6
const boxData6 = ref([]);
const boxData6data2 = ref([]);
//模块7
const boxData7 = ref([]);
const boxData7data2 = ref([]);
//模块8
const boxData8 = ref([]);
const boxData8data2 = ref([]);
//模块9
const boxData9 = ref([]);
const boxData9data2 = ref([]);
//模块10 
const boxData10 = ref([]);
//模块11 带有子导航
const boxData11 = ref([]);
const boxData11data2 = ref([]);
const boxData11menu = ref([]);
//模块12
const boxData12 = ref([]);
const boxData12data2 = ref([]);
//模块13
const boxData13 = ref([]);
const boxData13data2 = ref([]);
const boxData13data3 = ref([]);
//模块14
const boxData14 = ref([]);
const boxData14data2 = ref([]);

//4.3获得导航数据
try {
    const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
        method: 'GET',
        query: {
            'placeid': 1,
            'pid': 0,
            'num': 30
        },
    });
    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: navigateData.data[index].aLIas_pinyin,
                chilid_id: navigateData.data[index].chilid_id
            };
            //渲染标题
            //1
            if (navigateData.data[index].category_id == 11) { pageData.value[0] = data }
            //2
            if (navigateData.data[index].category_id == 317) { pageData.value[1] = data }
            //3
            if (navigateData.data[index].category_id == 1) { pageData.value[2] = data }
            //4
            if (navigateData.data[index].category_id == 2) { pageData.value[3] = data }
            //5
            if (navigateData.data[index].category_id == 5) { pageData.value[4] = data }
            //6
            if (navigateData.data[index].category_id == 12) { pageData.value[5] = data }
            //7
            if (navigateData.data[index].category_id == 13) { pageData.value[6] = data }
            //8
            if (navigateData.data[index].category_id == 24) { pageData.value[7] = data }
            //9
            if (navigateData.data[index].category_id == 14) { pageData.value[8] = data }
            //10
            if (navigateData.data[index].category_id == 15) { pageData.value[9] = data }
            //11
            if (navigateData.data[index].category_id == 27) { pageData.value[10] = data }
            //12
            if (navigateData.data[index].category_id == 16) { pageData.value[11] = data }
            //13
            if (navigateData.data[index].category_id == 18) { pageData.value[12] = data }
            //14
            if (navigateData.data[index].category_id == 21) { pageData.value[13] = data }

        }
    } else {
        console.log("获取导航池出错！", navigateData.message)
    }
} catch (error) {
    console.log("错误：导航池渲染执行接口出错！请检查首页的14的模块的具体执行方法！")
}

let getJson = [
    { "parent": "11,3,9", "child": "" },//模块1
    { "parent": "317,1,2", "child": "" },//模块2
    { "parent": "1,1,6", "child": "" },//模块3
    { "parent": "2,2,4", "child": "" },//模块4
    { "parent": "5,1,5", "child": "" },//模块5
    { "parent": "12,0,9", "child": "" },//模块6
    { "parent": "13,1,4", "child": "" },//模块7
    { "parent": "24,1,6", "child": "" },//模块8
    { "parent": "14,1,6", "child": "" },//模块9
    { "parent": "15,0,7", "child": "" },//模块10
    { "parent": "21,1,6", "child": "189,0,5" },//模块11 必须含有一个子导航的id 才能获取到子导航列表
    { "parent": "16,2,4", "child": "" },//模块12
    { "parent": "18,3,9", "child": "" },//模块13
    { "parent": "27,2,5", "child": "" },//模块14
]

let jsonString = JSON.stringify(getJson);

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

    if (mkdata.code == 200) {
        //模块1
        mkdata.data[0].imgnum.forEach((item, index) => {
            if (index < 1) {
                boxData1.value.push(item);
            }else{
                boxData1data2.value.push(item);
            }
        });
        boxData1data3.value = mkdata.data[0].textnum;
        //模块2
        boxData2.value = mkdata.data[1].imgnum;
        boxData2data2.value = mkdata.data[1].textnum;
        //模块3
        boxData3.value = mkdata.data[2].imgnum;
        boxData3data2.value = mkdata.data[2].textnum;
        //模块4
        boxData4.value = mkdata.data[3].imgnum;
        boxData4data2.value = mkdata.data[3].textnum;
        //模块5
        boxData5.value = mkdata.data[4].imgnum;
        boxData5data2.value = mkdata.data[4].textnum;
        //模块6
        mkdata.data[5].textnum.forEach((item, index) => {
            if (index < 3) {
                boxData6.value.push(item);
            }else{
                boxData6data2.value.push(item);
            }
        });
        //模块7
        boxData7.value = mkdata.data[6].imgnum;
        boxData7data2.value = mkdata.data[6].textnum;
        //模块8
        boxData8.value = mkdata.data[7].imgnum;
        boxData8data2.value = mkdata.data[7].textnum;
        //模块9
        boxData9.value = mkdata.data[8].imgnum;
        boxData9data2.value = mkdata.data[8].textnum;
        //模块10
        boxData10.value = mkdata.data[9].textnum;
        //模块11
        boxData11.value = mkdata.data[10].imgnum;
        boxData11data2.value = mkdata.data[10].textnum;
        for(let index in mkdata.data[10].child.all_childcat){
            if(index < 6){
                boxData11menu.value.push(mkdata.data[10].child.all_childcat[index])
            }
        }
        //模块12
        boxData12.value = mkdata.data[11].imgnum;
        boxData12data2.value = mkdata.data[11].textnum;
        //模块13
        mkdata.data[12].imgnum.forEach((item, index) => {
            if (index < 1) {
                boxData13.value.push(item);
            }else{
                boxData13data2.value.push(item);
            }
        });
        boxData13data3.value = mkdata.data[12].textnum;
        //模块14
        boxData14.value = mkdata.data[13].imgnum;
        boxData14data2.value = mkdata.data[13].textnum;
        
    } else {
        ElMessage.error(mkdata.message)
    }
}
getPageAllData();
//4.页面数据 end---------------------------------------->

//5.设置seo数据 start---------------------------------------->
//获取seo数据
const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
    method: 'GET',
    query: {},
});
if (setData.code == 200) {
    let seoTitle = setData.data.website_head.title;
    let seoDescription = setData.data.website_head.description;
    let seoKeywords = setData.data.website_head.keywords;
    let seoSuffix = setData.data.website_head.suffix;
    let seoName = setData.data.website_head.website_name;

    useSeoMeta({
        title: seoTitle + "_" + seoSuffix,
        meta: [
            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
        ]
    });
} else {
    console.log("设置首页SEO出错！", setData.message)
}
//5.设置seo数据 start---------------------------------------->
</script>

<style lang="less" scoped>
@import url('@/assets/css/index.less');
</style>