123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <template>
- <div class="footer">
- <div class="inner">
- <!-- 图片列表 -->
- <ul class="logoList">
- <li v-for="(item,index) in bottomLink" :key=index class="left">
- <img :src="item.logo_url">
- </li>
- </ul>
- <!-- 友情链接 -->
- <div class="link">
- <h5 class="left">友情链接</h5>
- <ul class="left">
- <li v-for="(item, index) in bottomLink" :key="index">
- <a href="#">{{ item.title }}</a>
- </li>
- </ul>
- </div>
- <!-- 快捷服务 -->
- <div class="service">
- <h5 class="left">快捷服务</h5>
- <p class="left">
- <span v-for="(item, index) in bottomMenu" :key="index">
- <NuxtLink :to="{ path: `/specialList/${item.id}`}" target="_blank" v-if="item.type==1">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink :to="{ path: `/speciaArticle/${item.id}`}" target="_blank" v-if="item.type==0">
- {{ item.name }}
- </NuxtLink>
- </span>
- </p>
- </div>
- <div class="tips" v-if="bottomBase">
- <p>{{ bottomBase.statement }}</p>
- </div>
- <div class="tipsList" v-if="bottomBase">
- <p>{{ bottomBase.copyright_information }}</p>
- <p>
- <em></em>
- {{bottomBase.icp_number}}
- </p>
- <p>{{bottomBase.record_number}}</p>
- <p>{{bottomBase.company_address}}</p>
- <p>{{bottomBase.contact_number}}</p>
- </div>
- <!-- 图片列表 -->
- <!-- <ul class="logoList1">
- <li v-for="(item,index) in bottomImg":key=index class="left">
- <img :src="item" alt="">
- </li>
- </ul> -->
- </div>
- </div>
- </template>
- <script setup>
- import { onMounted } from 'vue';
- const nuxtApp = useNuxtApp();
- const axios = nuxtApp.$axios;
- // const props = defineProps({
- // bottomLink: Array,
- // bottomMenu: Array,
- // bottomBase: Object
- // });
- //获得友情链接
- const bottomLink = ref([])
- const getBottomLink = async () => {
- const response = await axios.get(`/web/selectWebsiteLinks?&type=${1}&num=${7}`);
- bottomLink.value = response.data;
- console.log(bottomLink.value)
- }
- //获得底部导航
- const bottomMenu = ref([])
- const getBottomMenu = async () => {
- const response = await axios.get(`/web/getWebsiteFooterCategory`);
- bottomMenu.value = response.data;
- console.log(bottomMenu.value)
- }
- //获得底部基本信息
- const bottomBase = ref({})
- const getBottomBase = async () => {
- const response = await axios.get(`/web/getWebsiteFootInfo`);
- bottomBase.value = response.data.website_foot;
- console.log(7777777)
- console.log(getBottomBase.value)
- }
- onMounted(() => {
- getBottomLink();
- getBottomMenu();
- getBottomBase();
- })
- </script>
- <style lang="less" scoped>
- .footer {
- width: 100%;
- height: 595px;
- background-color: #40663b;
- overflow: hidden;
- .inner {
- width: 1200px;
- height: 100%;
- // 图片列表
- .logoList {
- height: 50px;
- margin-top: 43px;
- >li {
- width: 150px;
- height: 50px;
- margin-right: 25px;
- img {
- width: 150px;
- height: 50px;
- }
- }
- >li:nth-child(7) {
- margin-right: 0;
- }
- }
- .link,
- .service {
- width: 1200px;
- height: 26px;
- padding-left: 40px;
- box-sizing: border-box;
- >h5 {
- width: 48px;
- height: 18px;
- line-height: 18px;
- font-family: Source Han Sans, Source Han Sans;
- font-weight: bold;
- font-size: 12px;
- color: #FFFFFF;
- text-align: center;
- font-style: normal;
- text-transform: none;
- }
- }
- //友情链接
- .link {
- margin-top: 47px;
- width: 1200px;
- border-bottom: 1px solid #fff;
- h5 {
- margin-right: 109px;
- }
- >ul>li {
- margin-right: 40px;
- }
- ul>li {
- float: left;
- >a {
- font-family: Source Han Sans, Source Han Sans;
- font-weight: 500;
- font-size: 12px;
- color: #FFFFFF;
- line-height: 18px;
- text-align: center;
- font-style: normal;
- text-transform: none;
- }
- }
- }
- //快捷服务
- .service {
- width: 1200px;
- margin-top: 8px;
- h5 {
- margin-right: 80px;
- }
- >p {
- >span {
- border-right: 1px solid #fff;
- >a {
- font-family: Source Han Sans, Source Han Sans;
- font-weight: 400;
- font-size: 12px;
- color: #FFFFFF;
- line-height: 18px;
- text-align: center;
- font-style: normal;
- text-transform: none;
- padding: 0 13px;
- }
- }
- >span:last-child {
- border: none;
- }
- }
- }
- p {
- font-family: Inter, Inter;
- font-weight: bold;
- font-size: 12px;
- color: #FFFFFF;
- line-height: 14px;
- text-align: center;
- font-style: normal;
- text-transform: none;
- >em {
- display: inline-block;
- width: 20px;
- height: 20px;
- background-image: url("../../static/images/beian 1.png");
- vertical-align: middle;
- }
- }
- .tips {
- width: 759px;
- height: 30px;
- margin: 70px auto 30px;
- }
- .tipsList {
- margin: 0 auto;
- width: 722px;
- height: 108px;
- }
- .logoList1 {
- width: 445px;
- height: 40px;
- margin: 70px auto 57px;
- >li {
- width: 96px;
- height: 40px;
- margin-right: 20px;
- >img {
- width: 96px;
- height: 40px;
- }
- }
- >li:last-child {
- margin-right: 0px;
- }
- }
- }
- }
- </style>
|