From b062df4c35555240b484a914c827624311f61d19 Mon Sep 17 00:00:00 2001 From: caserKing Date: Wed, 28 Aug 2019 16:23:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A4=A7=E5=B1=8F=E3=80=91=E3=80=90?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=91=E3=80=90=E6=B7=BB=E5=8A=A0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=9B=BE=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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()}