页脚统一

master
yujialong 11 months ago
parent e8382c1d05
commit fcb57d5c91
  1. BIN
      src/assets/images/logo3.png
  2. BIN
      src/assets/images/qrcode.png
  3. 285
      src/layouts/footer/index.vue

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

@ -1,83 +1,47 @@
<template> <template>
<div> <div class="footer">
<div v-if="showDefaultPath.includes($route.path)" <div class="info">
class="footer"> <div class="left">
<div class="relative"> <img class="logo"
<div class="info"> src="@/assets/images/logo3.png"
<div class="leftBox"> alt="">
<img class="m-b-20" <div class="texts">
style="width: 300px" <div class="line">
src="@/assets/images/iasf.png" <img class="icon"
src="@/assets/images/address.png"
alt=""> alt="">
<p class="meta">Copyright ©2002- 2021</p> 深圳市光明区新湖街道圳圆路268号3号楼
<p class="meta">Institute of Advanced Science Facilities, ShenzhenIASF</p>
<p class="meta">Tel400-0010-998</p>
</div> </div>
<div class="column-wrap"> <div class="line">
<template v-for="(item, i) in columns"> <img class="icon"
<div v-if="isIasf || (!isIasf && i < 5)" src="@/assets/images/tel.png"
:key="i" alt="">
class="column"> 0755-21096000
<h6 @click="columnTo(item)">{{ item.columnName }}</h6> </div>
<ul v-if="item.children.length && !isIasf" <div class="line">
class="children"> <img class="icon"
<li v-for="(column, j) in item.children" src="@/assets/images/mail.png"
:key="j" alt="">
@click="columnTo(column)">{{ column.columnName }}</li> gad@mail.iasf.ac.cn
</ul>
</div>
</template>
</div> </div>
</div> </div>
<a class="copyright">粤ICP备2020131940号 粤公安网34565432456765432号</a>
</div> </div>
</div> <div class="qrcodes">
<div class="item">
<div v-if="showContactPath.includes($route.path)" <img class="qrcode"
class="contact"> src="@/assets/images/qrcode.png"
<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=""> alt="">
<p class="name">Shenzhen</p> <p class="text">官方公众号</p>
</div> </div>
<div class="info"> <div class="item">
<img class="logo" <img class="qrcode"
src="@/assets/images/logo.png" src="@/assets/images/qrcode.png"
alt=""> alt="">
<div class="texts"> <p class="text">官方微信</p>
<div class="lines">
<div class="line">
<img class="icon"
src="@/assets/images/mail.png"
alt="">
Email: {{ isSfel ? 'fel@mail.iasf.ac.cn' : 'std@mail.iasf.ac.cn' }}
</div>
<div class="line">
<img class="icon"
src="@/assets/images/tel.png"
alt="">
Telephone: {{ isSfel ? '0755-21096052' : '0086-755-21096026' }}
</div>
<div class="line">
<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' }}
</div>
</div>
<div class="qrcode">
<!-- <img src="@/assets/images/about/qrcode.png" alt=""> -->
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="copyright">Copyright ©深圳综合粒子设施研究院 粤ICP备2020131940号 粤公安网34565432456765432号</div>
</div> </div>
</template> </template>
<script> <script>
@ -210,173 +174,64 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.leftBox {
margin-right: 100px;
}
.footer { .footer {
z-index: 2; z-index: 2;
position: relative;
padding: 64px 20% 25px;
color: #fff;
background-color: #091733; background-color: #091733;
overflow: hidden; border-top: 10px solid #2870ff;
.logo {
width: 180px;
}
.info { .info {
display: flex; display: flex;
} justify-content: space-between;
.meta { align-items: center;
margin-bottom: 10px; width: 1200px;
font-size: 14px; padding: 20px 0;
}
.column-wrap {
display: inline-flex;
flex-wrap: wrap;
}
.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;
}
&.iasf {
padding-top: 50px;
background: url(http://10.10.11.7/images/iasf/footer.jpg) 0 -400px/100% auto no-repeat;
background-color: #091733;
.children {
li {
color: #fff;
}
}
.mask {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.6);
}
}
}
.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; margin: 0 auto;
color: #fff;
} }
.title { .left {
width: 419px; display: inline-flex;
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; align-items: center;
font-size: 20px;
color: #fff;
img {
margin-right: 20px;
}
} }
.info { .texts {
margin: 55px 0 0 8px; padding: 30px;
.texts { margin-left: 20px;
display: flex; border-left: 2px solid #ccc;
align-items: center;
margin-top: 24px;
}
.item {
margin-right: 75px;
}
.line { .line {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 20px; margin-bottom: 10px;
font-size: 16px; font-size: 14px;
color: #fff; color: #fff;
&:last-child {
margin-bottom: 0;
}
img { img {
margin-right: 8px; margin-right: 8px;
} }
} }
} }
.qrcode { .qrcodes {
display: flex;
justify-content: center;
text-align: center; text-align: center;
.text { font-size: 12px;
margin-top: 10px; .item {
font-size: 12px; margin-right: 15px;
color: #fff; }
.qrcode {
width: 100px;
height: 100px;
margin-bottom: 10px;
} }
} }
.copyright {
padding: 16px 0;
font-size: 14px;
color: #c3c3c3;
text-align: center;
background-image: linear-gradient(to bottom, rgb(16, 41, 93), rgb(10, 24, 54) 40%);
}
} }
// @media (max-width: 1500px) {
// .footer {
// padding: 64px 10% 25px;
// }
// }
// @media (max-width: 1350px) {
// .inner {
// width: 100% !important;
// .title {
// width: 100%;
// text-align: center;
// }
// .region {
// top: 300px;
// left: 50%;
// }
// .info {
// margin-top: 90px;
// }
// }
// .footer {
// .info {
// flex-direction: column;
// .column {
// margin-top: 20px;
// margin-left: 0;
// }
// }
// }
// .entry {
// flex-direction: column;
// li {
// margin-bottom: 30px;
// }
// }
// }
</style> </style>
Loading…
Cancel
Save