<template>
    <HomePageHead></HomePageHead>
    <HomePageNavigation></HomePageNavigation>
    <!-- 三农市场网-商城 -->
    <main class="index_main">

        <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
 
        <!-- 导航 -->
        <section class="shop_nav phone_none">

            <div class="shop_nav_1 clearfix">

                <span class="shop_nav_1_a" title="">{{ categoryName }}</span>
            </div>
            <div class="shop_nav_2">
                <a class="shop_nav_2_a" :href="getLinkPath(item)" title="" v-for="(item, index) in pageData"
                    :key="index">{{ item.alias }}</a>
            </div>
        </section>

        <div class="phone_nav pc_none">
            <div class="phone_nav_in">

                <a class="phone_nav_a"
                     :href="getLinkPath(item)" 
                     v-for="(item, index) in pageData"
                    :key="index">
                    {{ item.alias }}
                </a>

            </div>
        </div>
 
        <!-- 地区选择 -->
        <GoodsSubMenu></GoodsSubMenu>

        <section class="shop_3 clearfix phone_none">

            <!-- 农产批发1 -->
            <div class="shop_3_in clearfix">
                <div class="shop_head_2 clearfix">
                    <div class="shop_head_2_name">{{ goodsData[0].alias }}</div>
                    <a class="shop_head_2_more" :href="getLinkPath(goodsData[0])" :title="goodsData[0].title"></a>
                </div>
                <div class="shop_img_ul_1 clearfix">
                    <div class="shop_img_li_1 clearfix" v-for="(item, index) in goodsData[0].data" :key="index">
                        <a class="shop_img_li_1_a" :href="getLinkPathDetail(item)" :title="item.title">
                            <div class="shop_img_li_1_img_box clearfix">
                                <img class="shop_img_li_1_img" :src="item.imgurl" :title="item.title" alt="">
                            </div>
                            <div class="shop_img_li_1_right clearfix">
                                <h4 class="shop_img_li_1_h4 dot2">{{ item.name }}</h4>
                                <div class="shop_img_li_1_tag">
                                    {{ item.type_id == 1 ? '求购' : '供应' }}
                                </div>
                                <div class="shop_img_li_1_btn">查看详情</div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            <!-- 农产批发2 -->
            <!-- 集贸市场1 -->
            <div class="shop_3_in clearfix">
                <div class="shop_head_3 clearfix">
                    <div class="shop_head_3_name">{{ goodsData[1].alias }}</div>
                    <a class="shop_head_3_more" :href="getLinkPath(goodsData[1])" :title="goodsData[1].title"></a>
                </div>
                <div class="shop_ul_1 clearfix" v-if="goodsData.length > 1">
                    <div class="shop_li_1 clearfix" v-for="(item, index) in goodsData[1].data" :key="index">
                        <a class="shop_li_1_a" :href="getLinkPathDetail(item)" :title="item.title">
                            <div class="shop_li_1_left">
                                <h4 class="shop_li_1_h4 dot1">
                                    {{ item.name }}
                                </h4>
                                <div class="shop_li_1_text dot1">
                                    {{ item.description }}
                                </div>
                            </div>
                            <div class="shop_li_1_btn">查看详情</div>
                        </a>
                    </div>
                </div>
            </div>
            <!-- 集贸市场2 -->
        </section>

        <div class="phone_shop_1 clearfix pc_none">

            <div class="phone_shop_head">	
                <a class="phone_shop_head_a"
                   :href="getLinkPath(goodsData[0])">
                   {{ goodsData[0].alias }}
                </a>    
            </div>

            <div class="phone_shop_img_ul clearfix">

                <div class="phone_shop_img_li" v-for="(item, index) in goodsData[0].data.slice(0, 2)" :key="index">
                    <a class="phone_shop_img_li_a" :href="getLinkPathDetail(item)" >
                        <img class="phone_shop_img" :src="item.imgurl" :alt="item.title" >
                        <div class="phone_shop_img_li_dot2">
                            {{ item.name }}
                        </div>
                        <div class="phone_shop_img_foot">
                            <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>    
                            <span class="phone_shop_img_foot_2">查看详情</span>    
                        </div>
                    </a>
                </div>

            </div>

        </div>
        	
        <div class="phone_shop_1_text_box clearfix pc_none">
            <div class="phone_shop_text_head">	
                <a class="phone_shop_text_head_a" :href="getLinkPath(goodsData[1])">
                    {{ goodsData[1].alias }}
                </a>    
            </div>

            <div class="phone_shop_text_ul">
                <div class="phone_shop_text_li" v-for="(item, index) in goodsData[1].data.slice(0, 6)" :key="index">
                    <a class="phone_shop_text_li_a" :href="getLinkPathDetail(item)">
                        <h4 class="phone_shop_text_li_h4"> {{ item.name }}</h4>
                        <div class="phone_shop_text_li_dot1">{{ item.description }}</div>

                    </a>
                </div>


            </div>


        </div>


        <section class="shop_4 clearfix phone_none">

            <!-- 名品之窗1 -->
            <div class="shop_3_in clearfix" v-if="goodsData.length > 2">

                <div class="shop_head_4 clearfix">
                    <div class="shop_head_4_name">{{ goodsData[2].alias }}</div>
                    <a class="shop_head_4_more" :href="getLinkPath(goodsData[2])" :title="goodsData[2].title"></a>
                </div>
                <div class="shop_img_ul_2 clearfix">
                    <div class="shop_img_li_2 clearfix" v-for="(item, index) in goodsData[2].data" :key="index">
                        <a class="shop_img_li_2_a" :href="getLinkPathDetail(item)" :title="item.title">
                            <div class="shop_img_li_2_img_box clearfix">
                                <img class="shop_img_li_2_img" :src="item.imgurl" title="" alt="">
                            </div>
                            <div class="shop_img_li_2_right clearfix">
                                <h4 class="shop_img_li_2_h4 dot2">{{ item.name }}</h4>
                                <div class="shop_img_li_2_tag">
                                    {{ item.type_id == 1 ? '求购' : '供应' }}
                                </div>
                                <div class="shop_img_li_2_btn">查看详情</div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            <!-- 名品之窗2 -->
            <!-- 供求信息1 -->
            <div class="shop_3_in clearfix" v-if="goodsData.length > 3">
                <div class="shop_head_5 clearfix">
                    <div class="shop_head_5_name">{{ goodsData[3].alias }}</div>
                    <a class="shop_head_5_more" :href="getLinkPath(goodsData[3])" :title="goodsData[3].title"></a>
                </div>
                <div class="shop_img_ul_3 clearfix">
                    <div class="shop_img_li_3 clearfix" v-for="(item, index) in goodsData[3].data" :key="index">
                        <a class="shop_img_li_3_a" :href="getLinkPathDetail(item)" :title="item.title">
                            <div class="shop_img_li_3_img_box clearfix">
                                <img class="shop_img_li_3_img" :src="item.imgurl" :title="item.title" alt="">
                            </div>
                            <div class="shop_img_li_3_right clearfix">
                                <h4 class="shop_img_li_3_h4 dot2">{{ item.name }}</h4>
                                <div class="shop_img_li_3_tag">
                                    {{ item.type_id == 1 ? '求购' : '供应' }}
                                </div>
                                <div class="shop_img_li_3_btn">查看详情</div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            <!-- 供求信息2 -->
        </section>


        <div class="phone_shop_2 clearfix pc_none" v-if="goodsData.length > 2">

            <div class="phone_shop_head">	
                <a class="phone_shop_head_a"
                   :href="getLinkPath(goodsData[2])">
                  {{ goodsData[2].alias }}
                </a>    
            </div>

            <div class="phone_shop_img_ul clearfix">

                <div class="phone_shop_img_li" v-for="(item, index) in goodsData[2].data.slice(0, 2)" :key="index">
                    <a class="phone_shop_img_li_a" :href="getLinkPathDetail(item)" >
                        <img class="phone_shop_img" :src="item.imgurl" :alt="item.title" >
                        <div class="phone_shop_img_li_dot2">
                            {{ item.name }}
                        </div>
                        <div class="phone_shop_img_foot">
                            <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>    
                            <span class="phone_shop_img_foot_2">查看详情</span>    
                        </div>
                    </a>
                </div>

            </div>

        </div>

        <div class="phone_shop_3 clearfix pc_none" v-if="goodsData.length > 3">

            <div class="phone_shop_head">	
                <a class="phone_shop_head_a"
                   :href="getLinkPath(goodsData[3])">
                  {{ goodsData[3].alias }}
                </a>    
            </div>

            <div class="phone_shop_img_ul clearfix">

                <div class="phone_shop_img_li" v-for="(item, index) in goodsData[3].data.slice(0, 2)" :key="index">
                    <a class="phone_shop_img_li_a" :href="getLinkPathDetail(item)" >
                        <img class="phone_shop_img" :src="item.imgurl" :alt="item.title" >
                        <div class="phone_shop_img_li_dot2">
                            {{ item.name }}
                        </div>
                        <div class="phone_shop_img_foot">
                            <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>    
                            <span class="phone_shop_img_foot_2">查看详情</span>    
                        </div>
                    </a>
                </div>

            </div>

        </div>
        
        <section class="shop_5 clearfix phone_none">

            <!-- 名品之窗1 -->
            <div class="shop_3_in clearfix" v-if="goodsData.length > 4">
                <div class="shop_head_4 clearfix">
                    <div class="shop_head_4_name">{{ goodsData[4].alias }}</div>
                    <a class="shop_head_4_more" :href="getLinkPath(goodsData[4])" :title="goodsData[4].title"></a>
                </div>
                <div class="shop_img_ul_2 clearfix">
                    <div class="shop_img_li_2 clearfix" v-for="(item, index) in goodsData[4].data" :key="index">
                        <a class="shop_img_li_2_a" :href="getLinkPathDetail(item)" :title="item.title">
                            <div class="shop_img_li_2_img_box clearfix">
                                <img class="shop_img_li_2_img" :src="item.imgurl" :title="item.title" alt="">
                            </div>
                            <div class="shop_img_li_2_right clearfix">
                                <h4 class="shop_img_li_2_h4 dot2">{{ item.name }}</h4>
                                <div class="shop_img_li_2_tag">
                                    {{ item.type_id == 1 ? '求购' : '供应' }}
                                </div>
                                <div class="shop_img_li_2_btn">查看详情</div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            <!-- 名品之窗2 -->
            <!-- 供求信息1 -->
            <div class="shop_3_in clearfix" v-if="goodsData.length > 5">
                <div class="shop_head_5 clearfix">
                    <div class="shop_head_5_name">{{ goodsData[5].alias }}</div>
                    <a class="shop_head_5_more" :href="getLinkPath(goodsData[5])" :title="goodsData[5].title"></a>
                </div>
                <div class="shop_img_ul_3 clearfix">
                    <div class="shop_img_li_3 clearfix" v-for="(item, index) in goodsData[5].data" :key="index">
                        <a class="shop_img_li_3_a" :href="getLinkPathDetail(item)" :title="item.title">
                            <div class="shop_img_li_3_img_box clearfix">
                                <img class="shop_img_li_3_img" :src="item.imgurl" :title="item.title" alt="">
                            </div>
                            <div class="shop_img_li_3_right clearfix">
                                <h4 class="shop_img_li_3_h4 dot2">{{ item.name }}</h4>
                                <div class="shop_img_li_3_tag">
                                    {{ item.type_id == 1 ? '求购' : '供应' }}
                                </div>
                                <div class="shop_img_li_3_btn">查看详情</div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            <!-- 供求信息2 -->
        </section>
 
        <div class="phone_shop_4 clearfix pc_none" v-if="goodsData.length > 4">

            <div class="phone_shop_head">	
                <a class="phone_shop_head_a"
                   :href="getLinkPath(goodsData[4])">
                  {{ goodsData[4].alias }}
                </a>    
            </div>

            <div class="phone_shop_img_ul clearfix">

                <div class="phone_shop_img_li" v-for="(item, index) in goodsData[4].data.slice(0, 2)" :key="index">
                    <a class="phone_shop_img_li_a" :href="getLinkPathDetail(item)" >
                        <img class="phone_shop_img" :src="item.imgurl" :alt="item.title" >
                        <div class="phone_shop_img_li_dot2">
                            {{ item.name }}
                             
                        </div>
                        <div class="phone_shop_img_foot">
                            <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>    
                            <span class="phone_shop_img_foot_2">查看详情</span>    
                        </div>
                    </a>
                </div>

            </div>

        </div>

        <div class="phone_shop_5 clearfix pc_none" v-if="goodsData.length > 5">

            <div class="phone_shop_head">	
                <a class="phone_shop_head_a"
                   :href="getLinkPath(goodsData[5])">
                  {{ goodsData[5].alias }}
                </a>    
            </div>

            <div class="phone_shop_img_ul clearfix">

                <div class="phone_shop_img_li" v-for="(item, index) in goodsData[5].data.slice(0, 2)" :key="index">
                    <a class="phone_shop_img_li_a" :href="getLinkPathDetail(item)" >
                        <img class="phone_shop_img" :src="item.imgurl" :alt="item.title" >
                        <div class="phone_shop_img_li_dot2">
                            {{ item.name }}
                             
                        </div>
                        <div class="phone_shop_img_foot">
                            <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>    
                            <span class="phone_shop_img_foot_2">查看详情</span>    
                        </div>
                    </a>
                </div>

            </div>

        </div>


        <HomeAdvertising :imgurl="adImg2"></HomeAdvertising>
    </main>
    <HomeFoot1></HomeFoot1>
