|
@@ -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> <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>
|
|
|
|