11
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<el-col :xs="22" :sm="20" :md="20" :lg="18" :xl="14">
|
||||
<div class="slideshow">
|
||||
<el-carousel trigger="click" height="23.3vw">
|
||||
<el-carousel-item v-for="(item,index) in bannerDate" :key="index">
|
||||
<el-carousel-item v-for="(item,index) in bannerDate" :key="index" @click="clickTo(item.link)">
|
||||
<div>
|
||||
<img :src="item.imgurl" alt="">
|
||||
<div class="bottom_title">
|
||||
@@ -96,7 +96,7 @@
|
||||
<div class="grid-content"></div>
|
||||
</el-col>
|
||||
<el-col class="headline" :xs="22" :sm="20" :md="16" :lg="12" :xl="12">
|
||||
<div class="more">
|
||||
<div class="more" @click="lookMore(newsDate[0])">
|
||||
{{ $t('message.more') }}
|
||||
</div>
|
||||
<div class="more_img">
|
||||
@@ -125,6 +125,29 @@ export default {
|
||||
this.getBanner()
|
||||
},
|
||||
methods: {
|
||||
clickTo(link){
|
||||
//console.log(link)
|
||||
window.location.href=link;//当前标签页
|
||||
},
|
||||
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);
|
||||
}else {
|
||||
this.$router.push("/mobile/" + info.second.encodeId +"?type=" + info.second.type);
|
||||
}
|
||||
}else {
|
||||
if (this.width){
|
||||
this.$router.push("/pc/" + info.second.encodeId +"/" + info.three.encodeId + "?type=" + info.second.type);
|
||||
}else {
|
||||
this.$router.push("/mobile/" + info.second.encodeId + "/" + info.three.encodeId + "?type=" + info.second.type);
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getList() {
|
||||
getArticleList({
|
||||
type: "XC7D8m5gkr35BX1b4Otiln4",
|
||||
@@ -152,6 +175,11 @@ export default {
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.el-carousel__indicators{
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '../css/comment.css';
|
||||
@@ -178,7 +206,7 @@ export default {
|
||||
bottom: 0;
|
||||
line-height: 3.6vw;
|
||||
font-size: 2rem;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-family: "微软雅黑";
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
@@ -212,7 +240,7 @@ export default {
|
||||
|
||||
.news_context_text {
|
||||
font-size: 1.6rem;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-family: "微软雅黑";
|
||||
font-weight: 400;
|
||||
color: #262626;
|
||||
margin: 1rem auto;
|
||||
|
||||
Reference in New Issue
Block a user