|
@@ -11,9 +11,9 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<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="三农资讯网">三农资讯网</a> {{ currentDomainUrl }} 版权所有。</p>
|
|
|
+ <!-- <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><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> <img src="http://snzxwt.org/images/beian.png"><a :href="bottomBase.icp_number_url" title="京公网安备案号">{{ bottomBase.icp_number }}</a> </p>
|
|
|
<p>{{ bottomBase.email }}</p>
|
|
@@ -40,31 +40,31 @@
|
|
|
//获得底部基本信息 start---------------------------------------->
|
|
|
|
|
|
//1.获得友情链接图片
|
|
|
-const bottomLink = ref([])
|
|
|
-async function getModelData1() {
|
|
|
- const mkdata = await requestDataPromise('/web/selectWebsiteLinks', {
|
|
|
- method: 'GET',
|
|
|
- query: {
|
|
|
- 'type':1,
|
|
|
- 'num':7,
|
|
|
- },
|
|
|
- });
|
|
|
- bottomLink.value = mkdata.data;
|
|
|
-}
|
|
|
-getModelData1();
|
|
|
-//2.获得友情链接文字
|
|
|
-const bottomText = ref([])
|
|
|
-async function getModelData2() {
|
|
|
- const mkdata = await requestDataPromise('/web/selectWebsiteLinks', {
|
|
|
- method: 'GET',
|
|
|
- query: {
|
|
|
- 'type':2,
|
|
|
- 'num':8,
|
|
|
- },
|
|
|
- });
|
|
|
- bottomText.value = mkdata.data;
|
|
|
-}
|
|
|
-getModelData2();
|
|
|
+// const bottomLink = ref([])
|
|
|
+// async function getModelData1() {
|
|
|
+// const mkdata = await requestDataPromise('/web/selectWebsiteLinks', {
|
|
|
+// method: 'GET',
|
|
|
+// query: {
|
|
|
+// 'type':1,
|
|
|
+// 'num':7,
|
|
|
+// },
|
|
|
+// });
|
|
|
+// bottomLink.value = mkdata.data;
|
|
|
+// }
|
|
|
+// getModelData1();
|
|
|
+// //2.获得友情链接文字
|
|
|
+// const bottomText = ref([])
|
|
|
+// async function getModelData2() {
|
|
|
+// const mkdata = await requestDataPromise('/web/selectWebsiteLinks', {
|
|
|
+// method: 'GET',
|
|
|
+// query: {
|
|
|
+// 'type':2,
|
|
|
+// 'num':8,
|
|
|
+// },
|
|
|
+// });
|
|
|
+// bottomText.value = mkdata.data;
|
|
|
+// }
|
|
|
+// getModelData2();
|
|
|
//3.获得底部图片
|
|
|
const bottomphoto = ref([])
|
|
|
async function getModelData3() {
|
|
@@ -75,7 +75,14 @@ async function getModelData3() {
|
|
|
'num':4,
|
|
|
},
|
|
|
});
|
|
|
- bottomphoto.value = mkdata.data;
|
|
|
+ if(mkdata.code == 200){
|
|
|
+ bottomphoto.value = mkdata.data;
|
|
|
+ }else{
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+ console.log("错误位置:获取底部图片")
|
|
|
+ console.log("后端错误反馈:",mkdata.message)
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+ }
|
|
|
}
|
|
|
getModelData3();
|
|
|
//4.获得底部导航
|
|
@@ -86,18 +93,34 @@ async function getModelData4() {
|
|
|
query: {
|
|
|
},
|
|
|
});
|
|
|
- bottomMenu.value = mkdata.data;
|
|
|
+ if(mkdata.code == 200){
|
|
|
+ bottomMenu.value = mkdata.data;
|
|
|
+ }else{
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+ console.log("错误位置:获取底部导航")
|
|
|
+ console.log("后端错误反馈:",mkdata.message)
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+ }
|
|
|
}
|
|
|
getModelData4();
|
|
|
//5.获得底部基本信息
|
|
|
const bottomBase = ref({})
|
|
|
+const webSiteName = ref("")
|
|
|
async function getModelData5() {
|
|
|
const mkdata = await requestDataPromise('/web/getWebsiteFootInfo', {
|
|
|
method: 'GET',
|
|
|
query: {
|
|
|
},
|
|
|
});
|
|
|
- bottomBase.value = mkdata.data.website_foot;
|
|
|
+ if(mkdata.code == 200){
|
|
|
+ bottomBase.value = mkdata.data.website_foot;
|
|
|
+ webSiteName.value = mkdata.data.website_head.title;
|
|
|
+ }else{
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+ console.log("错误位置:获取底部基本信息")
|
|
|
+ console.log("后端错误反馈:",mkdata.message)
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+ }
|
|
|
}
|
|
|
getModelData5();
|
|
|
|