Commit f94890f9 by 林家欣

fix: 更新轮播图因为接口渲染速度慢导致功能不生效

parent 5b957959
......@@ -65,10 +65,10 @@
</VueSlickCarousel>
<VueSlickCarousel
v-bind="newsBannerSettingsB"
v-if="newsBanner.length > 0"
ref="newsBannerB"
class="newsBannerB"
:asNavFor="$refs.newsBannerA"
v-if="newsBanner.length > 0"
>
<div
class="newsBanner-item"
......@@ -558,7 +558,18 @@ export default {
slidesToShow: 1,
slidesToScroll: 1,
},
newsBanner: [], // 要闻左侧图片
newsBanner: [
// {
// title: '中国物品编码中心应邀出席食品安全智慧监管研讨会',
// picFile: 'http://81.68.189.225:9091/office/uploadFileResource/news/newsimg/0c4b2d1e-0c95-43a6-a31e-6b53c983e1c6.jpg',
// jumppath: '',
// },
// {
// title: '发挥行业组织作用推进电线电缆行业质量评价和追溯体系建设研讨会在京顺利召开',
// picFile: 'http://81.68.189.225:9091/office/uploadFileResource/news/newsimg/3e5344f9-1de5-4a2a-8f89-10cdf4ad769a.jpg',
// jumppath: '',
// }
], // 要闻左侧图片
newsBannerSettingsA: {
arrows: false,
autoplay: false,
......@@ -1070,18 +1081,6 @@ export default {
},
// 初始化
init() {
// 要闻右侧标题列表
this.homeImportantNewList();
// 商品全球身份证
this.homeNewGtin();
// 党建文化新闻列表
Promise.all([
this.homeGet4PartyTopNews(),
this.homeGet1PartyTopNews(),
]).then((result) => {
console.log(result, "党建文化新闻列表集合");
this.djwh.data = [].concat(result[0], result[1]);
});
// 专题聚焦
this.homeGetsdztListTopNews();
// 后台轮播图预览
......@@ -1099,6 +1098,19 @@ export default {
// 要闻左侧图片资讯
this.homePictureImageList();
}
// 要闻右侧标题列表
this.homeImportantNewList();
// 商品全球身份证
this.homeNewGtin();
// 党建文化新闻列表
Promise.all([
this.homeGet4PartyTopNews(),
this.homeGet1PartyTopNews(),
]).then((result) => {
console.log(result, "党建文化新闻列表集合");
this.djwh.data = [].concat(result[0], result[1]);
});
},
// 后台轮播图预览
async indexCarouselManage(indexCarouselManageId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment