001
This commit is contained in:
@@ -172,6 +172,7 @@ export default {
|
||||
}
|
||||
|
||||
.news_context {
|
||||
cursor: pointer;
|
||||
width: 23rem;
|
||||
height: 23rem;
|
||||
margin: 3rem auto;
|
||||
|
||||
@@ -158,11 +158,21 @@ export default {
|
||||
getArticle(news){
|
||||
info(news.id).then(res=>{
|
||||
let info = getParentNode(res.data.encodeId)
|
||||
if (this.width){
|
||||
this.$router.push("/pc/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id);
|
||||
console.log(info)
|
||||
if (info.three == null){
|
||||
if (this.width){
|
||||
this.$router.push("/pc/" + info.second.encodeId +"?id="+news.id + "&type=" + info.second.type);
|
||||
}else {
|
||||
this.$router.push("/mobile/" + info.second.encodeId +"?id="+news.id + "&type=" + info.second.type);
|
||||
}
|
||||
}else {
|
||||
this.$router.push("/mobile/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id);
|
||||
if (this.width){
|
||||
this.$router.push("/pc/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id);
|
||||
}else {
|
||||
this.$router.push("/mobile/" + info.second.encodeId +"/" +info.three.encodeId+"?id="+news.id);
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
getAcademiaList() {
|
||||
|
||||
Reference in New Issue
Block a user