Update add.js
This commit is contained in:
parent
c0d2727524
commit
23c93f1622
|
@ -49,8 +49,14 @@ export default class adduserinfo extends React.Component{
|
||||||
autoplay : 3000,
|
autoplay : 3000,
|
||||||
initialSlide :0,
|
initialSlide :0,
|
||||||
observer: true, // 修改swiper自己或子元素时,自动初始化swiper
|
observer: true, // 修改swiper自己或子元素时,自动初始化swiper
|
||||||
observeParents: true, // 修改swiper的父元素时,自动初始化swiper
|
observeParents: false, // 修改swiper的父元素时,自动初始化swiper
|
||||||
pagination: '.swiper-pagination',
|
pagination: '.swiper-pagination',
|
||||||
|
paginationClickable:true,
|
||||||
|
onSlideChangeEnd: function(swiper){
|
||||||
|
this.mySwiper.update();
|
||||||
|
this.mySwiper.startAutoplay();
|
||||||
|
this.mySwiper.reLoop();
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -119,8 +125,13 @@ export default class adduserinfo extends React.Component{
|
||||||
|
|
||||||
|
|
||||||
componentWillReceiveProps() {
|
componentWillReceiveProps() {
|
||||||
|
console.log("更新")
|
||||||
|
// this.mySwiper.stopAutoplay();
|
||||||
|
|
||||||
|
// this.mySwiper.update();
|
||||||
|
// this.mySwiper.reLoop();
|
||||||
|
// this.mySwiper.startAutoplay();
|
||||||
|
|
||||||
this.mySwiper.update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取直连天下商品映射信息
|
//获取直连天下商品映射信息
|
||||||
|
@ -429,7 +440,12 @@ export default class adduserinfo extends React.Component{
|
||||||
this.setState({productpic:temp_arr})
|
this.setState({productpic:temp_arr})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.mySwiper.stopAutoplay();
|
||||||
|
|
||||||
this.mySwiper.update();
|
this.mySwiper.update();
|
||||||
|
this.mySwiper.reLoop();
|
||||||
|
this.mySwiper.startAutoplay();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onUploadChange2(files){
|
onUploadChange2(files){
|
||||||
|
|
Loading…
Reference in New Issue