|
@@ -2,31 +2,35 @@
|
|
|
<ShopPageHead></ShopPageHead>
|
|
|
<!-- xc_shop_search_more_no_card 乡村网-商城-搜索-查看更多 -->
|
|
|
<main class="index_main" id="all_vue">
|
|
|
- <div class="shop_banner">
|
|
|
- <a class="shop_banner_a" href="" title="">
|
|
|
- <img class="shop_banner_img" src="@/public/img/6.png" title="" alt="">
|
|
|
- </a>
|
|
|
- </div>
|
|
|
+ <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
|
|
|
<!--子菜单和地区选择-->
|
|
|
- <ShopSubMenu></ShopSubMenu>
|
|
|
-
|
|
|
+ <ShopSubMenu2></ShopSubMenu2>
|
|
|
<!-- 地区选择 -->
|
|
|
<div class="categ_crumb_box clearfix_2">
|
|
|
<!-- 当前位置 -->
|
|
|
<div class="categ_crumb_left">
|
|
|
- <a class="categ_crumb_left_a" title=""> 当前位置: </a>
|
|
|
+ <span class="categ_crumb_left_a" title=""> 当前位置: </span>
|
|
|
+ <NuxtLink
|
|
|
+ :to="`/xiangcunshangcheng/index.html`"
|
|
|
+ class="categ_crumb_left_a"
|
|
|
+ >
|
|
|
+ 乡村商城
|
|
|
+ </NuxtLink>
|
|
|
>
|
|
|
- <a class="categ_crumb_left_a" href="" title=""> 乡村商城 </a>
|
|
|
+ <NuxtLink
|
|
|
+ :to="`/xiangcunshangcheng/${targetSegment}/index.html`"
|
|
|
+ class="categ_crumb_left_a"
|
|
|
+ >
|
|
|
+ {{name}}
|
|
|
+ </NuxtLink>
|
|
|
>
|
|
|
- <a class="categ_crumb_left_a" href="" title=""> 农副产品 </a>
|
|
|
- >
|
|
|
- <span class="categ_crumb_left_text"> 皮毛畜禽 </span>
|
|
|
+ <span class="categ_crumb_left_text">求购</span>
|
|
|
</div>
|
|
|
<!-- 当前位置 -->
|
|
|
<!-- 当前商品所在地 -->
|
|
|
- <div class="categ_crumb_right clearfix">
|
|
|
+ <div class="categ_crumb_right clearfix" v-if="cityList.length > 0">
|
|
|
<div class="categ_crumb_right_text">当前商品所在地:</div>
|
|
|
- <div class="categ_crumb_right_text hand">天津</div>
|
|
|
+ <div class="categ_crumb_right_text hand">{{cityName}}</div>
|
|
|
<div class="categ_crumb_right_btn back100 hand" @click="btn_if_categ_crumb_panel_fun" tabindex="1"
|
|
|
@blur="categ_crumb_panel_btn_blur_fun">
|
|
|
</div>
|
|
@@ -36,36 +40,37 @@
|
|
|
@click="categ_crumb_panel_focus_fun" @blur="categ_crumb_panel_blur_fun">
|
|
|
<h4 class="categ_crumb_panel_h4">您可以选择以下详细地区</h4>
|
|
|
<div class="categ_crumb_panel_btn_box clearfix">
|
|
|
- <span class="categ_crumb_panel_btn hand"
|
|
|
- :class="{ categ_crumb_panel_btn_only: per_index == if_categ_crumb_panel_btn_num }"
|
|
|
- v-for="(per_obj, per_index) in 11" :key="per_obj"
|
|
|
- @click="if_categ_crumb_panel_btn_num = per_index">
|
|
|
- <!-- {{per_index+1}} -->
|
|
|
- 长安区
|
|
|
+ <span
|
|
|
+ class="categ_crumb_panel_btn hand"
|
|
|
+ :class="{ categ_crumb_panel_btn_only: item.id == chooseCityId }"
|
|
|
+ v-for="item in cityList"
|
|
|
+ @click="chooseCity(item.id)"
|
|
|
+ >
|
|
|
+ {{ item.name }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 您可以选择以下详细地区 -->
|
|
|
- <div class="categ_grey_box clearfix">
|
|
|
+ <div class="categ_grey_box clearfix" v-if="secondNav.length > 0">
|
|
|
<div class="categ_grey_head">您可以选择以下详细分类:</div>
|
|
|
<div class="categ_grey_ul clearfix">
|
|
|
- <!-- <span class="categ_grey_btn hand" :class="{ categ_grey_btn_only: per_index + 1 == choice_categ_num }"
|
|
|
- v-for="(per_obj, per_index) in 3" :key="per_obj" @click="choice_categ_num = per_index + 1">
|
|
|
- {{ per_index + 1 }}粮油茶糖
|
|
|
- </span> -->
|
|
|
- <span class="categ_grey_btn hand">粮油茶糖</span>
|
|
|
- <span class="categ_grey_btn hand categ_grey_btn_only">粮油茶糖</span>
|
|
|
- <span class="categ_grey_btn hand">粮油茶糖</span>
|
|
|
+ <span
|
|
|
+ :class="['categ_grey_btn hand', { 'categ_grey_btn_only': selectedSecondId == item.category_id }]"
|
|
|
+ v-for="item in secondNav"
|
|
|
+ @click="selectSecond(item)"
|
|
|
+ >
|
|
|
+ {{ item.alias }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 您可以选择以下详细地区 -->
|
|
|
+
|
|
|
<!-- 供应信息列表 -->
|
|
|
- <!-- <div class=" clearfix" v-show="choice_categ_num == 1"> -->
|
|
|
<div class=" clearfix">
|
|
|
<div class="categ_1_index clearfix">
|
|
|
<div class="categ_head_box clearfix_2">
|
|
|
- <a class="categ_head_a" href="" title="">求购信息列表</a>
|
|
|
+ <a class="categ_head_a" href="" title="">供应信息列表</a>
|
|
|
</div>
|
|
|
<div class="categ_table clearfix">
|
|
|
<div class="categ_table_head_box">
|
|
@@ -74,132 +79,31 @@
|
|
|
<div class="categ_table_td_3">发布时间</div>
|
|
|
<div class="categ_table_td_4">地区</div>
|
|
|
</div>
|
|
|
- <div class="categ_table_li">
|
|
|
- <a class="categ_table_li_a" href="" title="">
|
|
|
+ <div class="categ_table_li" v-for="item in pageDataType2">
|
|
|
+ <NuxtLink
|
|
|
+ :to="getShopPathDetail1(item)"
|
|
|
+ class="categ_table_li_a"
|
|
|
+ :title="item.name"
|
|
|
+ >
|
|
|
<div class="categ_table_td_1">
|
|
|
- <img class="categ_table_td_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
+ <img class="categ_table_td_1_img" :src="item.imgurl" :alt="item.name">
|
|
|
</div>
|
|
|
<div class="search_table_td_2 ">
|
|
|
<div class="search_table_td_2_in clearfix">
|
|
|
<div class="search_table_td_2_head dot1">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
+ {{ item.name }}
|
|
|
</div>
|
|
|
<div class="search_table_td_2_dot2 dot2">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="categ_table_td_3">2222-22-22</div>
|
|
|
- <div class="categ_table_td_4 dot1">地区地区地区地区1111</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="categ_table_li">
|
|
|
- <a class="categ_table_li_a" href="" title="">
|
|
|
- <div class="categ_table_td_1">
|
|
|
- <img class="categ_table_td_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2 ">
|
|
|
- <div class="search_table_td_2_in clearfix">
|
|
|
- <div class="search_table_td_2_head dot1">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2_dot2 dot2">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="categ_table_td_3">2222-22-22</div>
|
|
|
- <div class="categ_table_td_4 dot1">地区地区地区地区1111</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="categ_table_li">
|
|
|
- <a class="categ_table_li_a" href="" title="">
|
|
|
- <div class="categ_table_td_1">
|
|
|
- <img class="categ_table_td_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2 ">
|
|
|
- <div class="search_table_td_2_in clearfix">
|
|
|
- <div class="search_table_td_2_head dot1">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2_dot2 dot2">供求信息/公司供求信息</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="categ_table_td_3">2222-22-22</div>
|
|
|
- <div class="categ_table_td_4 dot1">地区地区地区地区1111</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="categ_table_li">
|
|
|
- <a class="categ_table_li_a" href="" title="">
|
|
|
- <div class="categ_table_td_1">
|
|
|
- <img class="categ_table_td_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2 ">
|
|
|
- <div class="search_table_td_2_in clearfix">
|
|
|
- <div class="search_table_td_2_head dot1">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2_dot2 dot2">供求信息/公司供求信息</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="categ_table_td_3">2222-22-22</div>
|
|
|
- <div class="categ_table_td_4 dot1">地区地区地区地区1111</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="categ_table_li">
|
|
|
- <a class="categ_table_li_a" href="" title="">
|
|
|
- <div class="categ_table_td_1">
|
|
|
- <img class="categ_table_td_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2 ">
|
|
|
- <div class="search_table_td_2_in clearfix">
|
|
|
- <div class="search_table_td_2_head dot1">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2_dot2 dot2">供求信息/公司供求信息</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="categ_table_td_3">2222-22-22</div>
|
|
|
- <div class="categ_table_td_4 dot1">地区地区地区地区1111</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="categ_table_li">
|
|
|
- <a class="categ_table_li_a" href="" title="">
|
|
|
- <div class="categ_table_td_1">
|
|
|
- <img class="categ_table_td_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2 ">
|
|
|
- <div class="search_table_td_2_in clearfix">
|
|
|
- <div class="search_table_td_2_head dot1">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2_dot2 dot2">供求信息/公司供求信息</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="categ_table_td_3">2222-22-22</div>
|
|
|
- <div class="categ_table_td_4 dot1">地区地区地区地区1111</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="categ_table_li">
|
|
|
- <a class="categ_table_li_a" href="" title="">
|
|
|
- <div class="categ_table_td_1">
|
|
|
- <img class="categ_table_td_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- </div>
|
|
|
- <div class="search_table_td_2 ">
|
|
|
- <div class="search_table_td_2_in clearfix">
|
|
|
- <div class="search_table_td_2_head dot1">
|
|
|
- 供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求信息/公司供求5个小时
|
|
|
+ {{ item.description }}
|
|
|
</div>
|
|
|
- <div class="search_table_td_2_dot2 dot2">供求信息/公司供求信息</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="categ_table_td_3">2222-22-22</div>
|
|
|
- <div class="categ_table_td_4 dot1">地区地区地区地区1111</div>
|
|
|
- </a>
|
|
|
+ <div class="categ_table_td_3">{{ getTime(item.created_at, 'year', 1) }}</div>
|
|
|
+ <div class="categ_table_td_4 dot1">{{ item.city_name }}</div>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<!-- 分页器 -->
|
|
|
<div class="pagination" v-if="total">
|
|
|
<el-pagination
|
|
@@ -214,1252 +118,247 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 点击排行 -->
|
|
|
- <div class="categ_3_index clearfix">
|
|
|
- <div class="shop_name_box">
|
|
|
- <div class="shop_name"><a class="shop_name_box_a" href="" title="">点击排行</a></div>
|
|
|
- <div class="shop_name_right"></div>
|
|
|
- </div>
|
|
|
- <div class="categ_ul_img_1">
|
|
|
- <div class="categ_li_img_1" v-for="(per_obj, per_index) in 10" :key="per_obj">
|
|
|
- <a class="categ_li_img_1_a" href="" title="">
|
|
|
- <img class="categ_li_img_1_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- <div class="categ_li_img_1_dot2 dot2">
|
|
|
- 5为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- 点击排行 -->
|
|
|
- <!-- 最新商机 -->
|
|
|
- <div class="categ_5_index clearfix">
|
|
|
- <div class="shop_name_box">
|
|
|
- <div class="shop_name"><a class="shop_name_box_a" href="" title="">最新商机</a></div>
|
|
|
- <div class="shop_name_right"></div>
|
|
|
- </div>
|
|
|
- <div class="categ_ul_img_2">
|
|
|
- <div class="categ_li_img_2" v-for="(per_obj, per_index) in 10" :key="per_obj">
|
|
|
- <a class="categ_li_img_2_a" href="" title="">
|
|
|
- <img class="categ_li_img_2_img" src="@/public/img/10.png" title="" alt="">
|
|
|
- <div class="categ_li_img_2_dot2 dot2">
|
|
|
- 5为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选为你精选
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <ShopHotNews></ShopHotNews>
|
|
|
</main>
|
|
|
<!-- 页面底部 -->
|
|
|
<HomeFoot></HomeFoot>
|
|
|
</template>
|
|
|
-<script setup>
|
|
|
-import { ref, onMounted } from 'vue'
|
|
|
-import { ElRadio, ElRadioGroup, ElPagination } from 'element-plus'
|
|
|
|
|
|
+<script setup>
|
|
|
+//1.页面必备方法 start ---------------------------------------->
|
|
|
+import { ref, onMounted,watch } from 'vue'
|
|
|
+import { ElMessage,ElPagination } from 'element-plus'
|
|
|
|
|
|
//分页
|
|
|
-let total = ref(50);
|
|
|
-
|
|
|
-
|
|
|
-const radio1 = ref('1')
|
|
|
-// vue选项卡
|
|
|
-const choice_1_num = ref(1)
|
|
|
-//我要卖
|
|
|
-const alert_1_num = ref(0)
|
|
|
-// 地区选择
|
|
|
-const shop_name_num = ref(1)
|
|
|
-const shop_name_parent = ref(null)
|
|
|
-const shop_name_leng = ref(1)
|
|
|
-//您可以选择以下详细分类:
|
|
|
-const choice_categ_num = ref(1)
|
|
|
-// 您可以选择以下详细地区=btn
|
|
|
-const if_categ_crumb_panel_btn_num = ref(0)
|
|
|
-const if_categ_crumb_panel = ref(false)// 当前商品所在地下拉板
|
|
|
-const if_categ_crumb_panel_click = ref(false)// //判断是否点击在下拉板内
|
|
|
+let pageNum = ref(1);
|
|
|
+let pageSize = ref(10);
|
|
|
+let total = ref(0);
|
|
|
+
|
|
|
+let changePage = (value) => {
|
|
|
+ console.log("当前页码", value);
|
|
|
+ navigateTo(`/xiangcunshangcheng/${targetSegment}/gongying/list-${value}.html`)
|
|
|
+}
|
|
|
+//1.页面必备方法 end ---------------------------------------->
|
|
|
+
|
|
|
+//2.页面路径 start ---------------------------------------->
|
|
|
+//2.1 获得页面数据id
|
|
|
+const route = useRoute();
|
|
|
+const router = useRouter()
|
|
|
+let articleId = 0; //把路径转换为数据id
|
|
|
+const name = ref('') //当前频道名称
|
|
|
+const targetSegment = getRoutePath(2);//返回第二层的路径id
|
|
|
+//通过导航路径反向查询导航id
|
|
|
+const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
|
|
|
+ method: 'GET',
|
|
|
+ query: {
|
|
|
+ 'pinyin': targetSegment,
|
|
|
+ },
|
|
|
+});
|
|
|
+if(getRouteId.code == 200){
|
|
|
+ articleId = getRouteId.data.category_id;
|
|
|
+ name.value = getRouteId.data.alias;
|
|
|
+}else{
|
|
|
+ console.log("错误位置:获得页面路径")
|
|
|
+}
|
|
|
+//2.3 获得子栏目列表
|
|
|
+const secondNav = ref([]);
|
|
|
+const selectedSecondId = ref(route.query.catid);//当前选中了哪个子导航
|
|
|
+let getSecondNav = async () => {
|
|
|
+ const listData = await requestDataPromise('/web/getWebsiteModelCategory', {
|
|
|
+ method: 'GET',
|
|
|
+ query: {
|
|
|
+ 'placeid': 1,
|
|
|
+ 'pid': articleId,
|
|
|
+ 'num': 50,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ if (listData.code == 200) {
|
|
|
+ secondNav.value = listData.data
|
|
|
+ } else {
|
|
|
+ console.log("错误位置:获得子级栏目列表")
|
|
|
+ }
|
|
|
+}
|
|
|
+getSecondNav();
|
|
|
+
|
|
|
+//2.4 获得cityid
|
|
|
+const cityId = ref(route.query.cityid)
|
|
|
+//2.页面路径 end ---------------------------------------->
|
|
|
+
|
|
|
+//3.选择商品所在地 start ---------------------------------------->
|
|
|
+//3.1 弹出下拉框
|
|
|
+const if_categ_crumb_panel = ref(false)//当前商品所在地下拉板
|
|
|
+const if_categ_crumb_panel_click = ref(false)//判断是否点击在下拉板内
|
|
|
const btn_if_categ_crumb_panel_fun = () => {//点击下拉btn
|
|
|
if_categ_crumb_panel.value = !if_categ_crumb_panel.value
|
|
|
}
|
|
|
-const categ_crumb_panel_btn_blur_fun = () => {// btn失去焦点事件
|
|
|
- setTimeout(() => {//的延迟器
|
|
|
- if (if_categ_crumb_panel_click.value == true) {//判断鼠标是否点击下拉panel
|
|
|
+const categ_crumb_panel_btn_blur_fun = () => {//btn失去焦点事件
|
|
|
+ setTimeout(() => {
|
|
|
+ if (if_categ_crumb_panel_click.value == true) {
|
|
|
//点击在下拉panel内
|
|
|
- } else {//没点击在下拉panel内
|
|
|
+ } else {
|
|
|
+ //没点击在下拉panel内
|
|
|
if_categ_crumb_panel.value = false
|
|
|
}
|
|
|
- }, 666);
|
|
|
+ }, 100);
|
|
|
}
|
|
|
-const categ_crumb_panel_focus_fun = () => {//点击下拉panel
|
|
|
+//3.2 点击下拉panel
|
|
|
+const categ_crumb_panel_focus_fun = () => {
|
|
|
if_categ_crumb_panel_click.value = true
|
|
|
if_categ_crumb_panel.value = true
|
|
|
}
|
|
|
-const categ_crumb_panel_blur_fun = () => {// 下拉panel失去焦点事件
|
|
|
+//3.3 下拉panel失去焦点事件
|
|
|
+const categ_crumb_panel_blur_fun = () => {
|
|
|
if_categ_crumb_panel_click.value = false
|
|
|
if_categ_crumb_panel.value = false
|
|
|
}
|
|
|
|
|
|
-</script>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-<style lang="less" scoped>
|
|
|
-@charset "utf-8";
|
|
|
-
|
|
|
-* {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- font-family: "微软雅黑", "microsoft yahei";
|
|
|
-}
|
|
|
-
|
|
|
-ul,
|
|
|
-ol {
|
|
|
- list-style: none;
|
|
|
-}
|
|
|
-
|
|
|
-a:active {
|
|
|
- text-decoration: none;
|
|
|
-}
|
|
|
-
|
|
|
-a:hover {
|
|
|
- text-decoration: none;
|
|
|
-}
|
|
|
-
|
|
|
-a:visited {
|
|
|
- text-decoration: none;
|
|
|
-}
|
|
|
-
|
|
|
-a:link {
|
|
|
- text-decoration: none;
|
|
|
-}
|
|
|
-
|
|
|
-a:focus {
|
|
|
- text-decoration: none;
|
|
|
-}
|
|
|
-
|
|
|
-body {
|
|
|
- position: relative;
|
|
|
-}
|
|
|
-
|
|
|
-.clearfix {
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
-.clearfix_2::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- height: 0;
|
|
|
- visibility: hidden;
|
|
|
- clear: both;
|
|
|
-}
|
|
|
-
|
|
|
-.hiddenColor {
|
|
|
- visibility: hidden;
|
|
|
-}
|
|
|
-
|
|
|
-.hand {
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-
|
|
|
-.aTag_parent {
|
|
|
- position: relative;
|
|
|
-}
|
|
|
-
|
|
|
-.aTag_parent>a,
|
|
|
-.aTag {
|
|
|
- display: block;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- position: absolute;
|
|
|
- z-index: 99;
|
|
|
- border: 0px;
|
|
|
- top: 0px;
|
|
|
- left: 0px;
|
|
|
- background: rgba(0, 0, 0, 0);
|
|
|
-}
|
|
|
-
|
|
|
-.dot1 {
|
|
|
- display: block;
|
|
|
- word-break: keep-all;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
-}
|
|
|
-
|
|
|
-.dot2 {
|
|
|
- overflow: hidden;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
-}
|
|
|
-
|
|
|
-.dot3 {
|
|
|
- overflow: hidden;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- -webkit-line-clamp: 3;
|
|
|
-}
|
|
|
-
|
|
|
-input,
|
|
|
-img {
|
|
|
- border: none;
|
|
|
-}
|
|
|
-
|
|
|
-.cover100 img {
|
|
|
- display: block;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- object-fit: cover;
|
|
|
-}
|
|
|
-
|
|
|
-.back100 {
|
|
|
- background-size: 100% 100%;
|
|
|
- background-repeat: no-repeat;
|
|
|
-}
|
|
|
-
|
|
|
-article,
|
|
|
-aside,
|
|
|
-footer,
|
|
|
-header,
|
|
|
-time,
|
|
|
-video,
|
|
|
-main,
|
|
|
-nav,
|
|
|
-h4,
|
|
|
-h3,
|
|
|
-section {
|
|
|
- display: block;
|
|
|
-}
|
|
|
-
|
|
|
-.index_main {
|
|
|
- margin: 0 auto 30px;
|
|
|
-}
|
|
|
-
|
|
|
-.slow_6 {
|
|
|
- -webkit-transition: all .6s;
|
|
|
- -moz-transition: all .6s;
|
|
|
- -ms-transition: all .6s;
|
|
|
- -o-transition: all .6s;
|
|
|
- transition: all .6s;
|
|
|
-}
|
|
|
-
|
|
|
-.index_main {
|
|
|
- width: 1200px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_head {
|
|
|
- margin: 30px auto 0px;
|
|
|
-
|
|
|
- .shop_head_left {
|
|
|
- float: left;
|
|
|
- width: 322px;
|
|
|
- margin-right: 33px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_left_a {
|
|
|
- width: 322px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_img {
|
|
|
- width: 322px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_form_out {
|
|
|
- width: 550px;
|
|
|
- float: left;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_form {
|
|
|
- margin-top: 37px;
|
|
|
- display: block;
|
|
|
- width: 547px;
|
|
|
- border: solid 1px #A01C0E;
|
|
|
- height: 40px;
|
|
|
- box-sizing: border-box;
|
|
|
- overflow: hidden;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_btn {
|
|
|
- float: right;
|
|
|
- width: 52px;
|
|
|
- height: 100%;
|
|
|
- border: solid 1px #fff;
|
|
|
- box-sizing: border-box;
|
|
|
- background: url(@/public/img/3.png) no-repeat center center #A01C0E;
|
|
|
- background-size: 22px 22px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_inp {
|
|
|
- display: block;
|
|
|
- text-indent: 11px;
|
|
|
- height: 40px;
|
|
|
- line-height: 40px;
|
|
|
- width: 490px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_form_foot {
|
|
|
- width: 550px;
|
|
|
- margin-top: 10px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_form_foot_a {
|
|
|
- float: left;
|
|
|
- height: 18px;
|
|
|
- line-height: 18px;
|
|
|
- color: #999;
|
|
|
- font-size: 14px;
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_form_foot_a:nth-of-type(1) {
|
|
|
- color: #A01C0E;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_form_foot_a:hover {
|
|
|
- color: #A01C0E;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right {
|
|
|
- float: right;
|
|
|
- margin-top: 37px;
|
|
|
- position: relative;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn {
|
|
|
- float: right;
|
|
|
- width: 120px;
|
|
|
- height: 40px;
|
|
|
- line-height: 40px;
|
|
|
- color: #666;
|
|
|
- font-size: 14px;
|
|
|
- margin-left: 10px;
|
|
|
- text-indent: 52px;
|
|
|
- border: 1px solid #E9E9E9;
|
|
|
- background: no-repeat 20px center #F4F4F4;
|
|
|
- background-size: 24px 24px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn:nth-of-type(1) {
|
|
|
- background-image: url(@/public/img/4.png);
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn:nth-of-type(2) {
|
|
|
- background-image: url(@/public/img/5.png);
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn:hover {
|
|
|
- color: #fff;
|
|
|
- background: no-repeat 20px center #A01C0E;
|
|
|
- background-size: 24px 24px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn:nth-of-type(1):hover {
|
|
|
- background-image: url(@/public/img/4a.png);
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn:nth-of-type(2):hover {
|
|
|
- background-image: url(@/public/img/5a.png);
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn_1_only {
|
|
|
- color: #fff;
|
|
|
- background: no-repeat 20px center #A01C0E;
|
|
|
- background-size: 24px 24px;
|
|
|
- background-image: url(@/public/img/4a.png) !important;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn_2_only {
|
|
|
- color: #fff;
|
|
|
- background: no-repeat 20px center #A01C0E;
|
|
|
- background-size: 24px 24px;
|
|
|
- background-image: url(@/public/img/5a.png) !important;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_btn:hover .shop_head_right_out {
|
|
|
- display: block;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_head_right_box {
|
|
|
- background: #fff;
|
|
|
- height: 1111px;
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_out {
|
|
|
- position: absolute;
|
|
|
- width: 1036px;
|
|
|
- right: 0px;
|
|
|
- top: 99%;
|
|
|
- z-index: 111;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_box {
|
|
|
- background: #fff;
|
|
|
- box-sizing: border-box;
|
|
|
- padding: 0px 20px;
|
|
|
- border: solid 1px #A01C0E;
|
|
|
- width: 100%;
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_head_box {}
|
|
|
-
|
|
|
- .shop_alert_head_name_1 {
|
|
|
- float: left;
|
|
|
- font-weight: bold;
|
|
|
- color: #A01C0E;
|
|
|
- font-size: 20px;
|
|
|
- margin-top: 30px;
|
|
|
- letter-spacing: 1px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_head_name_2 {
|
|
|
- float: left;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- margin: 35px 0px 0px 10px;
|
|
|
- position: relative;
|
|
|
- padding-left: 22px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_head_name_2::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- width: 14px;
|
|
|
- height: 10px;
|
|
|
- position: absolute;
|
|
|
- left: 0px;
|
|
|
- bottom: 3px;
|
|
|
- background: url(@/public/img/16.png) no-repeat left 0px;
|
|
|
- background-size: 100% 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_head_btn_a {
|
|
|
- float: right;
|
|
|
- height: 40px;
|
|
|
- line-height: 40px;
|
|
|
- color: #fff;
|
|
|
- font-size: 14px;
|
|
|
- padding: 0px 20px 0px 36px;
|
|
|
- margin-top: 23px;
|
|
|
- background: url(@/public/img/14.png) no-repeat 18px center #A01C0E;
|
|
|
- background-size: 14px auto;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_ul {
|
|
|
- margin: 28px auto 0px;
|
|
|
- width: 980px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_li {
|
|
|
- margin-bottom: 11px;
|
|
|
- display: flex;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_li_label {
|
|
|
- width: 150px;
|
|
|
- line-height: 21px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- padding-right: 24px;
|
|
|
- font-weight: bold;
|
|
|
- position: relative;
|
|
|
- box-sizing: border-box;
|
|
|
- margin-right: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_li_label::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- position: absolute;
|
|
|
- right: 0px;
|
|
|
- top: 0px;
|
|
|
- width: 22px;
|
|
|
- height: 22px;
|
|
|
- background: url(@/public/img/15.png) no-repeat right 0px;
|
|
|
- background-size: 100% 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_li_panel {}
|
|
|
-
|
|
|
- .shop_alert_li_panel_a {
|
|
|
- float: left;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #666;
|
|
|
- font-size: 16px;
|
|
|
- margin: 0px 25px 10px 0px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_li_panel_a:hover {
|
|
|
- color: #A01C0E;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_1_index {
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_ul {
|
|
|
- margin-top: 30px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li {
|
|
|
- float: left;
|
|
|
- width: 314px;
|
|
|
- margin: 0px 26px 30px 0px;
|
|
|
- box-sizing: border-box;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li_a {
|
|
|
- display: block;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li_img {
|
|
|
- width: 130px;
|
|
|
- height: 130px;
|
|
|
- margin-right: 10px;
|
|
|
- float: left;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li_right {
|
|
|
- width: 173px;
|
|
|
- float: right;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li_h4 {
|
|
|
- height: 18px;
|
|
|
- line-height: 18px;
|
|
|
- color: #333;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- margin-top: 7px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li_dot3 {
|
|
|
- height: 48px;
|
|
|
- line-height: 16px;
|
|
|
- color: #666;
|
|
|
- font-size: 12px;
|
|
|
- margin-top: 13px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li_time {
|
|
|
- float: left;
|
|
|
- height: 26px;
|
|
|
- line-height: 26px;
|
|
|
- color: rgba(51, 51, 51, 0.4);
|
|
|
- font-size: 12px;
|
|
|
- margin-top: 18px;
|
|
|
- background: #f7f7f7;
|
|
|
- padding: 0px 4px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li:nth-of-type(3n) {
|
|
|
- margin-right: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_alert_img_li_a:hover * {
|
|
|
- color: #A01C0E;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.shop_banner {
|
|
|
- width: 1200px;
|
|
|
- overflow: hidden;
|
|
|
- margin: 20px auto 0px;
|
|
|
-
|
|
|
- .shop_banner_a {
|
|
|
- display: block;
|
|
|
- width: 1200px;
|
|
|
- height: 90px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_banner_img {
|
|
|
- display: block;
|
|
|
- width: 1200px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.shop_nav {
|
|
|
- border: solid 1px #E9E9E9;
|
|
|
- background: #fafafa;
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_nav_head {
|
|
|
- float: left;
|
|
|
- height: 28px;
|
|
|
- width: 138px;
|
|
|
- margin: 30px 52px 0px 25px;
|
|
|
-
|
|
|
- .shop_nav_head_a {
|
|
|
- display: block;
|
|
|
- height: 28px;
|
|
|
- width: 138px;
|
|
|
- background: url(@/public/img/7.png) no-repeat left top;
|
|
|
- background-size: 100% 100%;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.shop_nav_in {
|
|
|
- float: left;
|
|
|
-
|
|
|
- .shop_nav_in_a {
|
|
|
- float: left;
|
|
|
- height: 75px;
|
|
|
- line-height: 75px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- background: #f8f5f5;
|
|
|
- width: 118px;
|
|
|
- border-bottom: solid 5px #A01C0E;
|
|
|
- font-weight: bold;
|
|
|
- margin: 5px 0;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_nav_in_a:nth-of-type(4) {
|
|
|
- margin-right: 8px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_nav_in_a:hover {
|
|
|
- color: #A01C0E;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name_in {
|
|
|
- float: left;
|
|
|
- height: 40px;
|
|
|
- width: 1046px;
|
|
|
- float: left;
|
|
|
- box-sizing: border-box;
|
|
|
-
|
|
|
- .shop_name_a {
|
|
|
- float: left;
|
|
|
- height: 27px;
|
|
|
- line-height: 27px;
|
|
|
- color: #222;
|
|
|
- font-size: 20px;
|
|
|
- position: relative;
|
|
|
- margin: 7px 14.5px 0;
|
|
|
- padding: 0px 10px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_name_a::after {
|
|
|
- content: '/';
|
|
|
- display: block;
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- right: -18px;
|
|
|
- height: 100%;
|
|
|
- line-height: 27px;
|
|
|
- color: #E9E9E9;
|
|
|
- font-size: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_name_a:nth-last-of-type(1)::after {
|
|
|
- content: '';
|
|
|
- display: none;
|
|
|
- }
|
|
|
-
|
|
|
- .shop_name_a_only {
|
|
|
- background: #A01C0E;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name_out {
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name_box {
|
|
|
- border-top: solid 1px #fff;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name_box_a {
|
|
|
- height: 44px;
|
|
|
- line-height: 44px;
|
|
|
- color: #fff;
|
|
|
- font-weight: bold;
|
|
|
- font-size: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name {
|
|
|
- float: left;
|
|
|
- height: 44px;
|
|
|
- line-height: 44px;
|
|
|
- color: #fff;
|
|
|
- font-weight: bold;
|
|
|
- position: relative;
|
|
|
- z-index: 11;
|
|
|
- text-align: center;
|
|
|
- font-size: 20px;
|
|
|
- background: #A01C0E;
|
|
|
- padding: 0px 14px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name_right {
|
|
|
- height: 40px;
|
|
|
- border-bottom: 1px solid #E8E9EC;
|
|
|
- margin-top: 4px;
|
|
|
- background: #F8F8F8;
|
|
|
- position: relative;
|
|
|
- z-index: 2;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name_right::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- right: 0px;
|
|
|
- height: 100%;
|
|
|
- width: 16px;
|
|
|
- background: url(@/public/img/9.png) no-repeat 0px bottom #fff;
|
|
|
- background-size: 100% auto;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_name_btn {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- float: right;
|
|
|
- margin: 10px 22px 0px 0px;
|
|
|
- background: url(@/public/img/8.png) no-repeat center center;
|
|
|
- border-radius: 50%;
|
|
|
- background-size: 100% 100%;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_2_left {
|
|
|
- float: left;
|
|
|
- width: 900px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_3_right {
|
|
|
- float: right;
|
|
|
- width: 280px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_1_box {
|
|
|
- margin: 30px auto 0px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_2_box {
|
|
|
- margin: 30px auto 0px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_3_box {
|
|
|
- margin: 0px auto 0px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_4_box {
|
|
|
- margin: 4px auto 0px;
|
|
|
-}
|
|
|
-
|
|
|
-.shop_5_box {
|
|
|
- margin: 4px auto 0px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_crumb_box {
|
|
|
- margin-top: 20px;
|
|
|
- border-bottom: solid 1px #D9D9D9;
|
|
|
- padding-bottom: 20px;
|
|
|
- position: relative;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_crumb_left {
|
|
|
- float: left;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #999;
|
|
|
- font-size: 16px;
|
|
|
-
|
|
|
- .categ_crumb_left_a {
|
|
|
- display: inline-block;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #999;
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_crumb_left_text {
|
|
|
- display: inline-block;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.categ_crumb_right {
|
|
|
- float: right;
|
|
|
-
|
|
|
- .categ_crumb_right_text {
|
|
|
- float: left;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_crumb_right_btn {
|
|
|
- float: left;
|
|
|
- width: 14px;
|
|
|
- height: 14px;
|
|
|
- background-image: url(@/public/img/17.png);
|
|
|
- margin: 5px 0px 0px 5px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.categ_crumb_panel {
|
|
|
- position: absolute;
|
|
|
- border: solid 1px #A01C0E;
|
|
|
- padding: 0px 30px 10px;
|
|
|
- background: #fff;
|
|
|
- right: 0px;
|
|
|
- top: 0px;
|
|
|
- box-sizing: border-box;
|
|
|
- width: 658px;
|
|
|
- top: 100%;
|
|
|
-
|
|
|
- .categ_crumb_panel_h4 {
|
|
|
- display: inline-block;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- padding-right: 31px;
|
|
|
- margin-top: 20px;
|
|
|
- background: url(@/public/img/15.png) no-repeat right center;
|
|
|
- background-size: 21px 21px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_crumb_panel_btn_box {
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_crumb_panel_btn {
|
|
|
- float: left;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #666;
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- margin: 0px 26.5px 11px 0px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_crumb_panel_btn:hover {
|
|
|
- color: #A01C0E;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_crumb_panel_btn_only {
|
|
|
- color: #A01C0E;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.categ_grey_box {
|
|
|
- box-sizing: border-box;
|
|
|
- border: solid 1px #E9E9E9;
|
|
|
- background: #F8F8F8;
|
|
|
- padding: 0px 20px 8px;
|
|
|
- width: 100%;
|
|
|
- margin-top: 15px;
|
|
|
-
|
|
|
- .categ_grey_head {
|
|
|
- height: 48px;
|
|
|
- line-height: 50px;
|
|
|
- color: #000;
|
|
|
- font-size: 18px;
|
|
|
- border-bottom: dashed 1px #E9E9E9;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_grey_ul {
|
|
|
- margin: 10px 0px 0px -10px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_grey_btn {
|
|
|
- float: left;
|
|
|
- line-height: 29px;
|
|
|
- height: 29px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- margin: 0px 10px 7px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_grey_btn_only {
|
|
|
- background: #A01C0E;
|
|
|
- color: #fff;
|
|
|
- padding: 0px 5px 0px;
|
|
|
- margin: 0px 5px 7px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.categ_head_box {
|
|
|
- border-bottom: solid 1px #E9E9E9;
|
|
|
- padding-bottom: 22px;
|
|
|
- margin-top: 20px;
|
|
|
- border-top: solid 1px rgba(0, 0, 0, 0);
|
|
|
-
|
|
|
- .categ_head_a {
|
|
|
- float: left;
|
|
|
- text-indent: 15px;
|
|
|
- font-size: 20px;
|
|
|
- color: #333;
|
|
|
- border-left: solid 3px #A01C0E;
|
|
|
- height: 18px;
|
|
|
- line-height: 18px;
|
|
|
- }
|
|
|
-
|
|
|
- .categ_head_a_more {
|
|
|
- float: right;
|
|
|
- color: #999;
|
|
|
- font-size: 14px;
|
|
|
- margin-top: 0px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table {}
|
|
|
-
|
|
|
-.categ_table_head_box {
|
|
|
- height: 61px;
|
|
|
- border-bottom: solid 1px #E9E9E9;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_head_box>.categ_table_td_1 {
|
|
|
- line-height: 61px;
|
|
|
- line-height: 61px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_head_box>.categ_table_td_2 {
|
|
|
- line-height: 61px;
|
|
|
- line-height: 61px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_head_box>.categ_table_td_3 {
|
|
|
- line-height: 61px;
|
|
|
- line-height: 61px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_head_box>.categ_table_td_4 {
|
|
|
- line-height: 61px;
|
|
|
- line-height: 61px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_td_1 {
|
|
|
- float: left;
|
|
|
- height: 100%;
|
|
|
- text-align: center;
|
|
|
- color: #666;
|
|
|
- font-size: 16px;
|
|
|
- width: 155px;
|
|
|
- margin-right: 126px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_td_2 {
|
|
|
- float: left;
|
|
|
- height: 100%;
|
|
|
- text-align: center;
|
|
|
- color: #666;
|
|
|
- font-size: 16px;
|
|
|
- width: 480px;
|
|
|
- margin-right: 124px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_td_3 {
|
|
|
- float: left;
|
|
|
- height: 100%;
|
|
|
- text-align: center;
|
|
|
- color: #666;
|
|
|
- font-size: 16px;
|
|
|
- width: 120px;
|
|
|
- margin-right: 62px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_td_4 {
|
|
|
- float: left;
|
|
|
- height: 100%;
|
|
|
- text-align: center;
|
|
|
- color: #666;
|
|
|
- font-size: 16px;
|
|
|
- width: 133px;
|
|
|
-}
|
|
|
-
|
|
|
-/* .categ_table_head_box>div:nth-of-type(even){background:aqua;} */
|
|
|
-.categ_table_li {
|
|
|
- height: 161px;
|
|
|
- box-sizing: border-box;
|
|
|
- padding: 15px 0px;
|
|
|
- border-bottom: solid 1px #E9E9E9;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_td_1_img {
|
|
|
- display: block;
|
|
|
- width: 130px;
|
|
|
- height: 130px;
|
|
|
- margin: 0px auto;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_li .categ_table_td_1 {
|
|
|
- line-height: 160px;
|
|
|
- line-height: 160px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_li .categ_table_td_2 {
|
|
|
- line-height: 160px;
|
|
|
- line-height: 160px;
|
|
|
- font-weight: bold;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_li .categ_table_td_3 {
|
|
|
- line-height: 160px;
|
|
|
- line-height: 160px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_table_li .categ_table_td_4 {
|
|
|
- line-height: 160px;
|
|
|
- line-height: 160px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_3_index {
|
|
|
- margin-top: 28px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_ul_img_1 {
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1 {
|
|
|
- float: left;
|
|
|
- margin: 0px 24px 20px 0px;
|
|
|
- width: 180px;
|
|
|
- position: relative;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1_a {}
|
|
|
-
|
|
|
-.categ_li_img_1_img {
|
|
|
- display: block;
|
|
|
- width: 180px;
|
|
|
- height: 180px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1_dot2 {
|
|
|
- width: 168px;
|
|
|
- margin: 10px auto 0px;
|
|
|
- height: 32px;
|
|
|
- line-height: 16px;
|
|
|
- color: #333;
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1:nth-of-type(6n) {
|
|
|
- margin-right: 0px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1_hover_dot1 {
|
|
|
- width: 152px;
|
|
|
- position: absolute;
|
|
|
- left: 50%;
|
|
|
- margin-left: -76px;
|
|
|
- bottom: 13px;
|
|
|
- font-size: 14px;
|
|
|
- background: linear-gradient(to right, #FFE1AA, #F9F4E3, #FFE1AA);
|
|
|
- -webkit-background-clip: text;
|
|
|
- color: transparent;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1:hover .categ_li_img_1_dot2 {
|
|
|
- color: #A01C0E;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1:nth-of-type(1) .categ_li_img_1_dot2::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- position: absolute;
|
|
|
- background: url(@/public/img/18.png) no-repeat left 0px;
|
|
|
- background-size: 100% 100%;
|
|
|
- width: 32px;
|
|
|
- height: 32px;
|
|
|
- left: 10px;
|
|
|
- top: 0px;
|
|
|
- z-index: 11;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1:nth-of-type(2) .categ_li_img_1_dot2::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- position: absolute;
|
|
|
- background: url(@/public/img/19.png) no-repeat left 0px;
|
|
|
- background-size: 100% 100%;
|
|
|
- width: 32px;
|
|
|
- height: 32px;
|
|
|
- left: 10px;
|
|
|
- top: 0px;
|
|
|
- z-index: 11;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_1:nth-of-type(3) .categ_li_img_1_dot2::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- position: absolute;
|
|
|
- background: url(@/public/img/20.png) no-repeat left 0px;
|
|
|
- background-size: 100% 100%;
|
|
|
- width: 32px;
|
|
|
- height: 32px;
|
|
|
- left: 10px;
|
|
|
- top: 0px;
|
|
|
- z-index: 11;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_ul_img_2 {
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_2 {
|
|
|
- float: left;
|
|
|
- margin: 0px 24px 20px 0px;
|
|
|
- width: 180px;
|
|
|
- position: relative;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_2_a {}
|
|
|
-
|
|
|
-.categ_li_img_2_img {
|
|
|
- display: block;
|
|
|
- width: 180px;
|
|
|
- height: 180px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_2_dot2 {
|
|
|
- width: 168px;
|
|
|
- margin: 10px auto 0px;
|
|
|
- height: 32px;
|
|
|
- line-height: 16px;
|
|
|
- color: #333;
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_2:nth-of-type(6n) {
|
|
|
- margin-right: 0px;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_2_hover_dot1 {
|
|
|
- width: 152px;
|
|
|
- position: absolute;
|
|
|
- left: 50%;
|
|
|
- margin-left: -76px;
|
|
|
- bottom: 13px;
|
|
|
- font-size: 14px;
|
|
|
- background: linear-gradient(to right, #FFE1AA, #F9F4E3, #FFE1AA);
|
|
|
- -webkit-background-clip: text;
|
|
|
- color: transparent;
|
|
|
-}
|
|
|
-
|
|
|
-.categ_li_img_2:hover .categ_li_img_2_dot2 {
|
|
|
- color: #A01C0E;
|
|
|
-}
|
|
|
-
|
|
|
-/*乡村网-商城-搜索-查看更多*/
|
|
|
-.search_head_text_box {
|
|
|
- height: 18px;
|
|
|
- line-height: 18px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- float: left;
|
|
|
- margin-left: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.search_head_text_red {
|
|
|
- color: #A01C0E;
|
|
|
-}
|
|
|
-
|
|
|
-.search_table_td_2 {
|
|
|
- float: left;
|
|
|
- height: 100%;
|
|
|
- width: 480px;
|
|
|
- margin-right: 124px;
|
|
|
-
|
|
|
- .search_table_td_2_head {
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- width: 480px;
|
|
|
- }
|
|
|
-
|
|
|
- .search_table_td_2_dot2 {
|
|
|
- max-height: 36px;
|
|
|
- line-height: 18px;
|
|
|
- color: #999;
|
|
|
- font-size: 14px;
|
|
|
- margin-top: 5px;
|
|
|
- width: 480px;
|
|
|
- }
|
|
|
-
|
|
|
- .search_table_td_2_in {
|
|
|
- height: 129px;
|
|
|
- width: 480px;
|
|
|
- display: table-cell;
|
|
|
- vertical-align: middle;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@media screen and (min-width:1200px) {
|
|
|
- /*pc_1440*/
|
|
|
- @media screen and (max-width:1440px) {
|
|
|
- /*1200*/
|
|
|
- }
|
|
|
-
|
|
|
- .pc_none {
|
|
|
- display: none;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@media screen and (max-width:599px) {}
|
|
|
-
|
|
|
-@media screen and (max-width:320px) {}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-.pagination {
|
|
|
- margin: 40px auto 30px auto;
|
|
|
- height: 34px;
|
|
|
- margin-left: 141px;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
-
|
|
|
- // 鼠标移入后字体颜色
|
|
|
- .el-pagination::v-deep :hover {
|
|
|
- color: #a01c0e;
|
|
|
- }
|
|
|
-
|
|
|
- .el-pagination.is-background::v-deep .btn-next,
|
|
|
- .el-pagination.is-background::v-deep .btn-prev {
|
|
|
- width: 70px;
|
|
|
- height: 34px;
|
|
|
- margin: 0px 10px;
|
|
|
- border-radius: 4px;
|
|
|
- }
|
|
|
-
|
|
|
- .el-pagination.is-background::v-deep .el-pager li {
|
|
|
- margin: 0px 10px;
|
|
|
- width: 38px;
|
|
|
- height: 34px;
|
|
|
- border-radius: 4px;
|
|
|
- }
|
|
|
-
|
|
|
- .el-pagination.is-background::v-deep .btn-next.is-active,
|
|
|
- .el-pagination.is-background::v-deep .btn-prev.is-active,
|
|
|
- .el-pagination.is-background::v-deep .el-pager li.is-active {
|
|
|
- background-color: #a01c0e;
|
|
|
- color: #fff;
|
|
|
+//3.4 获得详细地址列表
|
|
|
+const cityName = ref('')
|
|
|
+const cityList = ref([])
|
|
|
+const chooseCityId = ref('')
|
|
|
+let getCityList = async (id) => {
|
|
|
+ const shengData = await requestDataPromise('/web/selectWebsiteArea', {
|
|
|
+ method: 'GET',
|
|
|
+ query: {
|
|
|
+ 'pid': id,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ if(shengData.code==200){
|
|
|
+ cityList.value = shengData.data;
|
|
|
+ cityName.value = shengData.data[0].pid_name;
|
|
|
+ }else{
|
|
|
+ ElMessage.error(shengData.message)
|
|
|
+ }
|
|
|
+}
|
|
|
+//3.5 初始化的时候先获取一下城市列表
|
|
|
+if(cityId.value != undefined){
|
|
|
+ getCityList(cityId.value);
|
|
|
+}
|
|
|
+//3.6 选择城市
|
|
|
+const chooseCity = (id) => {
|
|
|
+ chooseCityId.value = id;
|
|
|
+ router.replace({
|
|
|
+ query: {
|
|
|
+ ...route.query,
|
|
|
+ select: id
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+//3.选择商品所在地 end ---------------------------------------->
|
|
|
+
|
|
|
+//4.搜索 start ---------------------------------------->
|
|
|
+//4.1 选择一个子导航
|
|
|
+const selectSecond = (item) => {
|
|
|
+ //高亮显示当前选中的子导航
|
|
|
+ selectedSecondId.value = item.category_id
|
|
|
+ router.replace({
|
|
|
+ query: { ...route.query, catid: item.category_id }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+//4.2 页面展示的数据
|
|
|
+//const pageDataType1 = ref([]);//供应数据
|
|
|
+const pageDataType2 = ref([]);//求购数据 此页面不需要求购数据
|
|
|
+
|
|
|
+//4.3 发起搜索
|
|
|
+const pageSearch = async () => {
|
|
|
+ let params = {
|
|
|
+ catid:"",//栏目id
|
|
|
+ city_id:"",//城市id
|
|
|
+ keyword:"",//搜索关键词 - 该页不需要
|
|
|
+ page:1,
|
|
|
+ pageSize:10,
|
|
|
+ type_id:2//1:供应 2:求购
|
|
|
+ }
|
|
|
+
|
|
|
+ if(selectedSecondId.value == undefined){
|
|
|
+ params.catid = articleId
|
|
|
+ }else{
|
|
|
+ params.catid = parseFloat(selectedSecondId.value)
|
|
|
+ }
|
|
|
+
|
|
|
+ let routeCiteId = route.query.select;
|
|
|
+
|
|
|
+ if(routeCiteId != undefined && routeCiteId != ''){
|
|
|
+ params.city_id = parseFloat(routeCiteId)
|
|
|
+ }else{
|
|
|
+ if(cityId.value == undefined || cityId.value == '' || cityId.value == 'NaN'){
|
|
|
+ //删除变量params中的city_id参数
|
|
|
+ delete params.city_id
|
|
|
+ }else{
|
|
|
+ params.city_id = parseFloat(cityId.value)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+ const pageData = await requestDataPromise('/web/getWebsiteshopList', {
|
|
|
+ method: 'GET',
|
|
|
+ query: params,
|
|
|
+ });
|
|
|
+
|
|
|
+ if (pageData.code == 200) {
|
|
|
+ //pageDataType1.value = pageData.data.type1;
|
|
|
+ pageDataType2.value = pageData.data.type2;
|
|
|
+ total.value = pageData.data.type2_count;
|
|
|
+ } else {
|
|
|
+ console.log("错误位置:获得该页面数据失败!")
|
|
|
+ }
|
|
|
+ //开始请求数据
|
|
|
+ console.log(params)
|
|
|
+ console.log(pageData)
|
|
|
+}
|
|
|
+//页面初始化的时候调用一下搜索
|
|
|
+pageSearch();
|
|
|
+
|
|
|
+//4.4 每次路由一变化就重新请求数据
|
|
|
+//4.4.1 监听cityid
|
|
|
+watch(() => route.query.cityid, (newVal, oldVal) => {
|
|
|
+ if(newVal != undefined){
|
|
|
+ cityId.value = parseFloat(newVal)
|
|
|
+ getCityList(newVal)
|
|
|
+ }else{
|
|
|
+ cityList.value = []
|
|
|
+ }
|
|
|
+ pageSearch()
|
|
|
+})
|
|
|
+//4.4.2 监听catid
|
|
|
+watch(() => route.query.catid, (newVal, oldVal) => {
|
|
|
+ pageSearch()
|
|
|
+})
|
|
|
+//4.4.3 监听select
|
|
|
+//如果路由中存在select参数就忽略cityid
|
|
|
+watch(() => route.query.select, (newVal, oldVal) => {
|
|
|
+ if(newVal != undefined){
|
|
|
+ pageSearch()
|
|
|
+ }else{
|
|
|
+ chooseCityId.value = '';
|
|
|
+ pageSearch()
|
|
|
+ }
|
|
|
+})
|
|
|
+//4.搜索 end ---------------------------------------->
|
|
|
+
|
|
|
+
|
|
|
+//5.广告 start ---------------------------------------->
|
|
|
+//获得所有广告
|
|
|
+let adImg1 = ref({})
|
|
|
+onMounted(async () => {
|
|
|
+ const { $webUrl, $CwebUrl } = useNuxtApp();
|
|
|
+ //从客户端启动广告
|
|
|
+ //广告1
|
|
|
+ let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_shoplist_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];
|
|
|
+})
|
|
|
+//5.广告 end ---------------------------------------->
|
|
|
+</script>
|
|
|
|
|
|
-}
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
|
+@import '@/assets/css/shop/list.less';
|
|
|
</style>
|