| @@ -58,7 +58,7 @@ var animationThemes = [ | |||||
| } | } | ||||
| ] | ] | ||||
| const shadowOpt = { | const shadowOpt = { | ||||
| width: 703/PixelRatio.get(), | |||||
| width: 683/PixelRatio.get(), | |||||
| height: 240/PixelRatio.get(), | height: 240/PixelRatio.get(), | ||||
| color:"#000", | color:"#000", | ||||
| border:2, | border:2, | ||||
| @@ -557,6 +557,7 @@ setSwiperItemDom(item) { | |||||
| actionText = '扫码领取'; | actionText = '扫码领取'; | ||||
| } | } | ||||
| return ( | return ( | ||||
| <View style={styles.carouselItemWrap}> | |||||
| <BoxShadow setting={shadowOpt}> | <BoxShadow setting={shadowOpt}> | ||||
| <View style={styles.contentItemTopForAd} key={index}> | <View style={styles.contentItemTopForAd} key={index}> | ||||
| @@ -586,6 +587,7 @@ setSwiperItemDom(item) { | |||||
| </View> | </View> | ||||
| </BoxShadow> | </BoxShadow> | ||||
| </View> | |||||
| ) | ) | ||||
| } | } | ||||
| renderAdTypeSwiper() { | renderAdTypeSwiper() { | ||||
| @@ -656,7 +658,7 @@ getAdView(){ | |||||
| </ImageBackground> | </ImageBackground> | ||||
| ); | ); | ||||
| } else if (this.state.adType == 2) { | } else if (this.state.adType == 2) { | ||||
| let curWidthNum = 710/(PixelRatio.get()) | |||||
| let curWidthNum = 1080/(PixelRatio.get()) | |||||
| return ( | return ( | ||||
| // <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}> | // <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}> | ||||
| <ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{ uri: this.state.curCoverImgUrl}}> | <ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{ uri: this.state.curCoverImgUrl}}> | ||||
| @@ -671,7 +673,8 @@ getAdView(){ | |||||
| data={adDataList} | data={adDataList} | ||||
| renderItem={this.setSwiperItemDom} | renderItem={this.setSwiperItemDom} | ||||
| sliderWidth={curWidthNum} | sliderWidth={curWidthNum} | ||||
| itemWidth={curWidthNum} | |||||
| itemWidth={curWidthNum} | |||||
| layout={'stack'} | |||||
| itemHeight={134} | itemHeight={134} | ||||
| sliderHeight={134} | sliderHeight={134} | ||||
| activeSlideOffset={0} | activeSlideOffset={0} | ||||
| @@ -1154,7 +1157,7 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| contentItemTopDetailSalePrice02:{ | contentItemTopDetailSalePrice02:{ | ||||
| position:"absolute", | position:"absolute", | ||||
| bottom:24/PixelRatio.get(), | |||||
| bottom:14/PixelRatio.get(), | |||||
| left:0, | left:0, | ||||
| // flex: 1, | // flex: 1, | ||||
| paddingTop:138/PixelRatio.get(), | paddingTop:138/PixelRatio.get(), | ||||
| @@ -1232,7 +1235,7 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| contentItemTopForAd:{ | contentItemTopForAd:{ | ||||
| flex: 1, | flex: 1, | ||||
| width: 700/PixelRatio.get(), | |||||
| width: 680/PixelRatio.get(), | |||||
| // width: '100%', | // width: '100%', | ||||
| height:'100%', | height:'100%', | ||||
| paddingLeft: 12/PixelRatio.get(), | paddingLeft: 12/PixelRatio.get(), | ||||
| @@ -1252,6 +1255,13 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| onlyAdTypeItemImg:{ | onlyAdTypeItemImg:{ | ||||
| width: '100%', | width: '100%', | ||||
| height: '100%', | height: '100%', | ||||
| }, | |||||
| carouselItemWrap: { | |||||
| flex: 1, | |||||
| width: '100%', | |||||
| backgroundColor: 'transparent', | |||||
| alignItems: 'center', | |||||
| } | } | ||||
| }); | }); | ||||