200 lines
3.4 KiB
Vue
Raw Normal View History

2024-05-23 15:58:30 +08:00
<template>
<!-- 底部 -->
<footer>
<div class="bottom-imgs">
<img class="footer-logo" :src="require('@/imgs/logo 拷贝 2.png')" @click="toHome" />
</div>
<a href="https://beian.miit.gov.cn "><img class="sheld" :src="require('@/imgs/图层 105.png')" alt="" /></a>
<div class="middle-msgs">
<img :src="require(`@/imgs/${footImg}.png`)" alt="">
<div class="connect">
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32070602010094"></a>
</div>
<div class="aboutUs">
<a href="http://www.jsxinyuansu.com/"></a>
</div>
</div>
<div class="wxgzh-all">
<div class="wxgzh" v-for="(s, f) in 3" :key="f">
<img :src="require('@/imgs/wxewm.png')" alt="" />
<p>微信公众号</p>
</div>
</div>
</footer>
<!-- <div class="modelBtm">
<span class="msg">
<p>版权所有连云港市革命纪念馆</p>
<p>苏ICP备2023013855号</p>
</span>
</div> -->
</template>
<script>
export default {
name: "FootPart",
props: {
msg: String,
},
data() {
return {
footImg: '',
lang:''
}
},
beforeMount() {
this.lang = localStorage.getItem('langtype')
this.footImg = this.lang + 'Footer'
console.log(this.footImg);
},
methods:{
toHome(){
if(this.lang == 'cn'){
this.$router.push('/')
}else{
this.$router.push('/foreignlang')
}
}
}
};
</script>
<style scoped>
/* 底部信息 */
footer {
height: 200px;
padding: 5% 0;
box-sizing: border-box;
background-image: url("@/imgs/图层 49.png");
background-size: cover;
background-repeat: no-repeat;
display: flex;
position: relative;
}
.footer-logo {
width: 25%;
height: 35%;
position: absolute;
left: 4%;
top: 30%;
}
.sheld {
width: 50px;
height: 60px;
position: absolute;
top: 32%;
left: 27%;
}
.middle-msgs {
width: 35%;
/* height: 100px; */
margin-left: 10px;
overflow: hidden;
/* background-image: url('../imgs/cnFooter.png'); */
background-size: contain;
background-repeat: no-repeat;
position: absolute;
top: 30%;
left: 32%;
}
.connect {
width: 320px;
height: 25px;
position: absolute;
top: 0;
left: 45%;
z-index: 999;
/* background-color: #fff; */
}
.connect a {
width: 100%;
height: 100%;
display: block;
}
.aboutUs {
width: 300px;
height: 25px;
position: absolute;
bottom: 0;
left: 0;
z-index: 999;
}
.aboutUs a {
width: 100%;
height: 100%;
display: block;
}
.wxgzh-all {
position: absolute;
top: 25%;
left: 67%;
display: flex;
}
.wxgzh {
margin: 0 5px;
}
.wxgzh img {
width: 80%;
height: 75%;
display: block;
margin: 0 auto;
}
.wxgzh p {
width: 100%;
height: 15px;
font-size: 14px;
font-family: Microsoft YaHei;
font-weight: 400;
color: #f7f5f5;
line-height: 18px;
text-align: center;
}
.modelBtm {
width: 100%;
height: 289px;
position: static;
bottom: 0;
display: none;
background-image: url('../imgs/底部背景.png');
}
.msg {
width: 100%;
display: flex;
flex-wrap: wrap;
padding-top: 200px;
box-sizing: border-box;
}
.msg p {
width: 100%;
display: block;
text-align: center;
margin: 5px 0;
font-size: 18px;
font-family: Microsoft YaHei;
font-weight: 400;
color: #F7F5F5;
line-height: 18px;
}
@media screen and (min-width:0px) and (max-width: 992px) {
footer {
display: none;
}
.modelBtm {
display: block;
}
}</style>