Преглед изворни кода

【大屏】【修改】【播放方式】

tags/jenkins-front-end-screenad-237-v135^0
caserKing пре 5 година
родитељ
комит
96bf0aea00
1 измењених фајлова са 15 додато и 5 уклоњено
  1. +15
    -5
      App.js

+ 15
- 5
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 (
<View style={styles.carouselItemWrap}>
<BoxShadow setting={shadowOpt}>
<View style={styles.contentItemTopForAd} key={index}>
@@ -586,6 +587,7 @@ setSwiperItemDom(item) {
</View>
</BoxShadow>
</View>
)
}
renderAdTypeSwiper() {
@@ -656,7 +658,7 @@ getAdView(){
</ImageBackground>
);
} else if (this.state.adType == 2) {
let curWidthNum = 710/(PixelRatio.get())
let curWidthNum = 1080/(PixelRatio.get())
return (
// <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}>
<ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{ uri: this.state.curCoverImgUrl}}>
@@ -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',
}

});

Loading…
Откажи
Сачувај