|
|
@@ -212,6 +212,9 @@
|
|
|
- (void)qrcodeBtnPressed{
|
|
|
QRCodeScanForChangeDeviceViewController *nextVC = [[QRCodeScanForChangeDeviceViewController alloc] init];
|
|
|
[self.navigationController pushViewController:nextVC animated:YES];
|
|
|
+ nextVC.didScanErrorFun = ^{
|
|
|
+ self->_isNeedToShowAleatType = YES;
|
|
|
+ };
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
@@ -224,4 +227,38 @@
|
|
|
}
|
|
|
*/
|
|
|
|
|
|
+- (void)viewDidAppear:(BOOL)animated
|
|
|
+{
|
|
|
+ [super viewDidAppear:animated];
|
|
|
+ if(_isNeedToShowAleatType){
|
|
|
+ [self showAlertFun];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+- (void)showAlertFun
|
|
|
+{
|
|
|
+
|
|
|
+
|
|
|
+ NSString *linkErrTitle = NSLocalizedString(@"scan_sn_data_error_title",nil);
|
|
|
+ NSString *linkErrTip = NSLocalizedString(@"scan_sn_data_error_content",nil);
|
|
|
+
|
|
|
+ ComontAlretViewController *linkFailAlretVC= [[ComontAlretViewController alloc] initWithTiTle:linkErrTitle
|
|
|
+ msg:linkErrTip
|
|
|
+ imageStr:nil
|
|
|
+ cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
|
|
|
+ okTitle:nil isOkBtnHighlight:NO
|
|
|
+ didClickOk:^{
|
|
|
+
|
|
|
+
|
|
|
+ } didClickCancel:^{
|
|
|
+
|
|
|
+ }];
|
|
|
+
|
|
|
+ linkFailAlretVC.modalPresentationStyle = UIModalPresentationCustom;
|
|
|
+
|
|
|
+ [linkFailAlretVC setMsgTextAlignment:NSTextAlignmentLeft];
|
|
|
+ [self presentViewController:linkFailAlretVC animated:YES completion:^{
|
|
|
+ linkFailAlretVC.view.superview.backgroundColor = [UIColor clearColor];
|
|
|
+ }];
|
|
|
+}
|
|
|
@end
|