-
-
-
+
+
+
+
+
+
+

+
+
+
+
+
{{ $t('message.switch') }}
-
-

-
-
-

-
-
{{ $t('message.switch') }}
-
-
-
-
-
-
+
+
+
@@ -67,30 +78,33 @@ export default {
return {
drawer: false,
direction: 'ltr',
- mobile:document.documentElement.clientWidth <=992,
- menuData:[],
+ mobile: document.documentElement.clientWidth <= 992,
+ menuData: [],
};
},
created() {
- if (this.mobile){
- getNavigation({}).then(res=>{
+ if (this.mobile) {
+ getNavigation({}).then(res => {
this.menuData = res.data
- sessionStorage.setItem("menu",JSON.stringify(res.data))
+ sessionStorage.setItem("menu", JSON.stringify(res.data))
})
}
},
methods: {
- home(){
- this.$router.push("/home?lang="+sessionStorage.getItem("lang"))
+ home() {
+ this.$router.push("/home?lang=" + sessionStorage.getItem("lang"))
},
- clickSecondMenu(menu){
+ // 二级菜单点击
+ clickSecondMenu(menu) {
this.drawer = false
- this.$router.push("/mobile/" +menu.encodeId+"?type="+menu.type+"&lang="+sessionStorage.getItem("lang"));
+ this.$router.push("/mobile/" + menu.encodeId + "?type=" + menu.type + "&lang=" + sessionStorage.getItem("lang"));
},
- clickMenu(menu,parent){
+ //三级菜单点击
+ clickMenu(menu, parent) {
+ console.log("三级菜单点击")
this.drawer = false
- this.$router.push("/mobile/" +parent.encodeId+"/"+menu.encodeId+"&lang="+sessionStorage.getItem("lang"));
+ this.$router.push("/mobile/" + parent.encodeId + "/" + menu.encodeId + "?type=" + menu.type + "&lang=" + sessionStorage.getItem("lang"));
},
switchLang() {
let lang = ''
@@ -99,9 +113,9 @@ export default {
} else {
lang = 'en'
}
- sessionStorage.setItem("lang",lang)
+ sessionStorage.setItem("lang", lang)
let fullPath = this.$route.fullPath
- window.location.replace(fullPath.substr(0,fullPath.length-2)+lang)
+ window.location.replace(fullPath.substr(0, fullPath.length - 2) + lang)
},
handleOpen(key, keyPath) {
console.log(key, keyPath);
@@ -113,60 +127,69 @@ export default {
}
diff --git a/src/views/index/components/news_center.vue b/src/views/index/components/news_center.vue
index e9d0421..0fba469 100644
--- a/src/views/index/components/news_center.vue
+++ b/src/views/index/components/news_center.vue
@@ -20,71 +20,23 @@
-
+
-
信息引领,勇于拼领,勇于拼搏—信息搏…
-
为促进学生学业发展学生学业学生学业学生学业、给予2021年转专业同学有针对性的帮助,信息科学与技术学院于10月26日开展…
+
{{ item.title }}
+
-
2022-10-2
+
{{getDateTime(item.publishTime)}}
-
-
-
-

-
-
-
信息引领,勇于拼搏—信息搏…
-
为促进学生学业发展学生学业学生学业学生学业、给予2021年转专业同学有针对性的帮助,信息科学与技术学院于10月26日开展…
-
-
-
-
-
-
-
-
-

-
-
-
信息引领,勇于拼搏—信息搏…
-
为促进学生学业发展学生学业学生学业学生学业、给予2021年转专业同学有针对性的帮助,信息科学与技术学院于10月26日开展…
-
-
-
-
-
-
-
-
-

-
-
-
信息引领,勇于拼搏—信息搏…
-
为促进学生学业发展学生学业学生学业学生学业、给予2021年转专业同学有针对性的帮助,信息科学与技术学院于10月26日开展…
-
-
-
-
-
-
@@ -92,22 +44,20 @@
diff --git a/src/views/index/components/slideshow_card.vue b/src/views/index/components/slideshow_card.vue
index d161aaa..7a0b59a 100644
--- a/src/views/index/components/slideshow_card.vue
+++ b/src/views/index/components/slideshow_card.vue
@@ -198,39 +198,39 @@ export default {
}
}
-.one {
+.five {
z-index: 98;
left: 1%;
transform: scale(0.8);
}
-.two {
+.six {
z-index: 99;
left: 21%;
transform: scale(0.9);
}
-.three {
+.one {
left: 37%;
z-index: 100;
transform: scale(1);
border: 1px solid #DA2D2D;
}
-.four {
+.two {
z-index: 99;
left: 53%;
transform: scale(0.9);
}
-.five {
+.three {
left: 73%;
z-index: 98;
transform: scale(0.8);
}
-.six {
- left: 70%;
+.four {
+ left: 37%;
z-index: 96;
transform: scale(0.7);
}
@@ -271,33 +271,34 @@ export default {
}
- .one {
+ .five {
left: -1%;
}
- .two {
+ .six {
left: 15%;
}
- .three {
+ .one {
left: 31%;
}
- .four {
+ .two {
left: 47%;
}
- .five {
+ .three {
left: 63%;
}
- .six {
+ .four {
left: 31%;
}
}
}
+
@media screen and (max-width: 1100px) {
.banner-card {
height: 26rem;
@@ -314,27 +315,28 @@ export default {
-webkit-line-clamp: 2; //显示的行
}
}
- .one {
+
+ .five {
left: 4%;
}
- .two {
+ .six {
left: 17%;
}
- .three {
+ .one {
left: 30%;
}
- .four {
+ .two {
left: 43%;
}
- .five {
+ .three {
left: 56%;
}
- .six {
+ .four {
left: 10%;
}
}
diff --git a/src/views/mobile/index.vue b/src/views/mobile/index.vue
index 385919f..d2a7847 100644
--- a/src/views/mobile/index.vue
+++ b/src/views/mobile/index.vue
@@ -33,9 +33,11 @@
-
+
+
-
+
+
@@ -53,11 +55,13 @@
import {getNode, crumbs, article} from "@/api";
import Introduction from '@/views/content/components/Introduction.vue'
import List from '@/views/content/components/list.vue'
+import SimpleList from '@/views/content/components/simple_list.vue'
import DireData from '@/views/content/components/dire_data.vue'
+import DireDataTow from '@/views/content/components/dire_data_tow.vue'
import Details from '@/views/content/components/details.vue'
import FileList from '@/views/content/components/file_list.vue'
import {handleTree} from "@/utils/ebts";
-import {getParentNode, setLanguage} from "@/utils/sist";
+import {getParentNode, setLanguage, getNodeMenu} from "@/utils/sist";
export default {
name: "index",
@@ -66,12 +70,16 @@ export default {
List,
DireData,
Details,
- FileList
+ FileList,
+ DireDataTow,
+ SimpleList,
},
data() {
return {
width: document.documentElement.clientWidth,
navId: null,
+ dreDataType: "1",
+ listDataType: 0,
navList: [],
showIndex: 0,
contextData: {},
@@ -90,28 +98,56 @@ export default {
}
},
watch: {
+ // $route(to, from) {
+ // console.log(to, "路由跳转")
+ // this.secondId = this.$route.params && this.$route.params.secondId;
+ // this.navId = this.$route.params && this.$route.params.navId;
+ // let arcId = this.$route.query && this.$route.query.id
+ // this.type = this.$route.query && this.$route.query.type
+ // this.getCrumbs()
+ // if (this.type != null&&this.type!=0){
+ // console.log(111,this.navId)
+ // let info = getNodeMenu(this.navId);
+ // if (arcId != undefined) {
+ // this.getContext(arcId)
+ // } else {
+ // this.getContent(info)
+ // }
+ // return
+ // }
+ // if (arcId != undefined) {
+ // this.getContext(arcId)
+ // } else {
+ // this.menuData = getParentNode(this.navId)
+ // console.log(this.menuData, "menuData")
+ // this.getContent(this.menuData.three)
+ // }
+ // }
$route(to, from) {
- console.log(to)
-
+ console.log(to, "路由跳转")
this.secondId = this.$route.params && this.$route.params.secondId;
this.navId = this.$route.params && this.$route.params.navId;
let arcId = this.$route.query && this.$route.query.id
this.type = this.$route.query && this.$route.query.type
- if (this.type != null&&this.type!=0){
- let info = getParentNode(this.secondId);
+ this.getCrumbs()
+ if (this.type != null && this.type != 0) {
+ //当三级菜单id没有是,使用二级
if (arcId != undefined) {
+ console.log("getContext")
this.getContext(arcId)
- } else {
- this.getContent(info.second)
+ return;
+ }
+ let info = null;
+ if (this.navId == null) {
+ console.log("1")
+ info = getParentNode(this.secondId);
+ this.getContent(info.second)
+
+ } else {
+ console.log("2")
+ info = getParentNode(this.navId)
+ this.getContent(info.three)
}
- return
- }
- if (arcId != undefined) {
- this.getContext(arcId)
- } else {
- this.menuData = getParentNode(this.navId)
- console.log(this.menuData,"menuData")
- this.getContent(this.menuData.three)
}
}
},
@@ -125,34 +161,55 @@ export default {
}, 200);
},
methods: {
- init(){
- console.log(this.navId)
- this.menuData = getParentNode(this.navId)
+ init() {
+ let arcId = this.$route.params && this.$route.query.id
+ this.getCrumbs()
+ if (this.type != null && this.type != 0) {
+ //当三级菜单id没有是,使用二级
+ if (arcId != undefined) {
+ console.log("getContext")
+ this.getContext(arcId)
+ return;
+ }
+ let info = null;
+ if (this.navId == null) {
+ console.log("1")
+ info = getParentNode(this.secondId);
+ this.getContent(info.second)
+ } else {
+ console.log("2")
+ info = getParentNode(this.navId)
+ this.getContent(info.three)
+ }
+ //this.showSecond = false
+ // let info = null
+ // info = getParentNode(this.secondId);
+ // if (info == null) {
+ // location.reload();
+ // }
+ // let arcId = this.$route.query && this.$route.query.id
+ // if (arcId != undefined) {
+ // this.getContext(arcId)
+ // } else {
+ // this.getContent(this.menuData.three)
+ // }
+ // return
+ }
+ // let arcId = this.$route.params && this.$route.query.id
+ // if (arcId != undefined) {
+ // this.getContext(arcId)
+ // } else {
+ // console.log(this.menuData, "menuData")
+ // this.getContent(this.menuData.three)
+ // }
+ },
+ /**
+ * 获得面包屑导航
+ */
+ getCrumbs() {
crumbs(this.secondId).then(res => {
this.crumbs = res.data
})
- if (this.type != null&&this.type!=0){
- //this.showSecond = false
- let info =null
- info = getParentNode(this.secondId);
- if (info == null){
- location.reload();
- }
- let arcId = this.$route.query && this.$route.query.id
- if (arcId != undefined) {
- this.getContext(arcId)
- } else {
- this.getContent(info.second)
- }
- return
- }
- let arcId = this.$route.params && this.$route.query.id
- if (arcId != undefined) {
- this.getContext(arcId)
- } else {
- console.log(this.menuData,"menuData")
- this.getContent(this.menuData.three)
- }
},
getContext(arcId) {
@@ -169,14 +226,16 @@ export default {
this.contextData = null
this.bgImage = menu.link
let data = null
- if (this.type === 2||this.type === 4) {
+ if (this.type === 2 || this.type === 4) {
data = {
id: menu.encodeId,
pageNum: 1,
pageSize: 5
}
- if (this.type === 4){
- data.pageSize=10
+ this.listDataType = 0
+ if (this.type === 4||menu.isSimple == 1) {
+ data.pageSize = 20
+ this.listDataType = 1
}
} else {
data = {
@@ -184,7 +243,7 @@ export default {
}
}
getNode(data).then(res => {
- if (this.type === 2||this.type === 4) {
+ if (this.type === 2 || this.type === 4) {
this.contextData = {
data: res.rows,
total: res.total,
@@ -196,6 +255,11 @@ export default {
} else if (this.type == 1) {
this.contextData = res.data
} else if (this.type == 3) {
+ if (res.additional == "") {
+ this.dreDataType = "1"
+ } else {
+ this.dreDataType = res.additional
+ }
this.contextData = handleTree(res.data, "id", "pid", null, null)
}
})