clay commit : 解决有三级菜单时跳转出现问题
This commit is contained in:
@@ -105,10 +105,11 @@ export function toArticle(news, width) {
|
|||||||
vm.$router.push("/mobile/" + info.second.encodeId + "?id=" + news.id + "&type=" + info.second.type + "&lang=" + sessionStorage.getItem("lang"));
|
vm.$router.push("/mobile/" + info.second.encodeId + "?id=" + news.id + "&type=" + info.second.type + "&lang=" + sessionStorage.getItem("lang"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
console.log(info.three,"toArticle,info.three")
|
||||||
if (width) {
|
if (width) {
|
||||||
vm.$router.push("/pc/" + info.second.encodeId + "/" + info.three.encodeId + "&id=" + news.id + "?type=" + info.second.type + "&lang=" + sessionStorage.getItem("lang"));
|
vm.$router.push("/pc/" + info.second.encodeId + "/" + info.three.encodeId + "?id=" + news.id + "&lang=" + sessionStorage.getItem("lang"));
|
||||||
} else {
|
} else {
|
||||||
vm.$router.push("/mobile/" + info.second.encodeId + "/" + info.three.encodeId + "&id=" + news.id + "?type=" + info.second.type + "&lang=" + sessionStorage.getItem("lang"));
|
vm.$router.push("/mobile/" + info.second.encodeId + "/" + info.three.encodeId + "?id=" + news.id + "&lang=" + sessionStorage.getItem("lang"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
<el-col :span="6" v-for="(item,index) in newsData" :key="index">
|
<el-col :span="6" v-for="(item,index) in newsData" :key="index">
|
||||||
<div class="news_context" @click="getArticle(item)">
|
<div class="news_context" @click="getArticle(item)">
|
||||||
<div class="news_context_img">
|
<div class="news_context_img">
|
||||||
<img v-if="!item.imgurl" src="../../../assets/index/news_center/t4.png" alt="">
|
|
||||||
<img v-if="item.imgurl" :src="item.imgurl" alt="">
|
<img v-if="item.imgurl" :src="item.imgurl" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="news_context_text" style="border-right: 1px solid #CCCCCC;">
|
<div class="news_context_text" style="border-right: 1px solid #CCCCCC;">
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ export default {
|
|||||||
window.location.href = link;//当前标签页
|
window.location.href = link;//当前标签页
|
||||||
},
|
},
|
||||||
getArticle(news) {
|
getArticle(news) {
|
||||||
|
console.log(news)
|
||||||
toArticle(news, this.width);
|
toArticle(news, this.width);
|
||||||
},
|
},
|
||||||
lookMore(str) {
|
lookMore(str) {
|
||||||
|
|||||||
Reference in New Issue
Block a user