data () {
return {
//配置轮播图参数
swiperOption: {
pagination: '.swiper-pagination',
direction: 'horizontal',
initialSlide :1,
slidesPerView: 1,
paginationClickable: true,
autoplayDisableOnInteraction : false,
spaceBetween: 1,
loop:true,
mousewheelControl: true,
speed:500,
autoplay:2000,
onClick:function(swiper){
console.log(obj)
}
},
maskState:false,//显示遮罩
sortBy:'',
currentCity:{text:"",id:"",level:""},
currentType:{text:"",id:"",level:""},
keepcurrentCity1:{text:"",id:"",level:""},
keepcurrentCity2:{text:"",id:"",level:""},
keepcurrentType1:{text:"",id:"",level:""},
keepcurrentType2:{text:"",id:"",level:""},
tenderList:[],
bannerList:[],
pageNo:1,
preventRepeat:false,//防止重复获取
hasMore:true,//是否还有更多
showSelectBox:false,//选择框状态(hide,show);
menuList:null,
showVideo:false,
autu:false,
我想在swiperOption 中 onClick 得到vue对象 怎么实现??