Commit 4ec43902 by zhanghaozhe

temp

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