<template>
    <div class="company" v-if="routeType == 6">

        <section class="index_1 clearfix phone_none">
            <div class="shop_head_1 clearfix">
                <div class="shop_head_1_name">{{ secNavTitle }}</div>
            </div>

            <div class="categ_color_box clearfix">
                <div class="categ_color_name clearfix">直达：</div>
                <div class="categ_color_in clearfix">
                    <NuxtLink class="categ_color_a" :href="`/${item.aLIas_pinyin}/list-1.html`" title="item.title"
                        v-for="(item, index) in companyData" :key="index">
                        {{ item.alias }}
                    </NuxtLink>
                </div>
            </div>
        </section>

        <div class="phone_nav pc_none">
            <div class="phone_nav_in">
                <NuxtLink class="phone_nav_a" :href="`/${item.aLIas_pinyin}/list-1.html`" 
                        v-for="(item, index) in companyData" :key="index">
                        {{ item.alias }}
                </NuxtLink>
            </div>
        </div>




        <!-- 三农市场网-商城-资讯列表2 -->
        <section class=" ">
            <!-- 面包屑导航 -->
            <div class="breadcrumb phone_none">
                <div class="inner">
                    <span class="location">当前位置：</span>
                    <el-breadcrumb :separator-icon="ArrowRight">
                        <el-breadcrumb-item>
                            <NuxtLink to="/">首页</NuxtLink>
                        </el-breadcrumb-item>
                        <el-breadcrumb-item v-if="parent_name != ''">
                            <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
                        </el-breadcrumb-item>
                        <el-breadcrumb-item>
                            <NuxtLink :to="`list-1.html`"> {{ secNavTitle }}</NuxtLink>
                        </el-breadcrumb-item>
                    </el-breadcrumb>
                </div>
            </div>

            <div class="breadcrumb_box pc_none">
                
                <span class=" ">当前位置：</span>
                <NuxtLink to="/">首页</NuxtLink>

                <span class=" " v-if="parent_name != ''">&gt;</span>
                <NuxtLink :to="`/${parent_pinyin}/index.html`" v-if="parent_name != ''"> {{ parent_name }}</NuxtLink>

                <span class="" >&gt;</span>
                <NuxtLink :to="`list-1.html`"> {{ secNavTitle }}</NuxtLink>
                
            </div>
 
            <section class="index_2 clearix phone_none" v-if="companyData.length > 0">


                <div class="index_2_left" v-if="companyData[0].data">

                    <GoodsSwiperSnscShopInfoCateg :data="companyData[0].data"></GoodsSwiperSnscShopInfoCateg>
                </div>
                <div class="index_2_right">
                    <div class="shop_head_2 clearfix">
                        <NuxtLink class="shop_head_2_name" :href="getLinkPath1(companyData[0])">
                            {{ companyData[0].alias }}
                        </NuxtLink>
                    </div>
                    <div class="shop_ul_1 clearfix" v-if="companyData[0].data2">
                        <NuxtLink class="shop_li_1 dot1" :href="getLinkPathDetail(item)" :title="item.title"
                            v-for="(item, index) in companyData[0].data2" :key="index">
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                </div>
            </section>

            <div class="phone_box_1 pc_none" v-if="companyData.length > 0">

                    <div class="phone_shop_head">
                        <NuxtLink class=""
                                :href="getLinkPath1(companyData[0])">
                                {{ companyData[0].alias }}
                        </NuxtLink>
                    </div>
                
                    <div class="phone_box_img_ul">

                        <div class="" >
                            <NuxtLink class=""
                                v-for="(item, index) in companyData[0].data.slice(0, 1)"
                                :href="getLinkPathDetail(item)"
                                :key="index">
                                    <img class="" :src="item.imgurl" alt="">
                                    <span class="">
                                        {{ item.title }}
                                    </span>
                            </NuxtLink>
                        </div>

                    </div>

                    <div class="phone_box_ul">
                            <NuxtLink class=""
                                 :href="getLinkPathDetail(item)" 
                                v-for="(item, index) in companyData[0].data2" 
                                :key="index">
                                {{ item.title }}
                            </NuxtLink>

                    </div>
 
                
            </div>

            <section class="index_3 clearfix phone_none">

                <div class="index_3_left clearfix" v-if="companyData.length > 1">
                    <!-- 农产科教1 -->
                    <div class="shop_head_2 clearfix">
                        <NuxtLink class="shop_head_2_name" :href="getLinkPath1(companyData[1])">
                            {{ companyData[1].alias }}
                        </NuxtLink>
                    </div>
                    <div class=" clearfix" v-if="companyData.length > 1">
                        <div class="index_3_in clearfix">
                            <div class="shop_img_ul_1 clearfix" v-if="companyData[1].data">
                                <div class="shop_img_li_1 clearfix">
                                    <NuxtLink class="shop_img_li_1_a" :href="getLinkPathDetail(item)"
                                        v-for="(item, index) in companyData[1].data" :key="index" :title="item.title">
                                        <img class="shop_img_li_1_img" :src="item.imgurl" :title="item.title" alt="">
                                        <div class="shop_img_li_1_rgba clearfix dot1">
                                            {{ item.title }}
                                        </div>
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                        <div class="index_3_in clearfix" v-if="companyData[1].data2">
                            <div class="shop_ul_2 clearfix">
                                <NuxtLink class="shop_li_2 clearfix dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="(item, index) in companyData[1].data2" :key="index">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <!-- 农产科教2 -->
                    <!-- 农产商机1 -->
                    <div class="shop_head_3 clearfix" v-if="companyData.length > 2">
                        <NuxtLink class="shop_head_3_name" :href="getLinkPath1(companyData[2])">
                            {{ companyData[2].alias }}
                        </NuxtLink>
                    </div>
                    <div class=" clearfix">
                        <div class="index_3_in_2 clearfix" v-if="companyData.length > 2">
                            <div class="shop_img_ul_2 clearfix">
                                <div class="shop_img_li_2 clearfix" v-if="companyData[2].data">
                                    <NuxtLink class="shop_img_li_2_a" :href="getLinkPathDetail(item)"
                                        v-for="(item, index) in companyData[2].data" :title="item.title">
                                        <img class="shop_img_li_2_img" :src="item.imgurl" :title="item.title" alt="">
                                        <div class="shop_img_li_2_rgba clearfix dot1">
                                            {{ item.title }}
                                        </div>
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                        <div class="index_3_in_2 clearfix">
                            <div class="shop_ul_3 clearfix" v-if="companyData[2].data2">
                                <NuxtLink class="shop_li_3 clearfix dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="(item, index) in companyData[2].data2" :key="index">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <!-- 农产商机2 -->
                </div>
                <!-- 农产会展1 -->
                <div class="index_3_right" v-if="companyData.length > 3">
                    <div class="shop_head_4 clearfix">
                        <NuxtLink class="shop_head_4_name" :href="getLinkPath1(companyData[3])">
                            {{ companyData[3].alias }}
                        </NuxtLink>
                    </div>
                    <div class="shop_img_ul_3 clearfix">
                        <div class="shop_img_li_3 clearfix" v-if="companyData[3].data">
                            <NuxtLink class="shop_img_li_3_a" :href="getLinkPathDetail(item)"
                                v-for="(item, index) in companyData[3].data" :key="index" :title="item.title">
                                <img class="shop_img_li_3_img" :src="item.imgurl" :title="item.title" alt="">
                                <div class="shop_img_li_3_rgba clearfix dot1">
                                    {{ item.title }}
                                </div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="shop_ul_4 clearfix" v-if="companyData[2].data2">
                        <NuxtLink class="shop_li_4 dot1" :href="getLinkPathDetail(item)" :title="item.title"
                            v-for="(item, index) in companyData[3].data2" :key="index">
                            <span class="shop_li_4_num">
                                {{ index + 1 }}
                            </span>
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                </div>
                <!-- 农产会展2 -->
            </section>

            <div class="phone_box_2 pc_none" v-if="companyData.length > 1">

                    <div class="phone_shop_head">
                        <NuxtLink class=""
                             :href="getLinkPath1(companyData[1])">
                            {{ companyData[1].alias }}
                        </NuxtLink>
                    </div>
                
                    <div class="phone_box_img_ul">

                        <div class="" >
                            <NuxtLink class=""
                                 :href="getLinkPathDetail(item)"
                                v-for="(item, index) in companyData[1].data.slice(0,1)"
                                 :key="index" >
                                <img class=" " :src="item.imgurl" alt="">
                                <span class=" ">
                                    {{ item.title }}
                                </span>
                            </NuxtLink>
                        </div>

                    </div>

                    <div class="phone_box_ul" v-if="companyData[1].data2"> 

                        <NuxtLink class=""
                            v-for="(item, index) in companyData[1].data2.slice(0,3)"
                             :href="getLinkPathDetail(item)"
                               :key="index">
                                {{ item.title }}
                        </NuxtLink>

                    </div>
 
                
            </div>

            <div class="phone_box_3 pc_none" v-if="companyData.length > 2">


                    <div class="phone_shop_head">
                        <NuxtLink 
                            class=""
                             :href="getLinkPath1(companyData[2])">
                            {{ companyData[2].alias }}
                        </NuxtLink>
                    </div>
                
                    <div class="phone_box_img_ul">

                        <div class="" >
                            <NuxtLink class=""
                                :href="getLinkPathDetail(item)"
                                v-for="(item, index) in companyData[2].data.slice(0,1)" >
                                    <img class="" :src="item.imgurl" alt="">
                                    <div class="">
                                        {{ item.title }}
                                    </div>
                            </NuxtLink>
                        </div>

                    </div>

                    <div class="phone_box_ul" v-if="companyData[2].data2">

                        <NuxtLink class=""
                             :href="getLinkPathDetail(item)"
                             v-for="(item, index) in companyData[2].data2.slice(0,3)" :key="index">
                                    {{ item.title }}
                        </NuxtLink>

                    </div>
 
                
            </div>

             <div class="phone_box_4 pc_none" v-if="companyData.length > 3">

                    <div class="phone_shop_head">
                        <NuxtLink class=""
                             :href="getLinkPath1(companyData[3])">
                            {{ companyData[3].alias }}
                        </NuxtLink>
                    </div>
                
                    <div class="phone_box_img_ul">

                        <div class="" >
                            <NuxtLink class=""
                                v-for="(item, index) in companyData[3].data.slice(0,1)"
                                 :href="getLinkPathDetail(item)"
                                 :key="index" >
                                <img class=" " :src="item.imgurl" alt="">
                                <span class=" ">
                                    {{ item.title }}
                                </span>
                            </NuxtLink>
                        </div>

                    </div>

                    <div class="phone_box_ul" v-if="companyData[2].data2">

                        <NuxtLink class=""
                            v-for="(item, index) in companyData[3].data2.slice(0,3)"
                             :href="getLinkPathDetail(item)" 
                             :key="index">
                            {{ item.title }}
                        </NuxtLink>

                    </div>
 
                
            </div>

        </section>
    </div>

