Jing 2 săptămâni în urmă
părinte
comite
5be9edb737

+ 2 - 0
assets/css/shop/index.less

@@ -536,6 +536,7 @@ section {
     line-height: 16px;
     color: #333;
     font-size: 14px;
+    text-align: center;
 }
 
 .shop_li_img_3:nth-of-type(6n) {
@@ -563,6 +564,7 @@ section {
     background: linear-gradient(to right, #FFE1AA, #F9F4E3, #FFE1AA);
     -webkit-background-clip: text;
     color: transparent;
+    text-align: center;
 }
 
 .shop_li_img_3:hover .shop_li_img_3_hover {

+ 2 - 0
components/shop/HotNews.vue

@@ -145,6 +145,7 @@ getPageAllData();
     line-height: 16px;
     color: #333;
     font-size: 14px;
+    text-align: center;
 }
 
 .categ_li_img_1:nth-of-type(6n) {
@@ -236,6 +237,7 @@ getPageAllData();
     line-height: 16px;
     color: #333;
     font-size: 14px;
+    text-align: center;
 }
 
 .categ_li_img_2:nth-of-type(6n) {

+ 34 - 45
components/shop/pageHead.vue

@@ -57,18 +57,12 @@
                 </form>
             </div>
             <div class="shop_head_right clearfix_2">
-                <div 
-                    :class="['shop_head_right_btn', alert_1_num == 2 ? 'shop_head_right_btn_active' : '']"
-                    @mouseenter="qhTabs(2)"
-                    @mouseleave="qhTabs(0)"
-                >
+                <div :class="['shop_head_right_btn', alert_1_num == 2 ? 'shop_head_right_btn_active' : '']"
+                    @mouseenter="qhTabs(2)" @mouseleave="qhTabs(0)">
                     我要卖
                 </div>
-                <div 
-                    :class="['shop_head_right_btn', alert_1_num == 1 ? 'shop_head_right_btn_active' : '']"
-                    @mouseenter="qhTabs(1)"
-                    @mouseleave="qhTabs(0)"
-                >
+                <div :class="['shop_head_right_btn', alert_1_num == 1 ? 'shop_head_right_btn_active' : '']"
+                    @mouseenter="qhTabs(1)" @mouseleave="qhTabs(0)">
                     我要买
                 </div>
                 <!-- 我要卖  -->
@@ -85,12 +79,9 @@
                             <div class="shop_alert_li clearfix" v-for="item in shopMenu" :key="per_obj">
                                 <label class="shop_alert_li_label">{{ item.alias }}</label>
                                 <div class="shop_alert_li_panel clearfix">
-                                    <NuxtLink 
-                                        class="shop_alert_li_panel_a"
-                                        v-for="i in item.children"
-                                        :to="`/xiangcunshangcheng/${item.aLIas_pinyin}/${i.aLIas_pinyin}/gongying/list-1.html`" 
-                                        :title="item.name"
-                                    >
+                                    <NuxtLink class="shop_alert_li_panel_a" v-for="i in item.children"
+                                        :to="`/xiangcunshangcheng/${item.aLIas_pinyin}/${i.aLIas_pinyin}/gongying/list-1.html`"
+                                        :title="item.name">
                                         {{ i.alias }}
                                     </NuxtLink>
                                 </div>
@@ -106,12 +97,10 @@
                             </div>
                             <div class="shop_alert_img_ul clearfix">
                                 <div class="shop_alert_img_li clearfix" v-for="item in shopMenuGoods">
-                                    <NuxtLink 
-                                        :to="getShopLinkPath(item)" 
-                                        class="shop_alert_img_li_a"
-                                        :title="item.name"
-                                    >
-                                        <img class="shop_alert_img_li_img" :src="item.imgurl" :title="item.name" :alt="item.name">
+                                    <NuxtLink :to="getShopLinkPath(item)" class="shop_alert_img_li_a"
+                                        :title="item.name">
+                                        <img class="shop_alert_img_li_img" :src="item.imgurl" :title="item.name"
+                                            :alt="item.name">
                                         <div class="shop_alert_img_li_right">
                                             <!--产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台产品展台-->
                                             <h4 class="shop_alert_img_li_h4 dot1">{{ item.name }}</h4>
@@ -139,12 +128,9 @@
                             <div class="shop_alert_li clearfix" v-for="item in shopMenu" :key="item.id">
                                 <label class="shop_alert_li_label">{{ item.alias }}</label>
                                 <div class="shop_alert_li_panel clearfix">
-                                    <NuxtLink 
-                                        class="shop_alert_li_panel_a"
-                                        v-for="i in item.children"
-                                        :to="`/xiangcunshangcheng/${item.aLIas_pinyin}/${i.aLIas_pinyin}/qiugou/list-1.html`" 
-                                        :title="item.name"
-                                    >
+                                    <NuxtLink class="shop_alert_li_panel_a" v-for="i in item.children"
+                                        :to="`/xiangcunshangcheng/${item.aLIas_pinyin}/${i.aLIas_pinyin}/qiugou/list-1.html`"
+                                        :title="item.name">
                                         {{ i.alias }}
                                     </NuxtLink>
                                 </div>
@@ -160,12 +146,10 @@
                             </div>
                             <div class="shop_alert_img_ul clearfix">
                                 <div class="shop_alert_img_li clearfix" v-for="item in shopMenuGoods">
-                                    <NuxtLink 
-                                        :to="getShopLinkPath(item)" 
-                                        class="shop_alert_img_li_a"
-                                        :title="item.name"
-                                    >
-                                        <img class="shop_alert_img_li_img" :src="item.imgurl" :title="item.name" :alt="item.name">
+                                    <NuxtLink :to="getShopLinkPath(item)" class="shop_alert_img_li_a"
+                                        :title="item.name">
+                                        <img class="shop_alert_img_li_img" :src="item.imgurl" :title="item.name"
+                                            :alt="item.name">
                                         <div class="shop_alert_img_li_right">
                                             <h4 class="shop_alert_img_li_h4 dot1">{{ item.name }}</h4>
                                             <div class="shop_alert_img_li_dot3 dot3">{{ item.description }}</div>
@@ -489,7 +473,7 @@ let goShopSearch = () => {
 //6.2 商城菜单
 //我要卖
 const alert_1_num = ref(0)
-const qhTabs = function(number){
+const qhTabs = function (number) {
     alert_1_num.value = number
 }
 //6.3 获得商城菜单
@@ -500,19 +484,19 @@ let getShopMenu = async () => {
     const responseStatus = await requestDataPromise('/web/getWebsiteshopCat', {
         method: 'GET',
         query: {
-            id:346,
-            page:1,
-            pageSize:10,//请求所有菜单
+            id: 346,
+            page: 1,
+            pageSize: 10,//请求所有菜单
         },
     });
 
-    if(responseStatus.data.category){
+    if (responseStatus.data.category) {
         shopMenu.value = responseStatus.data.category[0].children;
     }
     //shopMenuGoods.value = responseStatus.data.goods;
     //只展示6个商品
-    for(let index in responseStatus.data.goods){
-        if(index<=5){
+    for (let index in responseStatus.data.goods) {
+        if (index <= 5) {
             shopMenuGoods.value.push(responseStatus.data.goods[index])
         }
     }
@@ -791,6 +775,7 @@ header {
         }
     }
 }
+
 //常规 header end ---------------------------------------->
 
 //商城 header start ---------------------------------------->
@@ -1025,9 +1010,10 @@ header {
 
 .shop_alert_li {
     margin-bottom: 11px;
-    display: flex;
+    // display: flex;
 
     .shop_alert_li_label {
+        float: left;
         width: 120px;
         line-height: 21px;
         color: #333;
@@ -1051,7 +1037,10 @@ header {
         background-size: 100% 100%;
     }
 
-    .shop_alert_li_panel {}
+    .shop_alert_li_panel {
+        float: left;
+        width: 840px;
+    }
 
     .shop_alert_li_panel_a {
         float: left;
@@ -1220,5 +1209,5 @@ a.shop_nav_head_a {
     background-size: 12px 12px;
     margin-left: 10px;
 }
-//商城 header end ---------------------------------------->
-</style>
+
+//商城 header end ----------------------------------------></style>

+ 1 - 0
components/shop/swiperXcShop.vue

@@ -121,6 +121,7 @@ const props = defineProps({
     font-size: 14px;
     margin: 7px auto 6px;
     width: 140px;
+    text-align: center;
 }
 
 .shop_li_img_1_price {

+ 1 - 1
pages/xiangcunshangcheng/[dir]/[dir]/gongying/[id].html.vue

@@ -81,7 +81,7 @@
                 <div class="supply_art_box" v-show="supply_choice_1_num == 1" v-html="shopData.detail"></div>
                 <!-- 联系方式 -->
                 <div class="supply_art_box" v-show="supply_choice_1_num == 2">
-                    <p class="supply_art_box_p">公司名:</p>
+                    <p class="supply_art_box_p">公司名:{{ shopData.com }}</p>
                     <p class="supply_art_box_p">联系人:{{shopData.contact}}</p>
                     <p class="supply_art_box_p">电话:{{shopData.phone}}</p>
                     <p class="supply_art_box_p">邮箱:{{shopData.email}}</p>

+ 1 - 1
pages/xiangcunshangcheng/[dir]/gongying/[id].html.vue

@@ -74,7 +74,7 @@
                 <div class="supply_art_box" v-show="supply_choice_1_num == 1" v-html="shopData.detail"></div>
                 <!-- 联系方式 -->
                 <div class="supply_art_box" v-show="supply_choice_1_num == 2">
-                    <p class="supply_art_box_p">公司名:</p>
+                    <p class="supply_art_box_p">公司名:{{ shopData.com }}</p>
                     <p class="supply_art_box_p">联系人:{{shopData.contact}}</p>
                     <p class="supply_art_box_p">电话:{{shopData.phone}}</p>
                     <p class="supply_art_box_p">邮箱:{{shopData.email}}</p>

+ 9 - 9
plugins/category.ts

@@ -62,17 +62,17 @@ const navPre: number[] = [
     // 不包含资讯的导航
     346, //乡村商场346
     345, //市场报价345
-    343  //乡土特色343
+    343,  //乡土特色343
 
     //二级栏目
-    // 419, //模块1 三农资讯328-政策法规419
-    // 193, //模块2 三农服务27-三农招商193
-    // 429, //模块4 乡村招商325-乡村引资429 (pre没有二级导航)
-    // 223, //模块8 三农投资12-国家拨款223
-    // 612, //模块14 产业集群330-农产基地612 (pre没有二级导航)
-    // 442, //乡村商场346 农资产品442
-    // 450, //市场报价345 最新报价450
-    // 458, //乡土特色343 饮食文化458
+    419, //模块1 三农资讯328-政策法规419
+    193, //模块2 三农服务27-三农招商193
+    724, //模块4 乡村招商325-乡村引资724 
+    223, //模块8 三农投资12-国家拨款223
+    725, //模块14 产业集群330-农产基地725
+    442, //乡村商场346 农资产品442
+    450, //市场报价345 最新报价450
+    458, //乡土特色343 饮食文化458
 ]
 
 export default defineNuxtPlugin((nuxtApp) => {