1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <footer class="index_foot">
- <div class="call_us_box">
- <span v-for="(item, index) in bottomMenu" :key="index">
- <NuxtLink :to="{ path: `/specialList/${item.id}` }" v-if="item.type == 1" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" v-if="item.type == 0" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </span>
- </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> {{ webSiteUrl }} 版权所有。</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>
- <p>{{ bottomBase.company_address }}</p>
- <p>{{ bottomBase.contact_number }}</p>
- </div>
- <div class="foot_logo_out" v-if="bottomBase">
- <a :href="'http://' + bottomBase.company_url" :title="bottomBase.company_name">
- <img :src="bottomBase.project_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
- </a>
- <a :href="'http://' + bottomBase.project_url" :title="bottomBase.project_name">
- <img :src="bottomBase.company_logo" class="floatLogoRight" :alt="bottomBase.project_name">
- </a>
- </div>
- <div class="foot_last_img_box">
- <a :href="item.url" v-for="(item, index) in bottomphoto">
- <img :src="item.logo_url" alt="">
- </a>
- </div>
- </footer>
- </template>
- <script setup>
- //获得底部基本信息 start---------------------------------------->
- //1.获得全部友情链接与底部图片
- const bottomLink = ref([])
- const bottomText = ref([])
- const bottomphoto = ref([])
- const bottomMenu = ref([])
- async function getModelDataAll() {
- const mkdata = await requestDataPromise('/web/getWebsiteFootAll', {
- method: 'GET',
- query: {
- 'link_textnum':8,
- 'link_imgnum':12,
- 'link_footnum':4
- },
- });
- if(mkdata.code == 200){
- bottomLink.value = mkdata.data.link_img;
- bottomText.value = mkdata.data.link_text;
- bottomphoto.value = mkdata.data.link_foot;
- bottomMenu.value = mkdata.data.foot_cate;
- }else{
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:获取友情链接图片")
- console.log("后端错误反馈:",mkdata.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- getModelDataAll();
- //2.获得底部基本信息
- const bottomBase = ref({})
- const webSiteName = ref("")
- const webSiteUrl = ref("")
- async function getModelData5() {
- const mkdata = await requestDataPromise('/web/getWebsiteFootInfo', {
- method: 'GET',
- query: {
- },
- });
- 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("错误位置:获取底部基本信息")
- console.log("后端错误反馈:",mkdata.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- getModelData5();
- //获得底部基本信息 end---------------------------------------->
- </script>
- <style lang="less" scoped>
- @import '@/assets/css/foot.less';
- </style>
|