</template>

<script setup>
//0.加载页面依赖 start ---------------------------------------->
import { ref, onMounted } from 'vue';
import { ElMessage, ElBreadcrumb, ElBreadcrumbItem } from 'element-plus';
import { ArrowRight } from '@element-plus/icons-vue'
import { NuxtLink } from '#components';
//0.加载页面依赖 end ---------------------------------------->

//1.获得路由id start ---------------------------------------->
const targetSegment2 = getRoutePath(2);
const targetSegment1 = getRoutePath(1);
//1.1 获得当前的路由id
let routeId;
let routeType;
let secNavTitle = ref('')//二级导航标题
//通过导航路径反向查询导航id
const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
    method: 'GET',
    query: {
        'pinyin': targetSegment1 + '/' + targetSegment2,
    },
});
console.log("getRouteId", getRouteId);

if (getRouteId.code == 200) {
    routeId = getRouteId.data.category_id
    secNavTitle.value = getRouteId.data.alias
    routeType = getRouteId.data.type
} else {
    console.log("获得路由id出错！", getRouteId.message)
}
//1.2 获得父级栏目
let parent_name = ref('');//父级名称
let parent_id = ref('');//父级id
let parent_pinyin = ref('');//父级拼音
const getRoutePName = await requestDataPromise('/web/getWebsiteRoute', {
    method: 'GET',
    query: {
        'pinyin': targetSegment1,
    },
});
// console.log("getRoutePName", getRoutePName);