</template>
<script setup>
import { ref } from 'vue'
import { ElRadio, ElRadioGroup, ElMessage } from 'element-plus'
//1.获得路由id start ---------------------------------------->
const targetSegment = getRoutePath(1);
//1.1 获得当前的路由id
let routeId;
let categoryName;
//通过导航路径反向查询导航id
const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
    method: 'GET',
    query: {
        'pinyin': targetSegment,
    },
});
if (getRouteId.code == 200) {
    routeId = getRouteId.data.category_id
    categoryName = getRouteId.data.alias
} else {
    console.log("获得路由id出错！", getRouteId.message)
}
//1.获得路由id end ---------------------------------------->

//3.广告 start ---------------------------------------->
let adImg1 = ref({})
let adImg2 = ref({})
onMounted(async () => {
    //从客户端获取行政职能部门 加快打开速度
    const { $webUrl, $CwebUrl } = useNuxtApp();
    //广告1
    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_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=nzgxw_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.广告 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 goodsData = ref([])
const newsData = ref([])


//4.1 获取所有导航
try {
    const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
        method: 'GET',
        query: {
            'placeid': 1,
            'pid': routeId,
            'num': 20,
            'type': 1
        },
    });
    console.log("导航池11111", 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: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
                children: navigateData.data[index].children,
                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 == 2) {
                    goodsData.value.push(data);
                } else if (navigateData.data[index].type == 1) {
                    newsData.value.push(data);
                }
                //每个页面最多8个模块
                pageData.value.push(data);
            }
        }
        console.log("导航池111111pageData", pageData.value);
        console.log("导航池111111goodsData", goodsData.value);
        console.log("导航池111111newsData", newsData.value);

        //导航池加载完毕，开始申请模块数据
        let goodsJson = [
            // { "catid": goodsData.value[0].cid + ",0,12" },//模块1
            // { "catid": goodsData.value[1].cid + ",0,4" },//模块2
            // { "catid": goodsData.value[2].cid + ",0,4" },//模块3
        ]
        for (let i = 0; i < goodsData.value.length; i++) {
            if (i == 0) {
                goodsJson.push({ "catid": goodsData.value[0].cid + ",0,3" });
            } else if (i == 1) {
                goodsJson.push({ "catid": goodsData.value[1].cid + ",0,6" });
            } else if (i == 2) {
                goodsJson.push({ "catid": goodsData.value[2].cid + ",0,3" });
            } else if (i == 3) {
                goodsJson.push({ "catid": goodsData.value[3].cid + ",0,3" });
            } else if (i == 4) {
                goodsJson.push({ "catid": goodsData.value[4].cid + ",0,3" });
            } else if (i == 5) {
                goodsJson.push({ "catid": goodsData.value[5].cid + ",0,3" });
            }
        }
        let goodsJsonString = JSON.stringify(goodsJson);
        getPageGoodsAllData(goodsJsonString);

    } else {
        console.log("错误：渲染8个模块环节出错，请检查是否存在没有数据的模块！")
    }
} catch (error) {
    console.log("错误：导航池渲染执行接口出错！请检查频道页渲染的模块数据是否完整！")
}
// 获取商品数据 start--------------------------------------->
async function getPageGoodsAllData(goodsJsonString) {
    const mkdata = await requestDataPromise('/web/getWebsiteCatidshop', {
        method: 'GET',
        query: {
            'catid': goodsJsonString
        },
    });
    console.log("获取商品数据", mkdata);

    if (mkdata.code == 200) {
        goodsData.value[0].data = mkdata.data[0];//模块1
        goodsData.value[1].data = mkdata.data[1];//模块2
        goodsData.value[2].data = mkdata.data[2];//模块3
        goodsData.value[3].data = mkdata.data[3];//模块4
        goodsData.value[4].data = mkdata.data[4];//模块5
        goodsData.value[5].data = mkdata.data[5];//模块6
    }
}
// 获取商品数据 end----------------------------------------->

