|
@@ -83,7 +83,7 @@
|
|
|
<div class="u-fullpart nopd">
|
|
|
<div class="container full">
|
|
|
<div class="u-banner">
|
|
|
- <el-carousel trigger="click" height="410px">
|
|
|
+ <el-carousel trigger="click" class="nhyeowe">
|
|
|
<el-carousel-item v-for="item,index in imalise" :key="item.imageId">
|
|
|
<img style="width: 100%; height: 100%;"
|
|
|
:src="'https://jyzx.qs163.cn' + '/prod-api'+ item.imageContent" alt="">
|
|
@@ -115,7 +115,7 @@
|
|
|
</div>
|
|
|
<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>
|
|
|
+ <p> <span @click="nhyeskf(ttjues[1])">{{ ttjues.length == 2? ttjues[1].newsTitle : ttjues.length > 2? ttjues[1].newsTitle :'暂无数据'}}</span> | <span @click="nhyeskf(ttjues[2])">{{ ttjues.length == 3? ttjues[2].newsTitle : ttjues.length > 3? ttjues[2].newsTitle :'暂无数据'}}</span> </p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -206,16 +206,16 @@
|
|
|
<div class="container">
|
|
|
<div class="wagnshi">
|
|
|
<div class="wagnshi_one">
|
|
|
- <img src="static/picture/pic_bsfw_wssj@2x.png">
|
|
|
+ <img src="static/picture/pic_bsfw_wssj@2x.png" @click="bheus(0)">
|
|
|
</div>
|
|
|
<div class="wagnshi_two wagnshi_one">
|
|
|
- <img src="static/picture/pic_bsfw_sjlc@2x.png">
|
|
|
+ <img src="static/picture/pic_bsfw_sjlc@2x.png" @click="bheus(1)">
|
|
|
</div>
|
|
|
<div class="wagnshi_ther wagnshi_one">
|
|
|
- <img src="static/picture/pic_bsfw_bgcx@2x.png">
|
|
|
+ <img src="static/picture/pic_bsfw_bgcx@2x.png" @click="bheus(2)">
|
|
|
</div>
|
|
|
<div class="wagnshi_four wagnshi_one">
|
|
|
- <img src="static/picture/pic_bsfw_lxwm@2x.png">
|
|
|
+ <img src="static/picture/pic_bsfw_lxwm@2x.png" @click="bheus(3)">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -328,7 +328,11 @@
|
|
|
dueus:[],
|
|
|
dheyw:'',
|
|
|
ttjues:[],
|
|
|
- nhyeis:''
|
|
|
+ nhyeis:'',
|
|
|
+ wsh:{},
|
|
|
+ sjlc:{},
|
|
|
+ baogao:{},
|
|
|
+ lxis:{}
|
|
|
|
|
|
},
|
|
|
created() {
|
|
@@ -336,15 +340,58 @@
|
|
|
this.smillimg() //小图轮播
|
|
|
this.goese()//通知公告
|
|
|
this.newsli() //新闻标题
|
|
|
-
|
|
|
this.boonews()//底部导航
|
|
|
this.frihde()//友情链接
|
|
|
this.newslieutt()//头条
|
|
|
+ this.gettablistde()
|
|
|
},
|
|
|
mounted() {
|
|
|
// console.log(this.getQueryString("id"))
|
|
|
},
|
|
|
methods: {
|
|
|
+ gettablistde(){
|
|
|
+ var that = this
|
|
|
+ $.ajax({
|
|
|
+ url:'https://jyzx.qs163.cn/prod-api/gateway/query/treeselect',
|
|
|
+ type:'get',
|
|
|
+ data:'',
|
|
|
+ dataType:'json',
|
|
|
+ success:function(res){
|
|
|
+ console.log(res,765)
|
|
|
+ if(res.code == 200){
|
|
|
+ res.data.filter( router=> {
|
|
|
+ if(router.children !== undefined){
|
|
|
+ if(router.children.length !== 0){
|
|
|
+ router.children.filter(rou =>{
|
|
|
+ if(rou.label == '网上送检'){
|
|
|
+ that.wsh = rou
|
|
|
+
|
|
|
+ }
|
|
|
+ if(rou.label == '送检流程'){
|
|
|
+ that.sjlc = rou
|
|
|
+ }
|
|
|
+ if(rou.label == '报告查询'){
|
|
|
+ that.baogao = rou
|
|
|
+ }
|
|
|
+ if(rou.label == '联系我们'){
|
|
|
+ that.lxis = rou
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(that.wsh,that.sjlc,that.baogao,that.lxis)
|
|
|
+ }else{
|
|
|
+ that.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // console.log(that.tablide,765)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 大图轮播图
|
|
|
gettablist() {
|
|
|
var that = this
|
|
@@ -459,7 +506,7 @@
|
|
|
// 头条
|
|
|
newslieutt(val){
|
|
|
var that = this
|
|
|
- let hes = {columnId:val,pageSize:6,pageNum:1}
|
|
|
+ let hes = {columnId:val,pageSize:6,pageNum:1,isTop:'Y'}
|
|
|
$.ajax({
|
|
|
url: 'https://jyzx.qs163.cn/prod-api/gateway/query/getNewS',
|
|
|
type: 'post',
|
|
@@ -473,6 +520,7 @@
|
|
|
res.rows = nhdye
|
|
|
}
|
|
|
that.ttjues = res.rows
|
|
|
+ console.log(that.ttjues.length)
|
|
|
} else {
|
|
|
that.$message({
|
|
|
message: res.msg,
|
|
@@ -634,6 +682,23 @@
|
|
|
}else{
|
|
|
window.location.href="djdt.html?" +'&titel=头条' + '&ntitel=头条' + '&openMode=0'
|
|
|
}
|
|
|
+ },
|
|
|
+ // 网上送检跳转
|
|
|
+ bheus(index){
|
|
|
+ // console.log(index,this.wsh,this.sjlc,this.baogao,this.lxis)
|
|
|
+ // if(index == 0){
|
|
|
+ // window.location.href="djdt.html?id=" + this.wsh.id +'&titel=' + this.wsh.label + '&ntitel=' + '首页' + '&openMode=' + this.wsh.openMode
|
|
|
+ // }
|
|
|
+ // if(index == 1){
|
|
|
+ // window.location.href="djdt.html?id=" + this.sjlc.id +'&titel=' + this.sjlc.label + '&ntitel=' + '首页' + '&openMode=' + this.sjlc.openMode
|
|
|
+ // }
|
|
|
+ // if(index == 3){
|
|
|
+ // window.location.href="djdt.html?id=" + this.baogao.id +'&titel=' + this.baogao.label + '&ntitel=' + '首页' + '&openMode=' + this.baogao.openMode
|
|
|
+ // }
|
|
|
+ // if(index == 3){
|
|
|
+ // window.location.href="djdt.html?id=" + this.lxis.id +'&titel=' + this.lxis.label + '&ntitel=' + '首页' + '&openMode=' + this.lxis.openMode
|
|
|
+ // }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|