修改细节
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
<script>
|
||||
import {getArticleList, info} from "@/api";
|
||||
import {parseTime} from '@/utils/ebts'
|
||||
import {getParentNode} from "@/utils/sist";
|
||||
import {toArticle,lookMoreComment} from "@/utils/sist";
|
||||
|
||||
export default {
|
||||
name: "scientific_research_trends",
|
||||
@@ -169,26 +169,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
|
||||
lookMore(news){
|
||||
info(news.id).then(res=>{
|
||||
let info = getParentNode(res.data.encodeId)
|
||||
console.log(res)
|
||||
if (info.three ==null){
|
||||
if (this.width){
|
||||
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+"&lang="+sessionStorage.getItem("lang"));
|
||||
}
|
||||
}else {
|
||||
if (this.width){
|
||||
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+"&lang="+sessionStorage.getItem("lang"));
|
||||
}
|
||||
}
|
||||
})
|
||||
getArticle(news){
|
||||
toArticle(news,this.width)
|
||||
},
|
||||
lookMore(news) {
|
||||
lookMoreComment(news,this.width)
|
||||
},
|
||||
|
||||
getScientificList() {
|
||||
getArticleList({
|
||||
type: "VPteru0OeW6GgYObAewMupY",
|
||||
@@ -198,26 +184,6 @@ export default {
|
||||
this.scientificData = res.rows
|
||||
})
|
||||
},
|
||||
getArticle(news){
|
||||
info(news.id).then(res=>{
|
||||
let info = getParentNode(res.data.encodeId)
|
||||
console.log(info)
|
||||
if (info.three == null){
|
||||
if (this.width){
|
||||
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+"&lang="+sessionStorage.getItem("lang"));
|
||||
}
|
||||
}else {
|
||||
if (this.width){
|
||||
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+"&lang="+sessionStorage.getItem("lang"));
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
getAcademiaList() {
|
||||
getArticleList({
|
||||
type: "KBwgShsEiDolV91qmaWdWJc",
|
||||
|
||||
Reference in New Issue
Block a user