|
@@ -212,8 +212,9 @@
|
|
|
- (void)qrcodeBtnPressed{
|
|
|
QRCodeScanForChangeDeviceViewController *nextVC = [[QRCodeScanForChangeDeviceViewController alloc] init];
|
|
|
[self.navigationController pushViewController:nextVC animated:YES];
|
|
|
- nextVC.didScanErrorFun = ^{
|
|
|
+ nextVC.didScanErrorFun = ^(NSInteger code) {
|
|
|
self->_isNeedToShowAleatType = YES;
|
|
|
+ self->_getSNMsgcode = code;
|
|
|
};
|
|
|
}
|
|
|
|
|
@@ -242,6 +243,14 @@
|
|
|
NSString *linkErrTitle = NSLocalizedString(@"scan_sn_data_error_title",nil);
|
|
|
NSString *linkErrTip = NSLocalizedString(@"scan_sn_data_error_content",nil);
|
|
|
|
|
|
+ if(_getSNMsgcode == 202){
|
|
|
+ linkErrTitle = NSLocalizedString(@"get_sn_msg_202_title",nil);
|
|
|
+ linkErrTip = NSLocalizedString(@"get_sn_msg_202_content",nil);
|
|
|
+ }else if (_getSNMsgcode == 201){
|
|
|
+ linkErrTitle = NSLocalizedString(@"get_sn_msg_201_title",nil);
|
|
|
+ linkErrTip = NSLocalizedString(@"get_sn_msg_201_content",nil);
|
|
|
+ }
|
|
|
+
|
|
|
ComontAlretViewController *linkFailAlretVC= [[ComontAlretViewController alloc] initWithTiTle:linkErrTitle
|
|
|
msg:linkErrTip
|
|
|
imageStr:nil
|
|
@@ -256,7 +265,7 @@
|
|
|
|
|
|
linkFailAlretVC.modalPresentationStyle = UIModalPresentationCustom;
|
|
|
|
|
|
- [linkFailAlretVC setMsgTextAlignment:NSTextAlignmentLeft];
|
|
|
+ //[linkFailAlretVC setMsgTextAlignment:NSTextAlignmentLeft];
|
|
|
[self presentViewController:linkFailAlretVC animated:YES completion:^{
|
|
|
linkFailAlretVC.view.superview.backgroundColor = [UIColor clearColor];
|
|
|
}];
|