|
|
@@ -58,7 +58,7 @@ var animationThemes = [ |
|
|
|
} |
|
|
|
] |
|
|
|
const shadowOpt = { |
|
|
|
width: 683/PixelRatio.get(), |
|
|
|
width: 800/PixelRatio.get(), |
|
|
|
height: 240/PixelRatio.get(), |
|
|
|
color:"#000", |
|
|
|
border:2, |
|
|
@@ -545,17 +545,6 @@ setAdSwiperItemDom(item) { |
|
|
|
setSwiperItemDom(item) { |
|
|
|
let contentItem = item.item; |
|
|
|
let index = item.index; |
|
|
|
actionText = '扫码秒杀'; |
|
|
|
if (contentItem.type == 0) { |
|
|
|
if (contentItem.subType == 2) |
|
|
|
actionText = '扫码秒杀'; |
|
|
|
else if (contentItem.subType == 6) |
|
|
|
actionText = '扫码砍价'; |
|
|
|
else if (contentItem.subType == 7) |
|
|
|
actionText = '扫码拼团'; |
|
|
|
else |
|
|
|
actionText = '扫码领取'; |
|
|
|
} |
|
|
|
return ( |
|
|
|
<View style={styles.carouselItemWrap}> |
|
|
|
<BoxShadow setting={shadowOpt}> |
|
|
@@ -581,7 +570,6 @@ setSwiperItemDom(item) { |
|
|
|
{/* <Image source={{uri:'data:image/png;base64,'+contentItem.qrcode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> */} |
|
|
|
<View style={styles.contentItemTopQrcodeBox}> |
|
|
|
<Image source={{uri:contentItem.target.qrCode}} resizeMode='contain' style={styles.contentItemTopQrcode02} /> |
|
|
|
<Text style={styles.contentItemBottomAction02}>{actionText}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
|
@@ -685,7 +673,7 @@ getAdView(){ |
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
|
|
<View style={styles.bottomBox}> |
|
|
|
{/* <View style={styles.bottomBox}> |
|
|
|
<View style={styles.bottomLogoBackground}> |
|
|
|
<Image source={{ uri: this.state.baseInfo.imgUrlH}} resizeMode='contain' style={styles.bottomLogo} /> |
|
|
|
</View> |
|
|
@@ -698,7 +686,7 @@ getAdView(){ |
|
|
|
<Text style={styles.bottomQrcode1Str}>公众号</Text> |
|
|
|
</View> |
|
|
|
<Text style={styles.bottomPlacehold}>{this.state.versionInfo}</Text> |
|
|
|
</View> |
|
|
|
</View> */} |
|
|
|
</ImageBackground> |
|
|
|
); |
|
|
|
} else if (this.state.adType == 1) { |
|
|
@@ -999,8 +987,8 @@ MyPage = CodePush(codePushOptions)(MyPage); |
|
|
|
}, |
|
|
|
|
|
|
|
contentItemTopQrcode02:{ |
|
|
|
width:'80%', |
|
|
|
height:'70%', |
|
|
|
width:'90%', |
|
|
|
height:'90%', |
|
|
|
}, |
|
|
|
|
|
|
|
//layer content item bottom |
|
|
@@ -1200,7 +1188,7 @@ MyPage = CodePush(codePushOptions)(MyPage); |
|
|
|
alignItems: 'center', |
|
|
|
position: 'absolute', |
|
|
|
left: 0, |
|
|
|
bottom: 70/PixelRatio.get(), |
|
|
|
bottom: 30/PixelRatio.get(), |
|
|
|
width: '100%', |
|
|
|
height: 369/PixelRatio.get(), |
|
|
|
}, |
|
|
@@ -1235,7 +1223,7 @@ MyPage = CodePush(codePushOptions)(MyPage); |
|
|
|
|
|
|
|
contentItemTopForAd:{ |
|
|
|
flex: 1, |
|
|
|
width: 680/PixelRatio.get(), |
|
|
|
width: 800/PixelRatio.get(), |
|
|
|
// width: '100%', |
|
|
|
height:'100%', |
|
|
|
paddingLeft: 12/PixelRatio.get(), |
|
|
|