dangyunlong пре 1 месец
родитељ
комит
c3346b977e

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

@@ -1 +1 @@
-{"id":"dev","timestamp":1742200744431}
+{"id":"dev","timestamp":1742204928035}

+ 0 - 1
.nuxt/manifest/meta/49e5706e-f426-4f06-bd53-2b0ec905064c.json

@@ -1 +0,0 @@
-{"id":"49e5706e-f426-4f06-bd53-2b0ec905064c","timestamp":1742195174611,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 0
.nuxt/manifest/meta/77e74f8e-31d7-4cbd-9f83-a9b9018df813.json

@@ -0,0 +1 @@
+{"id":"77e74f8e-31d7-4cbd-9f83-a9b9018df813","timestamp":1742204702275,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 1
.nuxt/manifest/meta/dev.json

@@ -1 +1 @@
-{"id":"dev","timestamp":1742200744431,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
+{"id":"dev","timestamp":1742204928035,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 3 - 3
.nuxt/nitro.json

@@ -1,5 +1,5 @@
 {
-  "date": "2025-03-17T08:39:07.362Z",
+  "date": "2025-03-17T09:48:51.175Z",
   "preset": "nitro-dev",
   "framework": {
     "name": "nuxt",
@@ -9,9 +9,9 @@
     "nitro": "2.10.4"
   },
   "dev": {
-    "pid": 8396,
+    "pid": 15724,
     "workerAddress": {
-      "socketPath": "\\\\.\\pipe\\nitro\\worker-8396-1.sock"
+      "socketPath": "\\\\.\\pipe\\nitro\\worker-15724-1.sock"
     }
   }
 }

+ 1 - 1
.nuxt/nuxt.d.ts

@@ -1,6 +1,6 @@
 // Generated by nuxi
-/// <reference types="@nuxt/telemetry" />
 /// <reference types="@nuxt/devtools" />
+/// <reference types="@nuxt/telemetry" />
 /// <reference path="types/builder-env.d.ts" />
 /// <reference types="nuxt" />
 /// <reference path="types/app-defaults.d.ts" />

+ 1 - 1
.nuxt/tsconfig.json

@@ -102,7 +102,7 @@
         "./imports"
       ],
       "#app-manifest": [
-        "./manifest/meta/dev"
+        "./manifest/meta/dev.json"
       ],
       "#components": [
         "./components"

+ 14 - 11
components/home/foot.vue

@@ -28,7 +28,7 @@
         </div>
         <div class="foot_text_box" v-if="bottomBase">
             <p>{{ bottomBase.statistics_onetext }} <a :href="bottomBase.record_number_url" :title="中农兴业">中农兴业</a> {{ bottomBase.statistics_twotext }}</p>
-            <p>{{ bottomBase.organizer }} <a :href="currentDomain" :title="webSiteName">{{ webSiteName }}</a> {{ currentDomainUrl }} 版权所有。</p>
+            <p>{{ bottomBase.organizer }} <a :href="currentDomain" :title="webSiteName">{{ webSiteName }}</a> {{ webSiteUrl }} 版权所有。</p>
             <p><a :href="bottomBase.record_number_url" title="ICP备案号">{{ bottomBase.record_number }}</a> &nbsp;&nbsp; <img :src="bottomBase.icp_number_img"><a :href="bottomBase.icp_number_url" title="京公网安备案号">{{ bottomBase.icp_number }}</a> </p>
             <p>{{ bottomBase.email }}</p>
             <p>{{ bottomBase.company_address }}</p>
@@ -134,6 +134,7 @@ getModelData4();
 //5.获得底部基本信息
 const bottomBase = ref({})
 const webSiteName = ref("")
+const webSiteUrl = ref("")
 async function getModelData5() {
     const mkdata =  await requestDataPromise('/web/getWebsiteFootInfo', {
         method: 'GET',
@@ -143,6 +144,8 @@ async function getModelData5() {
     if(mkdata.code == 200){
         bottomBase.value = mkdata.data.website_foot;
         webSiteName.value = mkdata.data.website_head.title;
+        //获得最后一个域名
+        webSiteUrl.value = mkdata.data.website_head.website_url[mkdata.data.website_head.website_url.length - 1];
     }else{
         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
         console.log("错误位置:获取底部基本信息")
@@ -153,17 +156,17 @@ async function getModelData5() {
 getModelData5();
 
 //6.获取当前域名
-const currentDomain = ref('')
-const currentDomainUrl = ref('')
+// const currentDomain = ref('')
+// const currentDomainUrl = ref('')
 
-const getDomain = () => {
-    if (process.client) {
-        const url = new URL(window.location.href)
-        currentDomainUrl.value = url.hostname // 获取域名
-        currentDomain.value = url.origin //协议和域名
-    }
-}
-getDomain();
+// const getDomain = () => {
+//     if (process.client) {
+//         const url = new URL(window.location.href)
+//         currentDomainUrl.value = url.hostname // 获取域名
+//         currentDomain.value = url.origin //协议和域名
+//     }
+// }
+// getDomain();
 //获得底部基本信息 end---------------------------------------->
 </script>
 

+ 14 - 11
components/home/foot1.vue

@@ -13,7 +13,7 @@
         <div class="foot_text_box" v-if="bottomBase">
             <!-- <p>{{ bottomBase.statistics_onetext }} <a :href="'http://' + bottomBase.statistics_twourl">中农兴业</a> {{ bottomBase.statistics_twotext }}</p> -->
             <p>{{ bottomBase.statistics_onetext }} <a :href="bottomBase.record_number_url" title="中农兴业">中农兴业</a> {{ bottomBase.statistics_twotext }}</p>
-            <p>{{ bottomBase.organizer }} <a :href="currentDomain" :title="webSiteName">{{ webSiteName }}</a>  {{ currentDomainUrl }} 版权所有。</p>
+            <p>{{ bottomBase.organizer }} <a :href="currentDomain" :title="webSiteName">{{ webSiteName }}</a>  {{ webSiteUrl }} 版权所有。</p>
             <!-- <p><img :src="bottomBase.icp_number_img"><a :href="'http://' + bottomBase.statistics_twourl">{{ bottomBase.record_number }}</a> <a :href="'http://' + bottomBase.icp_number_url">{{ bottomBase.icp_number }}</a> </p> -->
             <p><a :href="bottomBase.record_number_url" title="ICP备案号">{{ bottomBase.record_number }}</a> &nbsp;&nbsp; <img src="http://snzxwt.org/images/beian.png"><a :href="bottomBase.icp_number_url" title="京公网安备案号">{{ bottomBase.icp_number }}</a> </p>
             <p>{{ bottomBase.email }}</p>
@@ -106,6 +106,7 @@ getModelData4();
 //5.获得底部基本信息
 const bottomBase = ref({})
 const webSiteName = ref("")
+const webSiteUrl = ref("")
 async function getModelData5() {
     const mkdata =  await requestDataPromise('/web/getWebsiteFootInfo', {
         method: 'GET',
@@ -115,6 +116,8 @@ async function getModelData5() {
     if(mkdata.code == 200){
         bottomBase.value = mkdata.data.website_foot;
         webSiteName.value = mkdata.data.website_head.title;
+        //获得最后一个域名
+        webSiteUrl.value = mkdata.data.website_head.website_url[mkdata.data.website_head.website_url.length - 1];
     }else{
         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
         console.log("错误位置:获取底部基本信息")
@@ -125,17 +128,17 @@ async function getModelData5() {
 getModelData5();
 
 //6.获取当前域名
-const currentDomain = ref('')
-const currentDomainUrl = ref('')
+// const currentDomain = ref('')
+// const currentDomainUrl = ref('')
 
-const getDomain = () => {
-    if (process.client) {
-        const url = new URL(window.location.href)
-        currentDomainUrl.value = url.hostname // 获取域名
-        currentDomain.value = url.origin //协议和域名
-    }
-}
-getDomain();
+// const getDomain = () => {
+//     if (process.client) {
+//         const url = new URL(window.location.href)
+//         currentDomainUrl.value = url.hostname // 获取域名
+//         currentDomain.value = url.origin //协议和域名
+//     }
+// }
+// getDomain();
 //获得底部基本信息 end---------------------------------------->
 </script>