|
|
@@ -307,10 +307,10 @@ codePushStatusDidChange(syncStatus) { |
|
|
|
this.showErrMsg(result.message+'\n'+this.state.macAddress); |
|
|
|
} else if (result.data.list) { |
|
|
|
//aaa |
|
|
|
/* result.data.list[0].type = 2; |
|
|
|
result.data.list[0].type = 2; |
|
|
|
result.data.list[1].type = 2; |
|
|
|
result.data.list[2].type = 2; |
|
|
|
result.data.list[3].type = 2; |
|
|
|
/* result.data.list[3].type = 2; |
|
|
|
result.data.list[4].type = 2; |
|
|
|
result.data.list[5].type = 2; */ |
|
|
|
console.log(result.data) |
|
|
@@ -641,7 +641,7 @@ getAdView(){ |
|
|
|
</ImageBackground> |
|
|
|
); |
|
|
|
} else if (this.state.adType == 2) { |
|
|
|
|
|
|
|
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}}> |
|
|
@@ -655,8 +655,8 @@ getAdView(){ |
|
|
|
ref={'carousel02'} |
|
|
|
data={adDataList} |
|
|
|
renderItem={this.setSwiperItemDom} |
|
|
|
sliderWidth={1080} |
|
|
|
itemWidth={1080} |
|
|
|
sliderWidth={curWidthNum} |
|
|
|
itemWidth={curWidthNum} |
|
|
|
itemHeight={134} |
|
|
|
sliderHeight={134} |
|
|
|
activeSlideOffset={0} |
|
|
|