直接跳转淘宝

This commit is contained in:
kai60 2021-10-15 13:06:02 +08:00
parent 22673fef3d
commit cb537f1949
8 changed files with 11 additions and 19 deletions

View File

@ -15813,7 +15813,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = WFX8GD5HFX; DEVELOPMENT_TEAM = WFX8GD5HFX;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
ENABLE_TESTABILITY = YES; ENABLE_TESTABILITY = YES;
@ -15931,7 +15931,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = WFX8GD5HFX; DEVELOPMENT_TEAM = WFX8GD5HFX;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
ENABLE_TESTABILITY = YES; ENABLE_TESTABILITY = YES;

View File

@ -97,22 +97,14 @@ Strong UILabel *subTitleLabel;
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:@"需要定位权限才能获取wifi信息给设备配网来添加设备" preferredStyle:UIAlertControllerStyleAlert]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:@"需要定位权限才能获取wifi信息给设备配网来添加设备" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:@"打开定位" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { UIAlertAction *ok = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; [self.navigationController popViewControllerAnimated:YES];
if([[UIApplication sharedApplication] canOpenURL:url]) {
if (@available(iOS 10.0, *)) {
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}else {
[[UIApplication sharedApplication] openURL:url];
}
}
}]; }];
UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) { UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
[self.navigationController popViewControllerAnimated:YES]; [self.navigationController popViewControllerAnimated:YES];
}]; }];
[alert addAction:ok]; [alert addAction:ok];
[alert addAction:cancel]; //[alert addAction:cancel];
[self presentViewController:alert animated:YES completion:nil]; [self presentViewController:alert animated:YES completion:nil];

View File

@ -130,7 +130,7 @@ UIGestureRecognizerDelegate>
}]; }];
[alert addAction:cancel]; [alert addAction:cancel];
[alert addAction:ok]; [alert addAction:ok];
[self presentViewController:alert animated:YES completion:nil]; // [self presentViewController:alert animated:YES completion:nil];
} }
#pragma mark - #pragma mark -
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{ -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{

View File

@ -95,7 +95,7 @@
[alert addAction:cancel]; [alert addAction:cancel];
[alert addAction:ok]; [alert addAction:ok];
[self.window.rootViewController presentViewController:alert animated:YES completion:nil]; // [self.window.rootViewController presentViewController:alert animated:YES completion:nil];
} }
#pragma mark - #pragma mark -
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{ -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{

View File

@ -120,7 +120,7 @@
}]; }];
[alert addAction:cancel]; [alert addAction:cancel];
[alert addAction:ok]; [alert addAction:ok];
[self presentViewController:alert animated:YES completion:nil]; // [self presentViewController:alert animated:YES completion:nil];
} }
#pragma mark - #pragma mark -
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{ -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{

View File

@ -188,7 +188,7 @@
}]; }];
[alert addAction:cancel]; [alert addAction:cancel];
[alert addAction:ok]; [alert addAction:ok];
[self presentViewController:alert animated:YES completion:nil]; //[self presentViewController:alert animated:YES completion:nil];
} }
#pragma mark - #pragma mark -
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{ -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{

View File

@ -564,7 +564,7 @@
}]; }];
[alert addAction:cancel]; [alert addAction:cancel];
[alert addAction:ok]; [alert addAction:ok];
[self presentViewController:alert animated:YES completion:nil]; // [self presentViewController:alert animated:YES completion:nil];
} }
#pragma mark - #pragma mark -
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{ -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{

View File

@ -162,7 +162,7 @@ extern BOOL formLogIn;
}]; }];
[alert addAction:cancel]; [alert addAction:cancel];
[alert addAction:ok]; [alert addAction:ok];
[self presentViewController:alert animated:YES completion:nil]; // [self presentViewController:alert animated:YES completion:nil];
} }
#pragma mark - 定位成功 #pragma mark - 定位成功
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{ -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{