From fd2a0c4fcb034dbd2cb7513dcafb91ba0483e3e6 Mon Sep 17 00:00:00 2001 From: caserKing Date: Mon, 12 Aug 2019 09:46:48 +0800 Subject: [PATCH] =?UTF-8?q?1084=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/App.js b/App.js index 438b096..e53382e 100644 --- a/App.js +++ b/App.js @@ -627,7 +627,6 @@ getAdView(){ ); } else if (this.state.adType == 2) { - let curWidthNum = 394*PixelRatio.get(); return ( // @@ -642,8 +641,8 @@ getAdView(){ ref={'carousel'} data={adDataList} renderItem={this.setSwiperItemDom} - sliderWidth={curWidthNum} - itemWidth={curWidthNum} + sliderWidth={1084} + itemWidth={1084} itemHeight={134} sliderHeight={134} activeSlideOffset={0}