|
|
@@ -627,6 +627,8 @@ getAdView(){ |
|
|
|
</ImageBackground> |
|
|
|
); |
|
|
|
} else if (this.state.adType == 2) { |
|
|
|
let curWidthNum = 394*PixelRatio.get(); |
|
|
|
|
|
|
|
return ( |
|
|
|
// <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}> |
|
|
|
<ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{ uri: this.state.curCoverImgUrl}}> |
|
|
@@ -640,8 +642,8 @@ getAdView(){ |
|
|
|
ref={'carousel'} |
|
|
|
data={adDataList} |
|
|
|
renderItem={this.setSwiperItemDom} |
|
|
|
sliderWidth={394*PixelRatio.get()} |
|
|
|
itemWidth={394*PixelRatio.get()} |
|
|
|
sliderWidth={curWidthNum} |
|
|
|
itemWidth={curWidthNum} |
|
|
|
itemHeight={134} |
|
|
|
sliderHeight={134} |
|
|
|
activeSlideOffset={0} |
|
|
@@ -1175,8 +1177,8 @@ MyPage = CodePush(codePushOptions)(MyPage); |
|
|
|
|
|
|
|
contentItemTopForAd:{ |
|
|
|
flex: 1, |
|
|
|
width: 1127/PixelRatio.get(), |
|
|
|
// width: '100%', |
|
|
|
// width: 1127/PixelRatio.get(), |
|
|
|
width: '100%', |
|
|
|
height:'100%', |
|
|
|
paddingLeft: 22/PixelRatio.get(), |
|
|
|
paddingRight: 26/PixelRatio.get(), |
|
|
|