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