iOS 金服跳转到金融

2017.3.29

//前往金融投资

- (IBAction)gotoJinJiaAction:(id)sender {

[selfwaitLoading];

@weakSelf(self);

//注册金融

[_viewModelregisterJinJiaAccount:[GlobalServiceshareInstance].user.phoneNumbersuccess:^(NSString*iOSDownUrl) {

[weakSelfstopLoading];

//已装金融,直接打开

NSURL*url = [NSURLURLWithString:@"jjjr:"];

if(![[UIApplicationsharedApplication]openURL:url]) {//未安装金佳金融

[HUDHelperalertTitle:@"您还未安装金融"message:@"是否去下载"sure:@"下载"cancel:@"取消"sureAction:^{

[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:iOSDownUrl]];

}];

}

}failure:^(NSString*msg) {

[weakSelfstopLoading];

[weakSelftipMessage:msg];

}];

}

你可能感兴趣的:(iOS 金服跳转到金融)