//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 + "_" + seoName + "_" + 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/shopClass.less");
</style>
		 
<style lang="less" scoped>

 
    @media screen and (min-width:801px){/*pc*/
         
		
            .pc_none{display:none;}
    }
    @media screen and (max-width:800px){/*ipad_phone*/

            .index_main{width:100%;margin:0px auto;}
            .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:#A01C0E;
            }

            .phone_shop_1{width:92%;margin:10px auto 0;

                .phone_shop_head{overflow:hidden;}
                .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                            color:#a91b33;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_shop_img_ul{min-height:252px;}
                .phone_shop_img_li{width:48%;margin-bottom:15px;}
                .phone_shop_img_li:nth-of-type(odd){float:left; }
                .phone_shop_img_li:nth-of-type(even){ float:right;}
                .phone_shop_img_li_a{display:block;width:100%; }
                .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
                .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
                                        overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
                .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
                .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#a91b33;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #a91b33;}
                .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#a91b33; padding:0px 6px;border:solid 1px #a91b33;}
            
            }

            .phone_shop_1_text_box{
                width:92%;margin:0px auto 0px;
                .phone_shop_text_head{overflow:hidden;}
                .phone_shop_text_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                            color:#F7812B;font-size:18px; font-weight:bold;box-sizing:border-box;
                             padding-left:18px;
                            background:url(@/public/shop/02.png) no-repeat left center;
                            background-size:10px 14px;   }
                .phone_shop_text_ul{width:100%;}
                .phone_shop_text_li{width:100%;border-bottom:dashed 1px #ddd;padding-bottom:8px;margin-bottom:8px;}
                .phone_shop_text_li_a{display:block;width:100%;}
                .phone_shop_text_li_h4{display:block;width:100%;height:20px;line-height:20px;color:#333;font-size:16px;text-indent:15px;position:relative;font-weight:normal;
                                        word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;}
                .phone_shop_text_li_h4::after {
                    content: '';
                    display: block;
                    width: 6px;
                    height: 6px;
                    background: #F7812B;
                    position: absolute;
                    left: 0px;
                    top: 7px;
                }


                .phone_shop_text_li_dot1{display:block;width:100%;height:20px;line-height:20px;color:#666;font-size:14px;text-indent:15px;margin-top:2px;
                                        word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;}
                 




            }

            .phone_shop_2{width:92%;margin:10px auto 0;

                .phone_shop_head{overflow:hidden;}
                .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                            color:#a91b33;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_shop_img_ul{min-height:252px;}
                .phone_shop_img_li{width:48%;margin-bottom:15px;}
                .phone_shop_img_li:nth-of-type(odd){float:left; }
                .phone_shop_img_li:nth-of-type(even){ float:right;}
                .phone_shop_img_li_a{display:block;width:100%; }
                .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
                .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
                                        overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
                .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
                .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#a91b33;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #a91b33;}
                .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#a91b33; padding:0px 6px;border:solid 1px #a91b33;}
            
            }

            .phone_shop_3{width:92%;margin:10px auto 0;

                .phone_shop_head{overflow:hidden;}
                .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                            color:#F7812B;font-size:18px; font-weight:bold;box-sizing:border-box;
                             padding-left:18px;
                            background:url(@/public/shop/02.png) no-repeat left center;
                            background-size:10px 14px;   
                        }
                .phone_shop_img_ul{min-height:252px;}
                .phone_shop_img_li{width:48%;margin-bottom:15px;}
                .phone_shop_img_li:nth-of-type(odd){float:left; }
                .phone_shop_img_li:nth-of-type(even){ float:right;}
                .phone_shop_img_li_a{display:block;width:100%; }
                .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
                .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
                                        overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
                .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
                .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#F7812B;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #F7812B;}
                .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#F7812B; padding:0px 6px;border:solid 1px #F7812B;}
            
            }

            .phone_shop_4{width:92%;margin:10px auto 0;

                .phone_shop_head{overflow:hidden;}
                .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                            color:#a91b33;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_shop_img_ul{min-height:252px;}
                .phone_shop_img_li{width:48%;margin-bottom:15px;}
                .phone_shop_img_li:nth-of-type(odd){float:left; }
                .phone_shop_img_li:nth-of-type(even){ float:right;}
                .phone_shop_img_li_a{display:block;width:100%; }
                .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
                .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
                                        overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
                .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
                .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#a91b33;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #a91b33;}
                .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#a91b33; padding:0px 6px;border:solid 1px #a91b33;}
            
            }


            .phone_shop_5{width:92%;margin:10px auto 15px;

                .phone_shop_head{overflow:hidden;}
                .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
                            color:#F7812B;font-size:18px; font-weight:bold;box-sizing:border-box;
                             padding-left:18px;
                            background:url(@/public/shop/02.png) no-repeat left center;
                            background-size:10px 14px;   
                        }
                .phone_shop_img_ul{min-height:252px;}
                .phone_shop_img_li{width:48%;margin-bottom:15px;}
                .phone_shop_img_li:nth-of-type(odd){float:left; }
                .phone_shop_img_li:nth-of-type(even){ float:right;}
                .phone_shop_img_li_a{display:block;width:100%; }
                .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
                .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
                                        overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
                .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
                .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#F7812B;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #F7812B;}
                .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#F7812B; padding:0px 6px;border:solid 1px #F7812B;}
            
            }




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