if (getRoutePName.code == 200) {
    parent_id.value = getRoutePName.data.category_id
    parent_name.value = getRoutePName.data.alias
} else {
    console.log("获得路由id出错！", getRoutePName.message)
}
const getParentId = await requestDataPromise('/web/getOneWebsiteCategory', {
    method: 'GET',
    query: {
        'catid': parent_id.value,
    },
});
// console.log("getParentId", getParentId);

if (getParentId.code == 200) {
    parent_pinyin.value = getParentId.data.aLIas_pinyin
} else {
    console.log("获得路由id出错！", getParentId.message)
}
//1.获得路由id end ---------------------------------------->

//2.选项卡 start ---------------------------------------->
let showTabs = ref(1)
let qhtabs = function (number) {
    console.log(number)
    showTabs.value = number
}
//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_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=snzxw_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=snzxw_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=snzxw_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([])

//4.1 获取所有导航
try {
    const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
        method: 'GET',
        query: {
            'placeid': 1,
            'pid': routeId,
            'num': 8,
            'type': 1
        },
    });
    // console.log('获取三级导航1111111', navigateData);

    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: targetSegment1 + "/" + targetSegment2 + "/" + navigateData.data[index].aLIas_pinyin,
                type: navigateData.data[index].type,
                data: [],
                data1: [],
                data2: [],
                data3: [],
                data4: [],
                category_id1: "",
                category_id2: "",
                category_id3: "",
                category_id4: "",
                title1: "",
                title2: "",
                title3: "",
                title4: ""
            };
            if (navigateData.data[index].is_url == 1) {
                // 处理 URL 的逻辑
            } else {
                if (navigateData.data[index].type == 6) {
                    companyData.value.push(data);
                }
                //每个页面最多8个模块
                pageData.value.push(data);
            }
        }
        // console.log('获取三级导航pageData', pageData.value);
        console.log('获取三级导航company', companyData.value);

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


    } 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('获取模块数据', mkdata);

    if (mkdata.code == 200) {
        //模块1 顶部大图和列表
        companyData.value[0].data = mkdata.data[0].img_num;
        companyData.value[0].data2 = mkdata.data[0].text_num;
        //模块2
        companyData.value[1].data = mkdata.data[1].img_num;
        companyData.value[1].data2 = mkdata.data[1].text_num;
        //模块3
        companyData.value[2].data = mkdata.data[2].img_num;
        companyData.value[2].data2 = mkdata.data[2].text_num;
        //模块4
        companyData.value[3].data = mkdata.data[3].img_num;
        companyData.value[3].data2 = mkdata.data[3].text_num;
    } 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 url("@/assets/css/shop/newsClass.less");

    .company {
        width: 1200px;
        margin: 0 auto;
    }

    //导航条
    .breadcrumb {
        width: 100%;
        height: 22px;
        padding-bottom: 30px;
        border-bottom: 1px solid #ccc;
        font-family: Microsoft YaHei, Microsoft YaHei;
        font-weight: 400;
        font-size: 20px;
        color: #666666;
        line-height: 23px;
        text-align: left;
        font-style: normal;
        text-transform: none;
        margin-top: 40px;

        :deep(.el-breadcrumb) {
            display: inline-block;
            vertical-align: -4px;
        }

        :deep(.el-breadcrumb__inner a),
        :deep(.el-breadcrumb__inner.is-link) {
            color: #666666;
            font-weight: 400;
            text-decoration: none;
            transition: var(--el-transition-color);
        }

        span {
            font-family: Microsoft YaHei, Microsoft YaHei;
            font-weight: 400;
            font-size: 20px;
            color: #666666;
            line-height: 23px;
            text-align: left;
            font-style: normal;
            text-transform: none;
        }

        span:hover {
            color: #666666;
        }

        .location {
            margin-right:5px;
            width: 100px;
            height: 22px;
            font-family: Microsoft YaHei, Microsoft YaHei;
            font-weight: 400;
            font-size: 20px;
            color: #666666;
            line-height: 23px;
            text-align: left;
            font-style: normal;
            text-transform: none;
        }
    }
