From 96bf0aea00137af1854d509be804c2cc809bc0bb Mon Sep 17 00:00:00 2001 From: caserKing Date: Tue, 13 Aug 2019 18:16:20 +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=92=AD=E6=94=BE=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/App.js b/App.js index d230caa..36201c6 100644 --- a/App.js +++ b/App.js @@ -58,7 +58,7 @@ var animationThemes = [ } ] const shadowOpt = { - width: 703/PixelRatio.get(), + width: 683/PixelRatio.get(), height: 240/PixelRatio.get(), color:"#000", border:2, @@ -557,6 +557,7 @@ setSwiperItemDom(item) { actionText = '扫码领取'; } return ( + @@ -586,6 +587,7 @@ setSwiperItemDom(item) { + ) } renderAdTypeSwiper() { @@ -656,7 +658,7 @@ getAdView(){ ); } else if (this.state.adType == 2) { - let curWidthNum = 710/(PixelRatio.get()) + let curWidthNum = 1080/(PixelRatio.get()) return ( // @@ -671,7 +673,8 @@ getAdView(){ data={adDataList} renderItem={this.setSwiperItemDom} sliderWidth={curWidthNum} - itemWidth={curWidthNum} + itemWidth={curWidthNum} + layout={'stack'} itemHeight={134} sliderHeight={134} activeSlideOffset={0} @@ -1154,7 +1157,7 @@ MyPage = CodePush(codePushOptions)(MyPage); contentItemTopDetailSalePrice02:{ position:"absolute", - bottom:24/PixelRatio.get(), + bottom:14/PixelRatio.get(), left:0, // flex: 1, paddingTop:138/PixelRatio.get(), @@ -1232,7 +1235,7 @@ MyPage = CodePush(codePushOptions)(MyPage); contentItemTopForAd:{ flex: 1, - width: 700/PixelRatio.get(), + width: 680/PixelRatio.get(), // width: '100%', height:'100%', paddingLeft: 12/PixelRatio.get(), @@ -1252,6 +1255,13 @@ MyPage = CodePush(codePushOptions)(MyPage); onlyAdTypeItemImg:{ width: '100%', height: '100%', + }, + + carouselItemWrap: { + flex: 1, + width: '100%', + backgroundColor: 'transparent', + alignItems: 'center', } });