diff --git a/App.js b/App.js
index 4fee8ed..2554e56 100644
--- a/App.js
+++ b/App.js
@@ -291,6 +291,8 @@ codePushStatusDidChange(syncStatus) {
num = 2;
} else if (adDataList.length > 0 && !adDataBgList.length) {
num = 0;
+ } else if (!adDataList.length && adDataBgList.length > 0) {
+ num = 1;
}
this.setState({adType: num })
}
@@ -305,6 +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[1].type = 2;
+ result.data.list[2].type = 2;
+ result.data.list[3].type = 2; */
result.data.list[4].type = 2;
result.data.list[5].type = 2;
console.log(result.data)
@@ -516,6 +522,14 @@ getContentView() {
)
}
}
+setAdSwiperItemDom(item) {
+ let contentItem = item.item;
+ return (
+
+
+
+ )
+}
setSwiperItemDom(item) {
let contentItem = item.item;
let index = item.index;
@@ -638,7 +652,7 @@ getAdView(){
*/}
);
+ } else if (this.state.adType == 1) {
+ return(
+
+ )
}
}
else {
@@ -1189,4 +1219,14 @@ MyPage = CodePush(codePushOptions)(MyPage);
borderWidth:1,
},
+ onlyAdSwiperItem:{
+ width: '100%',
+ height: '100%',
+ },
+
+ onlyAdTypeItemImg:{
+ width: '100%',
+ height: '100%',
+ }
+
});