From 3127624686437c693e9f901a53199a12a6b0934e Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Fri, 22 Sep 2023 15:44:01 +0800
Subject: [PATCH] fix
---
public/index.html | 1 +
src/layouts/footer/index.vue | 31 +++++++++++++++++---------
src/layouts/header/index.vue | 5 ++---
src/layouts/home/index.vue | 24 +++++++++++---------
src/pages/column/index.vue | 4 ++--
src/pages/overviewDevHistory/index.vue | 19 +++++++++++-----
src/pages/overviewIntro/index.vue | 2 +-
7 files changed, 53 insertions(+), 33 deletions(-)
diff --git a/public/index.html b/public/index.html
index 9da50fa..12b5e6c 100644
--- a/public/index.html
+++ b/public/index.html
@@ -7,6 +7,7 @@
+
粒子研究院
diff --git a/src/layouts/footer/index.vue b/src/layouts/footer/index.vue
index 282763e..2e1f5c2 100644
--- a/src/layouts/footer/index.vue
+++ b/src/layouts/footer/index.vue
@@ -53,16 +53,20 @@
Institute of Advanced Science Facilities, ShenzhenIASF
Tel:400-0010-998
-
-
{{ item.columnName }}
-
- - {{ column.columnName }}
-
+
+
+
+
{{ item.columnName }}
+
+ - {{ column.columnName }}
+
+
+
粤ICP备2020131940号 粤公安网34565432456765432号
@@ -161,7 +165,8 @@ export default {
typeId: '',
isSort: 1
}).then(({ data }) => {
- this.columns = data.slice(0, 5)
+ // this.columns = data.slice(0, 5)
+ this.columns = data
}).catch(err => { })
},
// 获取iasf中文首页应用模块数据
@@ -261,6 +266,10 @@ export default {
margin-bottom: 10px;
font-size: 14px;
}
+ .column-wrap {
+ display: inline-flex;
+ flex-wrap: wrap;
+ }
.column {
margin: 0 20px;
h6 {
diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue
index dc4e454..fbbb302 100644
--- a/src/layouts/header/index.vue
+++ b/src/layouts/header/index.vue
@@ -7,11 +7,9 @@
alt="">
-
-
@@ -165,7 +163,8 @@ export default {
'setKeyword'
]),
toIndex () {
- this.$refs.nav.jump()
+ location.href = this.$router.resolve(`/column?siteId=${Util.isEn(this.site) ? 1 : 2}`).href
+ location.reload()
},
stop () {
diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue
index e4eee76..b25095a 100644
--- a/src/layouts/home/index.vue
+++ b/src/layouts/home/index.vue
@@ -2,7 +2,8 @@
-
+
@@ -18,7 +19,7 @@ import vHead from '../header'
import vFooter from '../footer'
import { mapMutations } from 'vuex'
export default {
- data() {
+ data () {
return {
enSite: [1, 4, 6] // 英文站点id
};
@@ -28,11 +29,11 @@ export default {
vFooter
},
computed: {
- isHome() {
+ isHome () {
return Util.isIndex()
},
},
- mounted() {
+ mounted () {
this.$route.query.siteId && this.setSite(this.$route.query.siteId)
document.body.onclick = e => {
e.stopPropagation()
@@ -43,11 +44,11 @@ export default {
...mapMutations('content', [
'setSite'
]),
- handleClass() {
+ handleClass () {
return this.enSite.includes(+this.$route.query.siteId || this.$store.state.content.site)
},
// 长时间未操作,自动退出登录
- autoLogout() {
+ autoLogout () {
let lastTime = new Date().getTime();
document.onmousedown = () => {
lastTime = new Date().getTime();
@@ -64,10 +65,13 @@ export default {
};
\ No newline at end of file
diff --git a/src/pages/column/index.vue b/src/pages/column/index.vue
index 0673451..adbf0da 100644
--- a/src/pages/column/index.vue
+++ b/src/pages/column/index.vue
@@ -135,8 +135,8 @@
-
-
+
diff --git a/src/pages/overviewDevHistory/index.vue b/src/pages/overviewDevHistory/index.vue
index bcbea07..fda6ba5 100644
--- a/src/pages/overviewDevHistory/index.vue
+++ b/src/pages/overviewDevHistory/index.vue
@@ -45,11 +45,13 @@
{{ e.title }}
{{ e.des }}
-
-
+
+
+
+
@@ -199,9 +201,14 @@ export default {
transform: rotate(45deg);
}
}
- .pic {
+ .pic-wrap {
width: 17.5rem;
height: 9.75rem;
+ text-align: center;
+ }
+ .pic {
+ // width: 17.5rem;
+ height: 100%;
}
}
}
diff --git a/src/pages/overviewIntro/index.vue b/src/pages/overviewIntro/index.vue
index 73862c4..b994656 100644
--- a/src/pages/overviewIntro/index.vue
+++ b/src/pages/overviewIntro/index.vue
@@ -21,7 +21,7 @@