|
|
|
@ -17,6 +17,30 @@ |
|
|
|
uni.setStorageSync('firstTime','1'); |
|
|
|
} |
|
|
|
addAppCount({channel:channel,is_install:isInstall}); |
|
|
|
|
|
|
|
// uni.getNetworkType({ |
|
|
|
// success: function(res) { |
|
|
|
// console.log(res.networkType); |
|
|
|
// //网络类型 wifi、2g、3g、4g、ethernet、unknown、none |
|
|
|
// setTimeout(function() { |
|
|
|
// if (res.networkType === "none") { |
|
|
|
// console.log("当前无网络", that.typee); |
|
|
|
// uni.showToast({ |
|
|
|
// title: '网络不佳,请重新打开........', |
|
|
|
// duration: 20000 |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// console.log("有网络", that.typee); |
|
|
|
// uni.showToast({ |
|
|
|
// title: '网络不佳,请重新打开........', |
|
|
|
// duration: 2000 |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// }, 1) |
|
|
|
// } |
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log('App Launch') |
|
|
|
uni.hideTabBar() |
|
|
|
@ -84,6 +108,7 @@ |
|
|
|
let extras = result.extras |
|
|
|
console.log("自定义消息", result) |
|
|
|
}) |
|
|
|
|
|
|
|
//#endif |
|
|
|
}, |
|
|
|
|
|
|
|
@ -94,7 +119,7 @@ |
|
|
|
onHide: function() { |
|
|
|
// console.log('App Hide') |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
|