| @@ -627,7 +627,6 @@ getAdView(){ | |||||
| </ImageBackground> | </ImageBackground> | ||||
| ); | ); | ||||
| } else if (this.state.adType == 2) { | } else if (this.state.adType == 2) { | ||||
| let curWidthNum = 394*PixelRatio.get(); | |||||
| return ( | return ( | ||||
| // <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}> | // <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}> | ||||
| @@ -642,8 +641,8 @@ getAdView(){ | |||||
| ref={'carousel'} | ref={'carousel'} | ||||
| data={adDataList} | data={adDataList} | ||||
| renderItem={this.setSwiperItemDom} | renderItem={this.setSwiperItemDom} | ||||
| sliderWidth={curWidthNum} | |||||
| itemWidth={curWidthNum} | |||||
| sliderWidth={1084} | |||||
| itemWidth={1084} | |||||
| itemHeight={134} | itemHeight={134} | ||||
| sliderHeight={134} | sliderHeight={134} | ||||
| activeSlideOffset={0} | activeSlideOffset={0} | ||||