|
|
@@ -118,8 +118,10 @@ export default class MyPage extends Component { |
|
|
|
versionInfo:'未知', |
|
|
|
adType: 0, |
|
|
|
curAdType02Index: 0, //广告图index |
|
|
|
coverImgUrl: 'https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/456/37d833d7-263f-4f97-8588-e827c2f43db4.jpg', |
|
|
|
previewImg: 'https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/456/37d833d7-263f-4f97-8588-e827c2f43db4.jpg', |
|
|
|
// coverImgUrl: 'https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/456/37d833d7-263f-4f97-8588-e827c2f43db4.jpg', |
|
|
|
// previewImg: 'https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/456/37d833d7-263f-4f97-8588-e827c2f43db4.jpg', |
|
|
|
coverImgUrl: '', |
|
|
|
previewImg: '', |
|
|
|
curImgState: false, |
|
|
|
}; |
|
|
|
|
|
|
@@ -626,6 +628,17 @@ getUpdateView() { |
|
|
|
</Text> |
|
|
|
); |
|
|
|
} |
|
|
|
rendDefaultImg() { |
|
|
|
if (this.state.coverImgUrl) { |
|
|
|
return ( |
|
|
|
<ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{uri: this.state.coverImgUrl}}></ImageBackground> |
|
|
|
) |
|
|
|
} else { |
|
|
|
return ( |
|
|
|
<ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={require('./image/background.png')}></ImageBackground> |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
getAdView(){ |
|
|
|
if (this.state.baseInfo) { |
|
|
@@ -683,8 +696,7 @@ getAdView(){ |
|
|
|
</Image> |
|
|
|
|
|
|
|
<Animatable.View animation="slideInDown" style={styles.adWrap} key={this.state.coverImgUrl}> |
|
|
|
<ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{uri: this.state.coverImgUrl}}> |
|
|
|
</ImageBackground> |
|
|
|
{this.rendDefaultImg()} |
|
|
|
</Animatable.View> |
|
|
|
|
|
|
|
<View style={styles.adTypeSwiper02}> |
|
|
|