Browse Source

修改bug

修改bug
dangyunlong 14 hours ago
parent
commit
6f7f78215e

+ 1 - 1
.nuxt/manifest/latest.json

@@ -1 +1 @@
-{"id":"4c72c294-f423-484e-8aa9-110df607168d","timestamp":1745826400056}
+{"id":"13d44bbe-63ae-49d4-9ebf-b7dcd94aa110","timestamp":1745828563145}

+ 1 - 0
.nuxt/manifest/meta/13d44bbe-63ae-49d4-9ebf-b7dcd94aa110.json

@@ -0,0 +1 @@
+{"id":"13d44bbe-63ae-49d4-9ebf-b7dcd94aa110","timestamp":1745828563145,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 0 - 1
.nuxt/manifest/meta/4c72c294-f423-484e-8aa9-110df607168d.json

@@ -1 +0,0 @@
-{"id":"4c72c294-f423-484e-8aa9-110df607168d","timestamp":1745826400056,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 1
.nuxt/tsconfig.json

@@ -102,7 +102,7 @@
         "./imports"
       ],
       "#app-manifest": [
-        "./manifest/meta/4c72c294-f423-484e-8aa9-110df607168d.json"
+        "./manifest/meta/13d44bbe-63ae-49d4-9ebf-b7dcd94aa110.json"
       ],
       "#components": [
         "./components"

+ 1 - 1
assets/css/class.less

@@ -642,7 +642,7 @@ section {
 
 .channel_4 {
     margin-top: 14px;
-    height: 330px;
+    height: 430px;
 }
 
 .channel_ul_7_a {

+ 14 - 0
pages/[dir]/[dir]/[id].vue

@@ -68,6 +68,8 @@
             </div>
         </div>
     </div>
+    <!-- 列表页广告一 -->
+    <HomeTopTen :imgurl="adImg1" v-if="adImg2"></HomeTopTen>
     <!-- 页面底部 -->
     <HomeFoot1></HomeFoot1>
 </template>
@@ -182,6 +184,7 @@ getPageData();
 
 //5.广告 start ---------------------------------------->
 let adImg1 = ref([]);
+let adImg2 = ref([]);
 onMounted(async ()  => {
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
@@ -195,6 +198,17 @@ onMounted(async ()  => {
     });
     const resultAd1 = await responseAd1.json();
     adImg1.value = resultAd1.data[0];
+    //广告2
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snscw_detail_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];
 })
 //5.广告 end ---------------------------------------->
 

+ 13 - 1
pages/[dir]/[id].vue

@@ -170,7 +170,7 @@ getPageData();
 
 //5.广告 start ---------------------------------------->
 let adImg1 = ref([]);
-
+let adImg2 = ref([]);
 onMounted(async ()  => {
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
@@ -184,6 +184,18 @@ onMounted(async ()  => {
     });
     const resultAd1 = await responseAd1.json();
     adImg1.value = resultAd1.data[0];
+
+    //广告2
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snscw_detail_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];
 })
 //5.广告 end ---------------------------------------->
 

+ 4 - 4
pages/[dir]/index.html.vue

@@ -215,7 +215,7 @@
                             栏目简介
                         </NuxtLink>
                     </div>
-                    <div class="channel_img_ul_2 clearfix" v-if="pageData[5].data">
+                    <div class="channel_img_ul_2 clearfix" v-if="pageData[5]">
                         <div class="channel_img_ul_2_li" v-for="item in pageData[5].data">
                             <NuxtLink class="channel_img_ul_2_li" :href="getLinkPathDetail(item)" :title="item.title"
                                 :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
@@ -226,7 +226,7 @@
                             </NuxtLink>
                         </div>
                     </div>
-                    <div class="channel_ul_6" v-if="pageData[5].data2">
+                    <div class="channel_ul_6" v-if="pageData[5]">
                         <NuxtLink class="channel_ul_6_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                             v-for="item in pageData[5].data2" :key="item.id"
                             :target="item.islink == 1 ? '_blank' : '_self'">
@@ -249,7 +249,7 @@
                             栏目简介
                         </NuxtLink>
                     </div>
-                    <div class="channel_ul_7">
+                    <div class="channel_ul_7" v-if="pageData[6]">
                         <NuxtLink class="channel_ul_7_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                             v-for="item in pageData[6].data" :key="item.id"
                             :target="item.islink == 1 ? '_blank' : '_self'">
@@ -270,7 +270,7 @@
                             栏目简介
                         </NuxtLink>
                     </div>
-                    <div class="channel_img_big_5_ul" v-if="pageData[7].data">
+                    <div class="channel_img_big_5_ul" v-if="pageData[7]">
                         <div class="channel_img_big_5_li" v-for="item in pageData[7].data">
                             <NuxtLink class="channel_img_big_5_li_a" :href="getLinkPathDetail(item)" :title="item.title"
                                 v-for="item in pageData[7].data" :key="item.id"