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