0415
This commit is contained in:
parent
2d33551bd0
commit
f787a4982d
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@ -357,6 +357,7 @@
|
|||||||
// 获取右侧列表
|
// 获取右侧列表
|
||||||
getMainList: function (id) {
|
getMainList: function (id) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
self.mainList = []
|
||||||
// var loadLayerIndex;
|
// var loadLayerIndex;
|
||||||
top.restAjax.get(top.restAjax.path('api/indexlib/listpageweb/{indexLibParentId}', [id]), self.page, null, function(code, data) {
|
top.restAjax.get(top.restAjax.path('api/indexlib/listpageweb/{indexLibParentId}', [id]), self.page, null, function(code, data) {
|
||||||
self.mainList = data.rows
|
self.mainList = data.rows
|
||||||
|
@ -121,8 +121,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="news-box">
|
<div class="news-box">
|
||||||
<div class="box-title">
|
<div class="box-title">
|
||||||
<span>信息公开</span>
|
<span>通知公告</span>
|
||||||
<a href="route/web/list.html?title=信息公开&id=e1b31bdd-4537-4c97-ae59-d2a922a61cbd">更多+</a>
|
<a href="route/web/list.html?title=通知公告&id=e1b31bdd-4537-4c97-ae59-d2a922a61cbd">更多+</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="news-list">
|
<div class="news-list">
|
||||||
<ul v-cloak>
|
<ul v-cloak>
|
||||||
@ -137,23 +137,12 @@
|
|||||||
<div class="slide-news">
|
<div class="slide-news">
|
||||||
<div class="slide">
|
<div class="slide">
|
||||||
<div class="bd">
|
<div class="bd">
|
||||||
<ul>
|
<ul v-cloak>
|
||||||
<li>
|
<li v-for="banner in bannerList">
|
||||||
<a href="javascript: void(0);">
|
<a :href="'route/web/detail.html?contentId=' + banner.contentId">
|
||||||
<img src="assets/web/images/slide.png" alt="">
|
<img :src="'route/file/download/true/' + banner.coverPhotos" alt="" v-if="banner.coverPhotos">
|
||||||
<div class="slide-text">公安厅党委委员、副厅长(正厅级)赵云辉接受纪律审查和监察调查</div>
|
<img src="assets/web/images/slide.png" alt="" v-else>
|
||||||
</a>
|
<div class="slide-text">{{banner.subTitle}}</div>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="javascript: void(0);">
|
|
||||||
<img src="assets/web/images/slide.png" alt="">
|
|
||||||
<div class="slide-text">公安厅党委委员、副厅长(正厅级)赵云辉接受纪律审查和监察调查</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="javascript: void(0);">
|
|
||||||
<img src="assets/web/images/slide.png" alt="">
|
|
||||||
<div class="slide-text">公安厅党委委员、副厅长(正厅级)赵云辉接受纪律审查和监察调查</div>
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -207,7 +196,8 @@
|
|||||||
dynamicList: [],
|
dynamicList: [],
|
||||||
infoPublic: [],
|
infoPublic: [],
|
||||||
exposureList: [],
|
exposureList: [],
|
||||||
exposureFirst: {}
|
exposureFirst: {},
|
||||||
|
bannerList: []
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取顶部导航
|
// 获取顶部导航
|
||||||
@ -294,7 +284,14 @@
|
|||||||
rows: 5,
|
rows: 5,
|
||||||
categoryId: '7a9b2dcb-8d24-4d05-8f57-2ebbd63a8d90'
|
categoryId: '7a9b2dcb-8d24-4d05-8f57-2ebbd63a8d90'
|
||||||
}, null, function(code, data) {
|
}, null, function(code, data) {
|
||||||
self.infoPublic = data.rows
|
for (let i = 0; i < data.rows.length; i++) {
|
||||||
|
data.rows[i].coverPhotos = data.rows[i].coverPhotos.split(',')[0]
|
||||||
|
}
|
||||||
|
console.log(data.rows)
|
||||||
|
self.bannerList = data.rows
|
||||||
|
self.$nextTick(function () {
|
||||||
|
jQuery(".slide").slide({mainCell:".bd ul",effect:"left",autoPlay:true,delayTime:500});
|
||||||
|
})
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
layer.msg(data.msg);
|
layer.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
@ -326,7 +323,8 @@
|
|||||||
this.getLatestDynamic()
|
this.getLatestDynamic()
|
||||||
this.getInfoPublic()
|
this.getInfoPublic()
|
||||||
this.getExposure()
|
this.getExposure()
|
||||||
jQuery(".slide").slide({mainCell:".bd ul",effect:"left",autoPlay:true,delayTime:700});
|
this.getBanner()
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user