|
@@ -1,49 +1,294 @@
|
|
|
<template>
|
|
|
-<div class='Home'>
|
|
|
-
|
|
|
-</div>
|
|
|
+ <div class="Home">
|
|
|
+ <!-- 轮播组件 -->
|
|
|
+ <el-carousel>
|
|
|
+ <el-carousel-item v-for="item in 4" :key="item">
|
|
|
+ <img :src="require(`@/assets/images/swiper${item}.jpg`)" alt="" />
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ <!-- 底部 -->
|
|
|
+ <div class="bottomNav">
|
|
|
+ <div class="t1">
|
|
|
+ <div class="title">
|
|
|
+ <span>Reservation</span>
|
|
|
+ </div>
|
|
|
+ <div class="info">
|
|
|
+ <div class="p">
|
|
|
+ <img src="../../assets/images/bott1.jpg" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="d">
|
|
|
+ <p class="n1">
|
|
|
+ Online Reservation
|
|
|
+ <a
|
|
|
+ href="http://www.capitalmuseum.org.cn/capitalmuseum/englishwsyy/wsyy.jsp"
|
|
|
+ target="_blank"
|
|
|
+ >Click Here</a
|
|
|
+ >
|
|
|
+ </p>
|
|
|
+ <p class="n2">Telephone Reservation</p>
|
|
|
+ <p class="n3">Individual <span>+86 (10) 63393339</span></p>
|
|
|
+ <p class="n3">Group <span>+86 (10) 63370458</span></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="t2">
|
|
|
+ <div class="title">
|
|
|
+ <span>Visit Info</span>
|
|
|
+ </div>
|
|
|
+ <div class="info">
|
|
|
+ <div class="p">
|
|
|
+ <img src="../../assets/images/bott2.jpg" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="d">
|
|
|
+ <p class="n4">Opening Hours 09:00-17:00</p>
|
|
|
+ <p class="n5">No admission after 16:00</p>
|
|
|
+ <p class="n5">Closed on Monday</p>
|
|
|
+ <p class="n6">Phone</p>
|
|
|
+ <p>+86 (10) 63370491</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="t3">
|
|
|
+ <div class="title">
|
|
|
+ <span>Partners & Connections</span>
|
|
|
+ </div>
|
|
|
+ <div class="info">
|
|
|
+ <div class="p">
|
|
|
+ <img src="../../assets/images/bott3.jpg" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="d">
|
|
|
+ <p class="n7">Partners & Connections</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="t4">
|
|
|
+ <div class="title">
|
|
|
+ <span>Events</span>
|
|
|
+ </div>
|
|
|
+ <div class="info">
|
|
|
+ <div class="p">
|
|
|
+ <img src="../../assets/images/bott4.jpg" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="d">
|
|
|
+ <p class="n8">Partners & Connections</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
-name:'Home',
|
|
|
-components: {},
|
|
|
-data() {
|
|
|
-//这里存放数据
|
|
|
-return {
|
|
|
-
|
|
|
+ name: "Home",
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ //这里存放数据
|
|
|
+ return {};
|
|
|
+ },
|
|
|
+ //监听属性 类似于data概念
|
|
|
+ computed: {},
|
|
|
+ //监控data中的数据变化
|
|
|
+ watch: {},
|
|
|
+ //方法集合
|
|
|
+ methods: {},
|
|
|
+ //生命周期 - 创建完成(可以访问当前this实例)
|
|
|
+ created() {},
|
|
|
+ //生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
+ mounted() {},
|
|
|
+ beforeCreate() {}, //生命周期 - 创建之前
|
|
|
+ beforeMount() {}, //生命周期 - 挂载之前
|
|
|
+ beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
+ updated() {}, //生命周期 - 更新之后
|
|
|
+ beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
+ destroyed() {}, //生命周期 - 销毁完成
|
|
|
+ activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|
|
|
-},
|
|
|
-//监听属性 类似于data概念
|
|
|
-computed: {},
|
|
|
-//监控data中的数据变化
|
|
|
-watch: {},
|
|
|
-//方法集合
|
|
|
-methods: {
|
|
|
-
|
|
|
-},
|
|
|
-//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
-created() {
|
|
|
-
|
|
|
-},
|
|
|
-//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
-mounted() {
|
|
|
-
|
|
|
-},
|
|
|
-beforeCreate() {}, //生命周期 - 创建之前
|
|
|
-beforeMount() {}, //生命周期 - 挂载之前
|
|
|
-beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
-updated() {}, //生命周期 - 更新之后
|
|
|
-beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
-destroyed() {}, //生命周期 - 销毁完成
|
|
|
-activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
-}
|
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
|
-.Home{
|
|
|
+.Home {
|
|
|
+ position: relative;
|
|
|
width: 100%;
|
|
|
height: calc(100% - 45px);
|
|
|
background-color: black;
|
|
|
-}
|
|
|
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+ }
|
|
|
+ .bottomNav {
|
|
|
+ padding: 0 100px;
|
|
|
+ background-color: rgba(0, 0, 0, 0.8);
|
|
|
+ width: 100%;
|
|
|
+ height: 55px;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 999;
|
|
|
+ display: flex;
|
|
|
+ & > div {
|
|
|
+ cursor: pointer;
|
|
|
+ width: 25%;
|
|
|
+ height: 58px;
|
|
|
+ position: relative;
|
|
|
+ transform: translateY(-3px);
|
|
|
+ .title {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #fff;
|
|
|
+ line-height: 55px;
|
|
|
+ text-align: center;
|
|
|
+ width: 100%;
|
|
|
+ span {
|
|
|
+ padding-left: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .info {
|
|
|
+ transition: all 0.3s;
|
|
|
+ height: 0;
|
|
|
+ overflow: hidden;
|
|
|
+ width: 100%;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 99;
|
|
|
+ .d {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #ccc;
|
|
|
+ background: #000;
|
|
|
+ padding: 20px;
|
|
|
+ }
|
|
|
+ .p {
|
|
|
+ img {
|
|
|
+ vertical-align: bottom;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .t1:hover .info {
|
|
|
+ height: 320px;
|
|
|
+ }
|
|
|
+ .t2:hover .info {
|
|
|
+ height: 320px;
|
|
|
+ }
|
|
|
+ .t3:hover .info {
|
|
|
+ height: 270px;
|
|
|
+ }
|
|
|
+ .t4:hover .info {
|
|
|
+ height: 270px;
|
|
|
+ }
|
|
|
+ .t1 {
|
|
|
+ .title {
|
|
|
+ span {
|
|
|
+ background: url("../../assets/images/bottom_ico1.png") no-repeat left
|
|
|
+ center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .p {
|
|
|
+ border-bottom: 3px solid #1116e5;
|
|
|
+ }
|
|
|
+ border-top: 3px solid #1116e5;
|
|
|
+ }
|
|
|
+ .t2 {
|
|
|
+ .title {
|
|
|
+ span {
|
|
|
+ background: url("../../assets/images/bottom_ico2.png") no-repeat left
|
|
|
+ center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .p {
|
|
|
+ border-bottom: 3px solid #a211e5;
|
|
|
+ }
|
|
|
+ border-top: 3px solid #a211e5;
|
|
|
+ }
|
|
|
+ .t3 {
|
|
|
+ .title {
|
|
|
+ span {
|
|
|
+ background: url("../../assets/images/bottom_ico3.png") no-repeat left
|
|
|
+ center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .p {
|
|
|
+ border-bottom: 3px solid #229382;
|
|
|
+ }
|
|
|
+ .d {
|
|
|
+ padding-top: 40px !important;
|
|
|
+ padding-bottom: 40px !important;
|
|
|
+ }
|
|
|
+ border-top: 3px solid #229382;
|
|
|
+ }
|
|
|
+ .t4 {
|
|
|
+ .title {
|
|
|
+ span {
|
|
|
+ background: url("../../assets/images/bottom_ico4.png") no-repeat left
|
|
|
+ center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .p {
|
|
|
+ border-bottom: 3px solid #7a9322;
|
|
|
+ }
|
|
|
+ .d {
|
|
|
+ padding-top: 40px !important;
|
|
|
+ padding-bottom: 40px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ border-top: 3px solid #7a9322;
|
|
|
+ }
|
|
|
+ p {
|
|
|
+ margin-bottom: 5px;
|
|
|
+ }
|
|
|
+ .n1 {
|
|
|
+ line-height: 30px;
|
|
|
+ background: url(../../assets/images/bottom_sub_ico1.png) no-repeat left
|
|
|
+ center;
|
|
|
+ text-indent: 25px;
|
|
|
+ & > a {
|
|
|
+ color: #ff0000;
|
|
|
+ text-decoration: underline;
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .n2 {
|
|
|
+ line-height: 30px;
|
|
|
+ background: url(../../assets/images/bottom_sub_ico2.png) no-repeat left
|
|
|
+ center;
|
|
|
+ text-indent: 25px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+ .n3 {
|
|
|
+ width: 200px;
|
|
|
+ margin-bottom: 5px;
|
|
|
+ & > span {
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .n4 {
|
|
|
+ line-height: 30px;
|
|
|
+ background: url(../../assets/images/bottom_sub_ico3.png) no-repeat left
|
|
|
+ center;
|
|
|
+ text-indent: 25px;
|
|
|
+ }
|
|
|
+ .n5 {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #828282;
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
+ .n6 {
|
|
|
+ line-height: 30px;
|
|
|
+ background: url(../../assets/images/bottom_sub_ico2.png) no-repeat left
|
|
|
+ center;
|
|
|
+ text-indent: 25px;
|
|
|
+ }
|
|
|
+ .n7 {
|
|
|
+ font-size: 18px;
|
|
|
+ background: url(../../assets/images/bottom_ico3.png) no-repeat left center;
|
|
|
+ padding-left: 30px;
|
|
|
+ }
|
|
|
+ .n8 {
|
|
|
+ font-size: 18px;
|
|
|
+ background: url(../../assets/images/bottom_ico4.png) no-repeat left center;
|
|
|
+ padding-left: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|