|
|
|
@ -156,26 +156,26 @@ |
|
|
|
|
|
|
|
}, 2000) |
|
|
|
}, |
|
|
|
onReady() { |
|
|
|
// onReady() { |
|
|
|
// 轮询判断 |
|
|
|
// typee = 2 有网络 |
|
|
|
//判断是否有网络(尝试解决IOS白屏) |
|
|
|
let that = this; |
|
|
|
let s = 0; |
|
|
|
let time = setInterval(()=>{ |
|
|
|
console.log('6666') |
|
|
|
uni.getNetworkType({ |
|
|
|
success:(res)=>{ |
|
|
|
console.log(res.networkType,s); |
|
|
|
if(res.networkType !== 'none'){ |
|
|
|
that.typee = 2; |
|
|
|
clearInterval(time); |
|
|
|
console.log('清楚网络..') |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
s++; |
|
|
|
},1000); |
|
|
|
// let that = this; |
|
|
|
// let s = 0; |
|
|
|
// let time = setInterval(()=>{ |
|
|
|
// console.log('6666') |
|
|
|
// uni.getNetworkType({ |
|
|
|
// success:(res)=>{ |
|
|
|
// console.log(res.networkType,s); |
|
|
|
// if(res.networkType !== 'none'){ |
|
|
|
// that.typee = 2; |
|
|
|
// clearInterval(time); |
|
|
|
// console.log('清楚网络..') |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// s++; |
|
|
|
// },1000); |
|
|
|
/* uni.getNetworkType({ |
|
|
|
success: function(res) { |
|
|
|
console.log(res.networkType); |
|
|
|
@ -201,29 +201,45 @@ |
|
|
|
}, 3000) |
|
|
|
} |
|
|
|
}); */ |
|
|
|
}, |
|
|
|
// }, |
|
|
|
|
|
|
|
onLoad() { |
|
|
|
let home = 'HOME' |
|
|
|
this.getIndex(home) |
|
|
|
this.isLogin = uni.getStorageSync('isLogin') |
|
|
|
// //////console.info(this.curEndTime) |
|
|
|
this.getList() |
|
|
|
this.getMes() |
|
|
|
this.getPullMes() |
|
|
|
this.getInfo() |
|
|
|
if (this.countdownTime2 != 0) { |
|
|
|
uni.hideTabBar() |
|
|
|
} else if (this.countdownTime2 == 0 || !this.popImg) { |
|
|
|
//uni.showTabBar() |
|
|
|
uni.setTabBarStyle({ |
|
|
|
backgroundColor: "#fff", |
|
|
|
borderStyle: "black", |
|
|
|
// selectedColor: "#999", |
|
|
|
// color: "#999", |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let that = this; |
|
|
|
let s = 0; |
|
|
|
let time = setInterval(()=>{ |
|
|
|
console.log('6666') |
|
|
|
uni.getNetworkType({ |
|
|
|
success:(res)=>{ |
|
|
|
console.log(res.networkType,s); |
|
|
|
if(res.networkType !== 'none'){ |
|
|
|
that.typee = 2; |
|
|
|
// clearInterval(time); |
|
|
|
// console.log('清楚网络..') |
|
|
|
let home = 'HOME' |
|
|
|
this.getIndex(home) |
|
|
|
this.isLogin = uni.getStorageSync('isLogin') |
|
|
|
// //////console.info(this.curEndTime) |
|
|
|
this.getList() |
|
|
|
this.getMes() |
|
|
|
this.getPullMes() |
|
|
|
this.getInfo() |
|
|
|
if (this.countdownTime2 != 0) { |
|
|
|
uni.hideTabBar() |
|
|
|
} else if (this.countdownTime2 == 0 || !this.popImg) { |
|
|
|
//uni.showTabBar() |
|
|
|
uni.setTabBarStyle({ |
|
|
|
backgroundColor: "#fff", |
|
|
|
borderStyle: "black", |
|
|
|
// selectedColor: "#999", |
|
|
|
// color: "#999", |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
s++; |
|
|
|
},5000); |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
|