- {{item.title}}
+
+
+
![]()
+
+
+ {{item.enTitle}}
+
diff --git a/src/views/index/components/teaching_student.vue b/src/views/index/components/teaching_student.vue
index a3e5efd..1af708b 100644
--- a/src/views/index/components/teaching_student.vue
+++ b/src/views/index/components/teaching_student.vue
@@ -98,15 +98,15 @@ export default {
console.log(res)
if (info.three ==null){
if (this.width){
- this.$router.push("/pc/" + info.second.encodeId +"?type=" + info.second.type);
+ this.$router.push("/pc/" + info.second.encodeId +"?type=" + info.second.type+"&lang="+sessionStorage.getItem("lang"));
}else {
- this.$router.push("/mobile/" + info.second.encodeId +"?type=" + info.second.type);
+ this.$router.push("/mobile/" + info.second.encodeId +"?type=" + info.second.type+"&lang="+sessionStorage.getItem("lang"));
}
}else {
if (this.width){
- this.$router.push("/pc/" + info.second.encodeId +"/" + info.three.encodeId + "?type=" + info.second.type);
+ this.$router.push("/pc/" + info.second.encodeId +"/" + info.three.encodeId + "?type=" + info.second.type+"&lang="+sessionStorage.getItem("lang"));
}else {
- this.$router.push("/mobile/" + info.second.encodeId + "/" + info.three.encodeId + "?type=" + info.second.type);
+ this.$router.push("/mobile/" + info.second.encodeId + "/" + info.three.encodeId + "?type=" + info.second.type+"&lang="+sessionStorage.getItem("lang"));
}
}
})
@@ -130,15 +130,15 @@ export default {
console.log(info)
if (info.three == null){
if (this.width){
- this.$router.push("/pc/" + info.second.encodeId +"?id="+news.id + "&type=" + info.second.type);
+ this.$router.push("/pc/" + info.second.encodeId +"?id="+news.id + "&type=" + info.second.type+"&lang="+sessionStorage.getItem("lang"));
}else {
- this.$router.push("/mobile/" + info.second.encodeId +"?id="+news.id + "&type=" + info.second.type);
+ this.$router.push("/mobile/" + info.second.encodeId +"?id="+news.id + "&type=" + info.second.type+"&lang="+sessionStorage.getItem("lang"));
}
}else {
if (this.width){
- this.$router.push("/pc/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id);
+ this.$router.push("/pc/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id+"&lang="+sessionStorage.getItem("lang"));
}else {
- this.$router.push("/mobile/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id);
+ this.$router.push("/mobile/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id+"&lang="+sessionStorage.getItem("lang"));
}
}
diff --git a/src/views/index/index.vue b/src/views/index/index.vue
index 7ed8f57..304a6db 100644
--- a/src/views/index/index.vue
+++ b/src/views/index/index.vue
@@ -48,6 +48,7 @@ import SlideshowCard from './components/slideshow_card.vue'
import TeachingStudent from './components/teaching_student.vue'
import Bottom from './components/bottom.vue'
import {getConfig} from "@/api";
+import {setAppLanguage, setLanguage} from "@/utils/sist";
export default {
name: "index",
@@ -71,6 +72,7 @@ export default {
window.removeEventListener('scroll', this.handleScroll)
},
created() {
+ setLanguage(this)
getConfig("sist_bg").then(res=>{
this.imageUrl = res.data
})
@@ -92,7 +94,6 @@ export default {
methods: {
handleScroll() {
this.iftop = window.pageYOffset > 400
- console.log(window.pageYOffset)
this.$emit("input", window.pageYOffset)
},
backTop() {
diff --git a/src/views/mobile/index.vue b/src/views/mobile/index.vue
index 09329c9..c81cf9c 100644
--- a/src/views/mobile/index.vue
+++ b/src/views/mobile/index.vue
@@ -57,7 +57,7 @@ import DireData from '@/views/content/components/dire_data.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} from "@/utils/sist";
+import {getParentNode, setLanguage} from "@/utils/sist";
export default {
name: "index",
@@ -115,13 +115,13 @@ export default {
}
},
created() {
+ setLanguage(this)
this.secondId = this.$route.params && this.$route.params.secondId;
this.navId = this.$route.params && this.$route.params.navId;
this.type = this.$route.query && this.$route.query.type
setTimeout(() => {
this.init()
}, 200);
-
},
methods: {
init(){