|
|
|
@ -216,7 +216,6 @@ |
|
|
|
uni.getNetworkType({ |
|
|
|
success: (res) => { |
|
|
|
console.log(res.networkType, s); |
|
|
|
|
|
|
|
if (res.networkType !== 'none') { |
|
|
|
that.typee = 2; |
|
|
|
clearInterval(time); |
|
|
|
@ -228,6 +227,7 @@ |
|
|
|
this.getMes() |
|
|
|
this.getPullMes() |
|
|
|
this.getInfo() |
|
|
|
this.checkNetwork() |
|
|
|
if (this.countdownTime2 != 0) { |
|
|
|
uni.hideTabBar() |
|
|
|
} else if (this.countdownTime2 == 0 || !this.popImg) { |
|
|
|
@ -244,12 +244,14 @@ |
|
|
|
}) |
|
|
|
s++; |
|
|
|
}, 5000); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
this.getimgheight() |
|
|
|
this.getimgheight1() |
|
|
|
this.getimgheight2() |
|
|
|
this.checkNetwork() |
|
|
|
console.log(this.open_img) |
|
|
|
if (this.open_img) { |
|
|
|
setTimeout(() => { |
|
|
|
@ -265,11 +267,13 @@ |
|
|
|
this.getPullMes() |
|
|
|
this.getimgheight() |
|
|
|
this.getimgheight2() |
|
|
|
this.checkNetwork() |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.isLogin = uni.getStorageSync('isLogin') |
|
|
|
// console.log(this.isLogin) |
|
|
|
uni.hideTabBar() |
|
|
|
this.checkNetwork() |
|
|
|
this.getList() |
|
|
|
this.getMes() |
|
|
|
this.sum = 0 |
|
|
|
@ -319,6 +323,23 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
checkNetwork(){ |
|
|
|
uni.getNetworkType({ |
|
|
|
complete:function(res){ |
|
|
|
// console.log(res.networkType) |
|
|
|
if(res.networkType=='none'){ |
|
|
|
setTimeout(()=>{ |
|
|
|
uni.showToast({ |
|
|
|
icon:'none', |
|
|
|
title:'Please connect to the network', |
|
|
|
duration:3000, |
|
|
|
}) |
|
|
|
},200) |
|
|
|
// return false |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
handlechange(e) { |
|
|
|
this.mycurrent = e.detail.current |
|
|
|
}, |
|
|
|
@ -1401,7 +1422,7 @@ |
|
|
|
<!-- class="item_img"> --> |
|
|
|
<image :src="item1.block_pic" mode="" |
|
|
|
:style="{width:(item.zone_code=='HONLIST2')?420+'rpx':'',height:item.zone_column+'rpx'}" |
|
|
|
@click="imgTo(itesm1)"></image> |
|
|
|
@click="imgTo(item1)"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 轮播图 --> |
|
|
|
|