235 lines
4.7 KiB
Vue
235 lines
4.7 KiB
Vue
|
||
<template>
|
||
<div class="index-footer">
|
||
<div class="footer">
|
||
<div class="logo">
|
||
<div class="d-s">
|
||
<div class="logo-box">
|
||
<img :src="baseInfo.webImg" />
|
||
</div>
|
||
<div class="logo-size">
|
||
{{this.baseInfo.webName}}
|
||
</div>
|
||
</div>
|
||
<div class="footer-contact">
|
||
<div class="p">
|
||
|
||
<img src="../../../assets/gw/tel.png" alt="">
|
||
<div class="pp">电话:{{this.baseInfo.contactNumber}}</div>
|
||
|
||
</div>
|
||
|
||
<div class="p">
|
||
|
||
<img src="../../../assets/gw/email.png" alt="">
|
||
<div class="pp">邮箱:{{this.baseInfo.contactEmail}}</div>
|
||
|
||
</div>
|
||
<div class="p">
|
||
|
||
<img src="../../../assets/gw/address.png" alt="">
|
||
<div class="pp">地址:{{ this.baseInfo.address }}</div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<!-- <div class="footer-nav">
|
||
<div class="footer-nav-item" v-for="item in itemsWithoutFirst">
|
||
<div class="tt">{{ item.label }}</div>
|
||
<a href="" v-for="childrenItem in item.children">{{ childrenItem.label }}</a>
|
||
</div>
|
||
</div> -->
|
||
<div class="web_icp">
|
||
<div class="left">
|
||
<a href="">版权所有:{{ this.baseInfo.copyrightInfo }}</a>
|
||
<a href="">备案信息:{{ this.baseInfo.recordInfo }}</a>
|
||
</div>
|
||
<div class="right" @click="toTop">
|
||
<div class="">返回顶部</div>
|
||
<img src="../../../assets/gw/top.png" alt="">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</template>
|
||
<script>
|
||
import { getBaseInfo, } from '@/api/gw/home'
|
||
|
||
export default {
|
||
data() {
|
||
return {
|
||
baseInfo:"",
|
||
}
|
||
},
|
||
mounted() {
|
||
this.getWebBaseInfo()
|
||
},
|
||
methods:{
|
||
getWebBaseInfo() {
|
||
getBaseInfo().then(res => {
|
||
this.baseInfo = res.data
|
||
this.baseInfo.webImg = process.env.VUE_APP_BASE_API + this.baseInfo.webImg
|
||
})
|
||
},
|
||
toTop(){
|
||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
|
||
<style scoped lang="scss">
|
||
.index-footer {
|
||
background: #383838;
|
||
padding-top: 30px;
|
||
}
|
||
|
||
.index-footer .footer {
|
||
width: 80%;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.index-footer .footer .logo {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
/* align-items: center; */
|
||
}
|
||
|
||
.index-footer .footer .logo .footer-contact {
|
||
}
|
||
|
||
.index-footer .footer .logo .footer-contact .p {
|
||
display: inline-block;
|
||
display: flex;
|
||
float: left;
|
||
margin-left: 50px;
|
||
align-items: center;
|
||
color: rgba(255, 255, 255, 0.7);
|
||
font-size: 16px;
|
||
/* justify-content: flex-end; */
|
||
}
|
||
|
||
.index-footer .footer .logo .footer-contact .p img {
|
||
margin-right: 10px;
|
||
}
|
||
|
||
.index-footer .footer .logo .footer-contact .p:nth-child(3) {
|
||
width: 100%;
|
||
clear: both;
|
||
margin-top: 20px;
|
||
}
|
||
|
||
.index-footer .footer .footer-nav {
|
||
display: flex;
|
||
margin-top: 20px;
|
||
padding-top: 30px;
|
||
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.index-footer .footer .footer-nav .footer-nav-item {
|
||
width: 9%;
|
||
margin-right: 1%;
|
||
}
|
||
|
||
.index-footer .footer .footer-nav .footer-nav-item:last-child {
|
||
margin-right: 0;
|
||
}
|
||
|
||
.index-footer .footer .footer-nav .footer-nav-item .tt {
|
||
|
||
font-weight: 500;
|
||
font-size: 18px;
|
||
color: rgba(255, 255, 255, 0.7);
|
||
line-height: 18px;
|
||
position: relative;
|
||
padding-bottom: 20px;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.index-footer .footer .footer-nav .footer-nav-item .tt::after {
|
||
content: "";
|
||
width: 20px;
|
||
height: 2px;
|
||
background: #005375;
|
||
border-radius: 0px 0px 0px 0px;
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 0;
|
||
}
|
||
|
||
.index-footer .footer .footer-nav .footer-nav-item a {
|
||
text-decoration: none;
|
||
|
||
font-weight: 500;
|
||
font-size: 16px;
|
||
color: rgba(255, 255, 255, 0.4);
|
||
line-height: 16px;
|
||
display: block;
|
||
margin-bottom: 15px;
|
||
}
|
||
|
||
.index-footer .footer .footer-nav .footer-nav-item a:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.index-footer .footer .web_icp {
|
||
display: flex;
|
||
margin-top: 50px;
|
||
height: 80px;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.index-footer .footer .web_icp a {
|
||
text-decoration: none;
|
||
|
||
font-weight: 500;
|
||
font-size: 16px;
|
||
color: rgba(255, 255, 255, 0.4);
|
||
line-height: 16px;
|
||
margin-right: 30px;
|
||
}
|
||
|
||
.index-footer .footer .web_icp .right {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end
|
||
}
|
||
|
||
.index-footer .footer .web_icp .right div {
|
||
margin-right: 25px;
|
||
|
||
font-weight: 500;
|
||
font-size: 18px;
|
||
color: rgba(255, 255, 255, 0.7);
|
||
line-height: 18px;
|
||
|
||
}
|
||
.logo-box {
|
||
width: 50px;
|
||
height: 50px;
|
||
background: #fff;
|
||
}
|
||
.logo-box img{
|
||
width: 50px;
|
||
height: 50px;
|
||
}
|
||
|
||
.logo-size {
|
||
font-weight: 800;
|
||
font-size: 24px;
|
||
color: #FFFFFF;
|
||
margin-left: 20px;
|
||
|
||
}
|
||
.d-s {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
</style>
|