Quellcode durchsuchen

【大屏】【修改】【codepush异常不重启】

tags/jenkins-front-end-screenad-276-^0
caserKing vor 5 Jahren
Ursprung
Commit
39f0ea43c9
1 geänderte Dateien mit 3 neuen und 32 gelöschten Zeilen
  1. +3
    -32
      App.js

+ 3
- 32
App.js Datei anzeigen

@@ -119,8 +119,6 @@ export default class MyPage extends Component {
versionInfo:'未知',
adType: 0,
curAdType02Index: 0, //广告图index
// coverImgUrl: 'https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/456/37d833d7-263f-4f97-8588-e827c2f43db4.jpg',
// previewImg: 'https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/456/37d833d7-263f-4f97-8588-e827c2f43db4.jpg',
coverImgUrl: '',
previewImg: '',
curImgState: false,
@@ -179,7 +177,8 @@ async codePushUpdate() {
).then((status: SyncStatus) => {

}, (error: any) => {
CodePush.restartApp();
console.log(error)
// CodePush.restartApp();
});
}

@@ -304,6 +303,7 @@ codePushStatusDidChange(syncStatus) {
let num = 0;
if (adDataList.length > 0 && adDataBgList.length > 0) {
num = 2;
this.setState({previewImg: adDataBgList[0].coverImg});
} else if (adDataList.length > 0 && !adDataBgList.length) {
num = 0;
} else if (!adDataList.length && adDataBgList.length > 0) {
@@ -322,13 +322,6 @@ 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)
//type==0的是券 1是? 2是广告大图
let curData = result.data.list;
this.dealLoopType(curData);
@@ -717,28 +710,6 @@ getAdView(){
</View>
);
/* itemHeight={134}
sliderHeight={134}
adType == 2 滚动轮播 */
/* <Swiper ref='scrollView' style={styles.adTypeSwiper02} autoplay={true} autoplayTimeout={1} showPagination={false}
dotColor="transparent" activeDotColor="transparent" horizontal={true} showsButtons={false}>
{this.renderAdTypeSwiper()}
</Swiper> */
/* <View style={styles.bottomBox}>
<View style={styles.bottomLogoBackground}>
<Image source={{ uri: this.state.baseInfo.imgUrlH}} resizeMode='contain' style={styles.bottomLogo} />
</View>
<View style={styles.bottomQrcode1Background}>
<Image source={{ uri: this.state.baseInfo.imgQrcodeWeapp}} resizeMode='center' style={styles.bottomQrcode1} />
<Text style={styles.bottomQrcode1Str}>小程序</Text>
</View>
<View style={styles.bottomQrcode2Background}>
<Image source={{ uri: this.state.baseInfo.imgQrcodeWemp}} resizeMode='center' style={styles.bottomQrcode2} />
<Text style={styles.bottomQrcode1Str}>公众号</Text>
</View>
<Text style={styles.bottomPlacehold}>{this.state.versionInfo}</Text>
</View> */
} else if (this.state.adType == 1) {
let curWidthNum = 1080/(PixelRatio.get())


Laden…
Abbrechen
Speichern