|
@@ -113,25 +113,35 @@
|
|
|
<div class="tout_one">
|
|
|
<img src="static/picture/ewm.png" alt="">
|
|
|
</div>
|
|
|
- <div class="tout_two" @click="nhyeskf">
|
|
|
- <p>{{ ttjues.length == 0 ? '暂无数据' : ttjues[0].newsTitle}}</p>
|
|
|
- <p> {{ ttjues.length >= 1? ttjues[1].newsTitle :'暂无数据'}} | {{ ttjues.length >= 2? ttjues[2].newsTitle :'暂无数据' }} </p>
|
|
|
+ <div class="tout_two" >
|
|
|
+ <p @click="nhyeskf(ttjues[0])">{{ ttjues.length == 0 ? '暂无数据' : ttjues[0].newsTitle}}</p>
|
|
|
+ <p> <span @click="nhyeskf(ttjues[1])">{{ ttjues.length >= 1? ttjues[1].newsTitle :'暂无数据'}}</span> | <span @click="nhyeskf(ttjues[2])">{{ ttjues.length >= 2? ttjues[2].newsTitle :'暂无数据'}}</span> </p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="u-homenews _list s3 sk">
|
|
|
<ul class="home_activ">
|
|
|
<li>
|
|
|
- <el-carousel trigger="click" height="410px" class="hdyelaie" :autoplay ="false" indicator-position="none">
|
|
|
- <el-carousel-item v-for="item,index in imalisesmli" :key="item.imageId" >
|
|
|
+ <el-carousel trigger="click" height="410px" class="hdyelaie" :autoplay ="true" indicator-position="none" v-if='imalisesmli.length'>
|
|
|
+ <el-carousel-item v-for="item,index in imalisesmli" :key="item.newsId" >
|
|
|
+ <a :href="item.reprintUrl?'item.reprintUrl':'jgjj.html?id=' + item.newsId + '&titel=' + item.newsTitle">
|
|
|
<img style="width: 100%; height: 100%;"
|
|
|
- :src="'https://jyzx.qs163.cn' + '/prod-api' + item.imageContent" alt="" v-if="item.jeuhse == false">
|
|
|
+ :src="item.newsImage?'https://jyzx.qs163.cn' + '/prod-api' + item.newsImage:'https://jyzx.qs163.cn/prod-api/profile/upload/2022/01/21/caa82e76-5dc8-4dd8-a903-e4fa6a438eb8.png'" alt="" v-if="item.jeuhse == false">
|
|
|
+ </a>
|
|
|
<div style="height: 100%; width: 100%; position: relative;" v-if="item.jeuhse == true" >
|
|
|
- <video style="height: 100%; width: 100%;" ref='video' :src="'https://jyzx.qs163.cn' + item.imageContent" controls>
|
|
|
+ <video style="height: 100%; width: 100%;" ref='video' :src="'https://jyzx.qs163.cn' + item.newsImage" controls>
|
|
|
您的浏览器不支持 video元素。
|
|
|
</video>
|
|
|
</div>
|
|
|
- <p style="color: #fff; font-size: 14px; padding-left: 20px; position: relative;bottom:30px; background-color: #000000; opacity: .5; height: 30px; line-height: 30px;">{{item.imageIntroduce}}</p>
|
|
|
+ <p style="color: #fff; font-size: 14px; padding-left: 20px; position: relative;bottom:30px; background-color: #000000; opacity: .5; height: 30px; line-height: 30px;">{{item.newsTitle}}</p>
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ <el-carousel trigger="click" height="410px" class="hdyelaie" :autoplay ="true" indicator-position="none" v-else>
|
|
|
+ <el-carousel-item >
|
|
|
+
|
|
|
+ <img style="width: 100%; height: 100%;" src="https://jyzx.qs163.cn/prod-api/profile/upload/2022/01/21/caa82e76-5dc8-4dd8-a903-e4fa6a438eb8.png" >
|
|
|
+
|
|
|
+ <p style="color: #fff; font-size: 14px; padding-left: 20px; position: relative;bottom:30px; background-color: #000000; opacity: .5; height: 30px; line-height: 30px;"></p>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</li>
|
|
@@ -152,7 +162,7 @@
|
|
|
<li v-for="item,index in newsxq" :key="index +'' + 'l'">
|
|
|
<p class="cf">
|
|
|
<span class="fr"><small>{{item.createTime}}</small></span>
|
|
|
- <a :href="'jgjj.html?id=' + item.newsId + '&titel=' + dheyw">{{item.newsTitle}}
|
|
|
+ <a :href="item.reprintUrl?'item.reprintUrl':'jgjj.html?id=' + item.newsId + '&titel=' + dheyw">{{item.newsTitle}}
|
|
|
</a>
|
|
|
</p>
|
|
|
</li>
|
|
@@ -181,7 +191,7 @@
|
|
|
<li v-for="items,index in item.columnNewsList" :key="items.newsId" >
|
|
|
<p class="cf">
|
|
|
<span class="fr"><small>{{items.createTime}}</small></span>
|
|
|
- <a :href="'jgjj.html?id=' + items.newsId + '&titel=' + item.columnName" >{{items.newsTitle}}</a>
|
|
|
+ <a :href="item.reprintUrl?'item.reprintUrl':'jgjj.html?id=' + items.newsId + '&titel=' + item.columnName" >{{items.newsTitle}}</a>
|
|
|
</p>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -222,7 +232,7 @@
|
|
|
<img :src="item.newsImage == null? 'static/picture/pic_jcfw_gys@2x.png' : item.newsImage == undefined ? 'static/picture/pic_jcfw_gys@2x.png' : 'https://jyzx.qs163.cn' + '/prod-api'+ item.newsImage " alt="">
|
|
|
<span style="width:100%; overflow: hidden;text-overflow:ellipsis;white-space: nowrap; text-align: center;">{{item.newsTitle == null? '暂无数据' :item.newsTitle }}</span>
|
|
|
<p style="height: 48px;">{{item.newsContent == null? '暂无数据' : item.newsContent}}</p>
|
|
|
- <p class="ol" @click="gentg(item.newsId)">查看详情</p>
|
|
|
+ <p class="ol" @click="gentg(item.newsId,item)">查看详情</p>
|
|
|
</div>
|
|
|
<!-- <div class="shoutoa" v-if="!boofa">
|
|
|
<img src="static/picture/pic_jcfw_gys@2x.png" alt="">
|
|
@@ -332,7 +342,7 @@
|
|
|
this.newslieutt()//头条
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log(this.getQueryString("id"))
|
|
|
+ // console.log(this.getQueryString("id"))
|
|
|
},
|
|
|
methods: {
|
|
|
// 大图轮播图
|
|
@@ -361,7 +371,7 @@
|
|
|
var that = this
|
|
|
that.tyer.type = 1
|
|
|
$.ajax({
|
|
|
- url: 'https://jyzx.qs163.cn/prod-api/gateway/query/getRotationChart',
|
|
|
+ url: 'https://jyzx.qs163.cn/prod-api/gateway/query/getRotation',
|
|
|
type: 'post',
|
|
|
data: that.tyer,
|
|
|
dataType: 'json',
|
|
@@ -425,18 +435,18 @@
|
|
|
// indextitlw
|
|
|
res.data.filter(rout =>{
|
|
|
if(that.indextitlw.length >= 3){
|
|
|
- console.log(that.indextitlw.length)
|
|
|
+ // console.log(that.indextitlw.length)
|
|
|
that.indextitlwboo.push(rout)
|
|
|
// that.newslieutr(rout.columnId)
|
|
|
}else{
|
|
|
that.indextitlw.push(rout)
|
|
|
that.dheyw = that.indextitlw[0].columnName
|
|
|
that.newaNuber = that.indextitlw[0].columnId
|
|
|
- that.newslieu(this.newaNuber)//新闻列表
|
|
|
+ that.newslieu(that.newaNuber)//新闻列表
|
|
|
}
|
|
|
|
|
|
})
|
|
|
- console.log(that.indextitlw,that.indextitlwboo,this.dheyw,87654)
|
|
|
+ // console.log(that.indextitlw,that.indextitlwboo,this.dheyw,87654)
|
|
|
} else {
|
|
|
that.$message({
|
|
|
message: res.msg,
|
|
@@ -520,7 +530,7 @@
|
|
|
res.data[0].puhese = res.data[0].columnNewsList
|
|
|
|
|
|
}
|
|
|
- console.log(res.data[0].puhese,34567)
|
|
|
+ // console.log(res.data[0].puhese,34567)
|
|
|
})
|
|
|
that.dueus = res.data[0].puhese
|
|
|
that.jiance = res.data[0]
|
|
@@ -558,7 +568,7 @@
|
|
|
})
|
|
|
},
|
|
|
inpubie() {
|
|
|
- console.log(this.inpute)
|
|
|
+ // console.log(this.inpute)
|
|
|
},
|
|
|
nhyesee() {
|
|
|
console.log(this.inpute)
|
|
@@ -571,11 +581,11 @@
|
|
|
} else {
|
|
|
this.ulrw = 'djdt.html?id=' + val
|
|
|
}
|
|
|
- console.log(index, val)
|
|
|
+ // console.log(index, val)
|
|
|
},
|
|
|
jeuese(index,val) {
|
|
|
- console.log(index,val)
|
|
|
- console.log()
|
|
|
+ // console.log(index,val)
|
|
|
+ // console.log()
|
|
|
// if(index == 25){
|
|
|
// window.location.href="jgjj.html?id=" + index
|
|
|
// }else if(index == 26){
|
|
@@ -592,7 +602,7 @@
|
|
|
try {
|
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
|
|
|
var r = window.location.href.split('?')[1].match(reg);
|
|
|
- console.log(reg, r)
|
|
|
+ // console.log(reg, r)
|
|
|
if (r != null) {
|
|
|
return r[2];
|
|
|
}
|
|
@@ -608,15 +618,22 @@
|
|
|
this.newslieu(val)
|
|
|
},
|
|
|
// 底部查看更多
|
|
|
- gentg(index){
|
|
|
- // console.log(index,34)
|
|
|
- window.location.href = 'jgjj.html?id=' + index +'&titel=监测范围'
|
|
|
+ gentg(index,e){
|
|
|
+ if(e&&e.reprintUrl){
|
|
|
+ window.location.href=e.reprintUrl
|
|
|
+ }else{
|
|
|
+ window.location.href = 'jgjj.html?id=' + index +'&titel=监测范围'
|
|
|
+ }
|
|
|
},
|
|
|
gentgs(){
|
|
|
window.location.href = 'jcfanw.html'
|
|
|
},
|
|
|
- nhyeskf(){
|
|
|
- window.location.href="djdt.html?" +'&titel=头条' + '&ntitel=头条' + '&openMode=0'
|
|
|
+ nhyeskf(e){
|
|
|
+ if(e&&e.reprintUrl){
|
|
|
+ window.location.href=e.reprintUrl
|
|
|
+ }else{
|
|
|
+ window.location.href="djdt.html?" +'&titel=头条' + '&ntitel=头条' + '&openMode=0'
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|