</style>


<style lang="less" scoped>

 
    @media screen and (min-width:801px){/*pc*/
         
            .index_2{overflow:hidden;}        
            .pc_none{display:none;}
    }
    @media screen and (max-width:800px){/*ipad_phone*/
        
        .company{ width: 100%; margin:0px auto 0px;}
        
        
        .phone_nav{ 

                width:100%; box-sizing:border-box;background:#fafafa; 
                margin:10px auto;height:33px;

                .phone_nav_in{ width:92%;margin:0px auto;
                    overflow-x:auto;overflow-y:hidden; 
                    word-break: keep-all; white-space: nowrap;    
                    line-height:33px;
                        height:33px;
                }
                .phone_nav_in::-webkit-scrollbar{height:0px;}


                .phone_nav_a{display:inline-block;line-height:33px;height:33px;
                    color:#333;font-size:14px;margin:0px 10px;
                }
                .phone_nav_a:nth-of-type(1){margin-left:0px;}

        }
        .phone_nav_a.active{
            color:#255590;
        }
        
        .breadcrumb_box {
            height: 22px;
            width: 92%;
            margin: 10px auto;
            word-break: keep-all;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 14px;
            color: #666;
            * {
                font-size: 14px;
                display: inline;
                color: #666;
                line-height: 22px;
                height: 22px;
                margin-right: 5px;
            }
        }

        .phone_box_1{
                width:92%;margin:0px auto 0px;    
                .phone_shop_head{overflow:hidden;margin-top:15px;
                    a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                        color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
                        padding-left:18px;
                        background:url(@/public/shop/01.png) no-repeat left center;
                        background-size:10px 14px;   
                    }
                }
                .phone_box_img_ul{

                    height:55vw;overflow:hidden; 

                    div{width:100%;float:none;height:55vw;border-radius:10px;position:relative;overflow:hidden;}
                    a{display:block;width:100%;height:100%;}
                    img{display:block;width:100%;height:100%;}
                    span{
                        position:absolute;width:100%;height:66px;line-height:90px;color:#fff;   font-size:16px;
                        left:0px;bottom:0px;padding:0px 5%;box-sizing:border-box; display:block;
                        background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
                        word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                    }
                    >div:nth-of-type(n+2){display:none;}

                }
                .phone_box_ul{
                    overflow:hidden;height:123px;margin:8px auto 0px;
                    >div{width:100%;height:100%;}
                    a{
                                    width:100%!important;display:block;height:40px;line-height:40px;            
                                    border-bottom:1px solid #E6E6E6;display:block;position:relative;
                                    word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                                    font-size:16px;color:#333;text-indent:18px;
                    }
                    a::after{
                                    content: '';display: block;
                                    position:absolute;left:0px;top:18px;background:#E6E6E6;
                                    width:6px;height:6px;
                    }
                    a:nth-of-type(n+4){display:none;}
                }
          }

        .phone_box_2{

                width:92%;margin:0px auto 0px;    
                .phone_shop_head{overflow:hidden;margin-top:15px;
                    a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                        color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
                        padding-left:18px;
                        background:url(@/public/shop/01.png) no-repeat left center;
                        background-size:10px 14px;   
                    }
                }
                .phone_box_img_ul{

                    height:55vw;overflow:hidden; 

                    div{width:100%;float:none;height:55vw;border-radius:10px;position:relative;overflow:hidden;}
                    a{display:block;width:100%;height:100%;}
                    img{display:block;width:100%;height:100%;}
                    span{
                        position:absolute;width:100%;height:66px;line-height:90px;color:#fff;   font-size:16px;
                        left:0px;bottom:0px;padding:0px 5%;box-sizing:border-box; display:block;
                        background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
                        word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                    }
                    >div:nth-of-type(n+2){display:none;}

                }
                .phone_box_ul{
                    overflow:hidden;height:123px;margin:8px auto 0px;
                    >div{width:100%;height:100%;}
                    a{
                                    width:100%!important;display:block;height:40px;line-height:40px;            
                                    border-bottom:1px solid #E6E6E6;display:block;position:relative;
                                    word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                                    font-size:16px;color:#333;text-indent:18px;
                    }
                    a::after{
                                    content: '';display: block;
                                    position:absolute;left:0px;top:18px;background:#E6E6E6;
                                    width:6px;height:6px;
                    }
                    a:nth-of-type(n+4){display:none;}
                }
          }

        .phone_box_3{

                width:92%;margin:0px auto 0px;    
                .phone_shop_head{overflow:hidden;margin-top:15px;
                    a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                        color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
                        padding-left:18px;
                        background:url(@/public/shop/01.png) no-repeat left center;
                        background-size:10px 14px;   
                    }
                }
                .phone_box_img_ul{

                    height:55vw;overflow:hidden; 

                    div{width:100%;float:none;height:55vw;border-radius:10px;position:relative;overflow:hidden;}
                    a{display:block;width:100%;height:100%;}
                    img{display:block;width:100%;height:100%;}
                    span{
                        position:absolute;width:100%;height:66px;line-height:90px;color:#fff;   font-size:16px;
                        left:0px;bottom:0px;padding:0px 5%;box-sizing:border-box; display:block;
                        background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
                        word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                    }
                    >div:nth-of-type(n+2){display:none;}

                }
                .phone_box_ul{
                    overflow:hidden;height:123px;margin:8px auto 0px;
                    >div{width:100%;height:100%;}
                    a{
                                    width:100%!important;display:block;height:40px;line-height:40px;            
                                    border-bottom:1px solid #E6E6E6;display:block;position:relative;
                                    word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                                    font-size:16px;color:#333;text-indent:18px;
                    }
                    a::after{
                                    content: '';display: block;
                                    position:absolute;left:0px;top:18px;background:#E6E6E6;
                                    width:6px;height:6px;
                    }
                    a:nth-of-type(n+4){display:none;}
                }
          }
          
        .phone_box_4{

                width:92%;margin:0px auto 0px;    
                .phone_shop_head{overflow:hidden;margin-top:15px;
                    a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                        color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
                        padding-left:18px;
                        background:url(@/public/shop/01.png) no-repeat left center;
                        background-size:10px 14px;   
                    }
                }
                .phone_box_img_ul{

                    height:55vw;overflow:hidden; 

                    div{width:100%;float:none;height:55vw;border-radius:10px;position:relative;overflow:hidden;}
                    a{display:block;width:100%;height:100%;}
                    img{display:block;width:100%;height:100%;}
                    span{
                        position:absolute;width:100%;height:66px;line-height:90px;color:#fff;   font-size:16px;
                        left:0px;bottom:0px;padding:0px 5%;box-sizing:border-box; display:block;
                        background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
                        word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                    }
                    >div:nth-of-type(n+2){display:none;}

                }
                .phone_box_ul{
                    overflow:hidden;height:123px;margin:8px auto 0px;
                    >div{width:100%;height:100%;}
                    a{
                                    width:100%!important;display:block;height:40px;line-height:40px;            
                                    border-bottom:1px solid #E6E6E6;display:block;position:relative;
                                    word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
                                    font-size:16px;color:#333;text-indent:18px;
                    }
                    a::after{
                                    content: '';display: block;
                                    position:absolute;left:0px;top:18px;background:#E6E6E6;
                                    width:6px;height:6px;
                    }
                    a:nth-of-type(n+4){display:none;}
                }
          }


            .phone_none{display:none;}
    
    }
</style>
