<template> <div> <div v-if="showDefaultPath.includes($route.path)" class="footer"> <div class="info"> <div style="margin-right: 100px"> <img class="m-b-20" src="@/assets/images/iasf.png" alt=""> <p class="meta">Copyright ©2002- 2021</p> <p class="meta">Institute of Advanced Science Facilities, ShenzhenIASF</p> <p class="meta">Tel:400-0010-998</p> </div> <div v-for="(item, i) in columns" :key="i" class="column"> <h6 @click="columnTo(item)">{{ item.columnName }}</h6> <ul v-if="item.children.length" class="children"> <li v-for="(column, j) in item.children" :key="j" @click="columnTo(column)">{{ column.columnName }}</li> </ul> </div> </div> <a class="copyright">粤ICP备2020131940号 粤公安网34565432456765432号</a> </div> <div v-if="showContactPath.includes($route.path)" class="contact"> <div class="inner"> <div class="title"> <h6>Contact us</h6> <p class="text">CONTACT US</p> </div> <div class="region"> <img class="dot" src="@/assets/images/dot.png" alt=""> <p class="name">Shenzhen</p> </div> <div class="info"> <img class="logo" src="@/assets/images/logo.png" alt=""> <div class="texts"> <div class="lines"> <div class="line"> <img class="icon" src="@/assets/images/mail.png" alt=""> Email: std@mail.iasf.ac.cn </div> <div class="line"> <img class="icon" src="@/assets/images/tel.png" alt=""> Telephone: 0086-755-21096026 </div> <div class="line"> <img class="icon" src="@/assets/images/address.png" alt=""> Address: 268 Zhenyuan St, Building A3, Floor 3-6, Guangming District, Shenzhen, Guangdong, P.R.China </div> </div> <div class="qrcode"> <!-- <img src="@/assets/images/about/qrcode.png" alt=""> --> </div> </div> </div> </div> </div> </div> </template> <script> import mixins from '@/mixins/article' export default { mixins: [mixins], data() { return { showDefaultPath: ['/home'], // 展示默认页脚的页面 showContactPath: ['/news', '/sfel', '/talent', '/about', '/careers', '/edu', '/news'], // 展示联系我们页脚的页面 columns: [], }; }, mounted(){ this.getColumn() }, methods: { // 资讯 getColumn() { this.$post(this.api.listWithTreeMenuVisible, { siteId: this.$route.query.siteId || this.$store.state.content.site, columnName: '', templateId: '', typeId : '', isSort: 1 }).then(({ data }) => { this.columns = data.slice(0, 6) }).catch(err => {}) }, }, }; </script> <style lang="scss" scoped> .footer{ padding: 64px 10% 25px; color: #fff; background-color: #091733; overflow: hidden; .info { display: flex; } .meta { margin-bottom: 10px; font-size: 14px; } .column { margin: 0 20px; h6 { margin-bottom: 20px; font-size: 16px; white-space: nowrap; cursor: pointer; } } .children { li { margin: 12px 0; font-size: 14px; color: #6D7384; white-space: nowrap; cursor: pointer; } } .copyright { font-size: 14px; color: #6D7384; } } .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; } .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; } } .region { position: absolute; top: 152px; left: 70%; display: flex; align-items: center; font-size: 20px; color: #fff; img { margin-right: 20px; } } .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; } } } .qrcode { text-align: center; .text { margin-top: 10px; font-size: 12px; color: #fff; } } } </style>