9 changed files with 4325 additions and 116 deletions
@ -1,58 +0,0 @@ |
|||
// #import <CoreTelephony/CTCellularData.h>
|
|||
// // 尝试解决IOS白屏问题
|
|||
// //获取网络权限
|
|||
// - (void)checkNetworkPermissions{
|
|||
// CTCellularData *cellularData = [[CTCellularData alloc] init];
|
|||
// // 状态发生变化时调用
|
|||
// cellularData.cellularDataRestrictionDidUpdateNotifier = ^(CTCellularDataRestrictedState restrictedState) {
|
|||
// switch (restrictedState) {
|
|||
// case kCTCellularDataRestrictedStateUnknown:
|
|||
// NSLog(@"蜂窝移动网络状态:未知");
|
|||
// break;
|
|||
// case kCTCellularDataRestricted:
|
|||
// NSLog(@"蜂窝移动网络状态:关闭");
|
|||
// break;
|
|||
// case kCTCellularDataNotRestricted:
|
|||
// NSLog(@"蜂窝移动网络状态:开启");
|
|||
// break;
|
|||
|
|||
// default:
|
|||
// break;
|
|||
// }
|
|||
// };
|
|||
// }
|
|||
/** |
|||
* 全局混入型 |
|||
*/ |
|||
// export default{
|
|||
// data(){
|
|||
// return {
|
|||
// //设置默认的分享参数
|
|||
// typee: ''
|
|||
// }
|
|||
// },
|
|||
// onShareAppMessage(res) {
|
|||
// return {
|
|||
// let that = this;
|
|||
// let s = 0;
|
|||
// let time = setInterval(() => {
|
|||
// uni.getNetworkType({
|
|||
// success: (res) => {
|
|||
// console.log(res.networkType, s);
|
|||
// if (res.networkType == 'none') {
|
|||
// uni.showToast({
|
|||
// icon: 'none',
|
|||
// title: 'Please connect to the network',
|
|||
// duration: 3000,
|
|||
// })
|
|||
// } else if (res.networkType !== 'none') {
|
|||
// that.typee = 2;
|
|||
// clearInterval(time);
|
|||
// }
|
|||
// }
|
|||
// })
|
|||
// s++;
|
|||
// }, 1);
|
|||
// }
|
|||
// }
|
|||
// }
|
|||
File diff suppressed because it is too large
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 6.5 KiB |
Loading…
Reference in new issue