页面链接:/pages/index/components/news.vue
方便复制:
v-if="newsList.length"
newsList
@click="moreTab(item.chiild[1].val)"
方便复制:
@click="moreTab(newsList[0].chiild[1].val)"
:text="newsList[0].chiild[0].val"
newsList
@click="moreTab(newsList[swiperIndex].chiild[1].val)"
方便复制:
newsList: [],
swiperIndex: 0
mounted(){
let list = this.dataConfig.listConfig.list;
let newsList = [];
list.forEach(item=>{
if(item.show){
newsList.push(item);
}
})
this.newsList = newsList;
},
changeIndex(event){
this.swiperIndex = event.detail.current;
},
链接:/components/uniNoticeBar/uni-notice-bar.vue