diff --git a/App.js b/App.js index 8270957..0a1b163 100644 --- a/App.js +++ b/App.js @@ -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() { ); } +rendDefaultImg() { + if (this.state.coverImgUrl) { + return ( + + ) + } else { + return ( + + ) + } +} getAdView(){ if (this.state.baseInfo) { @@ -683,8 +696,7 @@ getAdView(){ - - + {this.rendDefaultImg()}