|
@@ -0,0 +1,139 @@
|
|
|
+<template>
|
|
|
+ <div class="Publications">
|
|
|
+ <div class="ban"></div>
|
|
|
+ <div class="nav_2">
|
|
|
+ <ul>
|
|
|
+ <li
|
|
|
+ :class="{ cur: $route.meta.nameAll === item.name }"
|
|
|
+ v-for="(item, index) in topLi"
|
|
|
+ :key="index"
|
|
|
+ @click="skip(item.path)"
|
|
|
+ >
|
|
|
+ <img :src="`/data/Publications/${index + 1}.png`" alt="" />
|
|
|
+ <p>{{ item.name }}</p>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <!-- 面包屑 -->
|
|
|
+ <div class="pos">
|
|
|
+ <span class="pos1">Your Position: </span>
|
|
|
+ <Router-link to="/Layout/Home">Home></Router-link>
|
|
|
+ <Router-link to="/Layout/Publications/1">Publications></Router-link>
|
|
|
+ <span class="jump" @click="backUrl">{{ $route.meta.nameAll }}></span>
|
|
|
+ </div>
|
|
|
+ <!-- 二级嵌套路由 -->
|
|
|
+ <Router-view />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: "Publications",
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ //这里存放数据
|
|
|
+ return {
|
|
|
+ path: "",
|
|
|
+ topLi: [
|
|
|
+ { name: "Magazines", path: "/Layout/Publications/1" },
|
|
|
+ { name: "Exhibition Catalogues", path: "/Layout/Publications/2" },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //监听属性 类似于data概念
|
|
|
+ computed: {},
|
|
|
+ //监控data中的数据变化
|
|
|
+ watch: {},
|
|
|
+ //方法集合
|
|
|
+ methods: {
|
|
|
+ skip(url) {
|
|
|
+ this.$router.push(url).catch(() => {});
|
|
|
+ },
|
|
|
+ backUrl() {
|
|
|
+ if (this.$route.path === "/Layout/PublicationsInfo") {
|
|
|
+ let temp
|
|
|
+ let id =this.$route.query.id
|
|
|
+ id = Number(id)
|
|
|
+ if(id>=1&&id<=5) temp =2021
|
|
|
+ else if(id<=11) temp =2020
|
|
|
+ else if(id<=17) temp =2019
|
|
|
+ else if(id<=23) temp =2018
|
|
|
+ else temp =2017
|
|
|
+ this.$router.push({
|
|
|
+ name: "Publications1",
|
|
|
+ query: { k:temp },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ //生命周期 - 创建完成(可以访问当前this实例)
|
|
|
+ created() {},
|
|
|
+ //生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
+ mounted() {},
|
|
|
+ beforeCreate() {}, //生命周期 - 创建之前
|
|
|
+ beforeMount() {}, //生命周期 - 挂载之前
|
|
|
+ beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
+ updated() {}, //生命周期 - 更新之后
|
|
|
+ beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
+ destroyed() {}, //生命周期 - 销毁完成
|
|
|
+ activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang='less' scoped>
|
|
|
+.Publications {
|
|
|
+ .ban {
|
|
|
+ width: 100%;
|
|
|
+ margin: auto;
|
|
|
+ background: url("/data/Publications/banner.jpg") no-repeat center top
|
|
|
+ #000000;
|
|
|
+ height: 218px;
|
|
|
+ }
|
|
|
+ .nav_2 {
|
|
|
+ width: 100%;
|
|
|
+ padding-bottom: 8px;
|
|
|
+ background: url("../../assets/images/Visit/bg_3.png") left bottom repeat-x
|
|
|
+ #f1f1f1;
|
|
|
+ overflow: hidden;
|
|
|
+ zoom: 1;
|
|
|
+ & > ul {
|
|
|
+ display: flex;
|
|
|
+ width: 1180px;
|
|
|
+ margin: 0 auto;
|
|
|
+ & > li {
|
|
|
+ background: #f1f1f1;
|
|
|
+ cursor: pointer;
|
|
|
+ width: 168px;
|
|
|
+ height: 108px;
|
|
|
+ text-align: center;
|
|
|
+ & > img {
|
|
|
+ margin-top: 25px;
|
|
|
+ // width: 49px;
|
|
|
+ // height: 39px;
|
|
|
+ }
|
|
|
+ & > p {
|
|
|
+ margin-top: 5px;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 18px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .cur {
|
|
|
+ background: url("../../assets/images/Visit/bg_1.jpg") center top
|
|
|
+ no-repeat #f1f1f1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .pos {
|
|
|
+ height: 28px;
|
|
|
+ line-height: 28px;
|
|
|
+ font-size: 12px;
|
|
|
+ margin: 0 auto 10px auto;
|
|
|
+ width: 1180px;
|
|
|
+ .pos1 {
|
|
|
+ color: #c20e11;
|
|
|
+ }
|
|
|
+ .jump{
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|