粒子研究院前台前端

281 lines
6.9 KiB

2 years ago
<template>
2 years ago
<div>
2 years ago
<div v-if="showDefaultPath.includes($route.path)"
class="footer">
2 years ago
<div class="info">
<div class="leftBox">
2 years ago
<img class="m-b-20"
src="@/assets/images/iasf.png"
alt="">
2 years ago
<p class="meta">Copyright ©2002- 2021</p>
<p class="meta">Institute of Advanced Science Facilities, ShenzhenIASF</p>
<p class="meta">Tel400-0010-998</p>
2 years ago
</div>
2 years ago
<div v-for="(item, i) in columns"
:key="i"
class="column">
2 years ago
<h6 @click="columnTo(item)">{{ item.columnName }}</h6>
2 years ago
<ul v-if="item.children.length"
class="children">
<li v-for="(column, j) in item.children"
:key="j"
@click="columnTo(column)">{{ column.columnName }}</li>
2 years ago
</ul>
</div>
</div>
2 years ago
<a class="copyright">粤ICP备2020131940号 粤公安网34565432456765432号</a>
2 years ago
</div>
2 years ago
<div v-if="showContactPath.includes($route.path)"
class="contact">
2 years ago
<div class="inner">
<div class="title">
<h6>Contact us</h6>
<p class="text">CONTACT US</p>
</div>
<div class="region">
2 years ago
<img class="dot"
src="@/assets/images/dot.png"
alt="">
2 years ago
<p class="name">Shenzhen</p>
</div>
<div class="info">
2 years ago
<img class="logo"
src="@/assets/images/logo.png"
alt="">
2 years ago
<div class="texts">
<div class="lines">
<div class="line">
2 years ago
<img class="icon"
src="@/assets/images/mail.png"
alt="">
Email: {{ isSfel ? 'fel@mail.iasf.ac.cn' : 'std@mail.iasf.ac.cn' }}
2 years ago
</div>
<div class="line">
2 years ago
<img class="icon"
src="@/assets/images/tel.png"
alt="">
Telephone: {{ isSfel ? '0755-21096052' : '0086-755-21096026' }}
2 years ago
</div>
<div class="line">
2 years ago
<img class="icon"
src="@/assets/images/address.png"
alt="">
Address: {{ isSfel ? '自由电子激光工程经理部' : '268 Zhenyuan St, Building A3, Floor 3-6, Guangming District, Shenzhen, Guangdong, P.R.China' }}
2 years ago
</div>
</div>
<div class="qrcode">
<!-- <img src="@/assets/images/about/qrcode.png" alt=""> -->
</div>
</div>
</div>
</div>
</div>
2 years ago
</div>
2 years ago
</template>
<script>
2 years ago
import mixins from '@/mixins/article'
2 years ago
export default {
2 years ago
mixins: [mixins],
2 years ago
data () {
2 years ago
return {
2 years ago
showDefaultPath: ['/home', '/iasf'], // 展示默认页脚的页面
2 years ago
showContactPath: ['/news', '/sfel', '/talent', '/about', '/careers', '/edu', '/news'], // 展示联系我们页脚的页面
2 years ago
columns: [],
2 years ago
};
},
computed: {
// 是否是sfel网站
2 years ago
isSfel () {
const id = this.$route.query.siteId || this.$store.state.content.site
return id == 3
}
},
2 years ago
mounted () {
2 years ago
this.getColumn()
2 years ago
},
methods: {
2 years ago
// 资讯
2 years ago
getColumn () {
this.$post(this.api.listWithTreeMenuVisible, {
siteId: this.$route.query.siteId || this.$store.state.content.site,
2 years ago
columnName: '',
templateId: '',
2 years ago
typeId: '',
isSort: 1
2 years ago
}).then(({ data }) => {
2 years ago
this.columns = data.slice(0, 6)
2 years ago
}).catch(err => { })
2 years ago
},
2 years ago
},
2 years ago
};
</script>
<style lang="scss" scoped>
2 years ago
.leftBox {
margin-right: 100px;
}
2 years ago
.footer {
padding: 64px 10% 25px;
color: #fff;
background-color: #091733;
overflow: hidden;
.info {
display: flex;
2 years ago
}
2 years ago
.meta {
margin-bottom: 10px;
font-size: 14px;
2 years ago
}
2 years ago
.column {
margin: 0 20px;
h6 {
margin-bottom: 20px;
font-size: 16px;
white-space: nowrap;
cursor: pointer;
}
2 years ago
}
2 years ago
.children {
li {
margin: 12px 0;
font-size: 14px;
color: #6d7384;
white-space: nowrap;
cursor: pointer;
}
2 years ago
}
2 years ago
.copyright {
font-size: 14px;
color: #6d7384;
2 years ago
}
2 years ago
}
.contact {
position: relative;
padding: 0 0 73px 0;
background: url(../../assets/images/map.png) 0 0 / cover no-repeat;
.inner {
width: 1082px;
margin: 0 auto;
2 years ago
}
2 years ago
.title {
width: 419px;
height: 263px;
padding: 147px 0 0 40px;
background-color: #0854fe;
h6 {
z-index: 2;
position: relative;
margin-bottom: 20px;
font-size: 45px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #fff;
}
.text {
margin-top: -65px;
font-size: 48px;
-webkit-text-fill-color: transparent;
-webkit-text-stroke: 1px #4073e5;
}
2 years ago
}
2 years ago
.region {
position: absolute;
top: 152px;
left: 70%;
display: flex;
align-items: center;
font-size: 20px;
color: #fff;
img {
margin-right: 20px;
}
2 years ago
}
2 years ago
.info {
margin: 55px 0 0 8px;
.texts {
display: flex;
align-items: center;
margin-top: 24px;
}
.item {
margin-right: 75px;
}
.line {
display: flex;
align-items: center;
margin-bottom: 20px;
font-size: 16px;
color: #fff;
img {
margin-right: 8px;
}
}
2 years ago
}
2 years ago
.qrcode {
text-align: center;
.text {
margin-top: 10px;
font-size: 12px;
color: #fff;
}
}
2 years ago
}
@media (max-width: 1200px) {
body {
width: 100% !important;
}
2 years ago
.inner {
width: 100% !important;
.title {
width: 100%;
text-align: center;
}
.region {
top: 300px;
left: 50%;
}
.info {
margin-top: 90px;
}
}
}
@media (min-width: 280px) and (max-width: 750px) {
2 years ago
.footer {
.info {
flex-direction: column;
.column {
margin-top: 20px;
margin-left: 0;
}
}
}
}
@media (min-width: 751px) and (max-width: 1200px) {
2 years ago
.footer {
.info {
flex-direction: column;
.column {
margin-top: 20px;
margin-left: 0;
}
}
}
}
2 years ago
@media (max-width: 320px) {
2 years ago
.contact {
.inner {
.title {
h6 {
font-size: 1.5rem;
}
.text {
font-size: 2rem;
margin-top: -1.25rem;
}
}
2 years ago
}
}
}
2 years ago
</style>