Commit 4ec43902 by zhanghaozhe

temp

parent e3b51ff3
......@@ -9,6 +9,7 @@ class TopSwiper extends Component {
componentDidMount() {
this.swiper = new Swiper('.swiper-container', {
direction: 'horizontal',
loop: true,
on:{
progress(e){
console.log(e);
......@@ -20,7 +21,7 @@ class TopSwiper extends Component {
render() {
const {bannerList} = this.props
return (
<div className={'swiper-container'} ref={el => this.container = el}>
<div className={'swiper-container index-swiper'} ref={el => this.container = el}>
<ul className="swiper-wrapper">
{bannerList.length && bannerList.map((item, index) => {
return (
......
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