|
@@ -50,6 +50,13 @@
|
|
desc = @"授权失败,请重新扫码授权";
|
|
desc = @"授权失败,请重新扫码授权";
|
|
headTitle = @"授权登录";
|
|
headTitle = @"授权登录";
|
|
}
|
|
}
|
|
|
|
+ else if (self.failType == SCANFAIL_UNSUPPORAUTH) { // 不支持授权
|
|
|
|
+ imageName = @"scan_authError";
|
|
|
|
+ title = @"授权失败";
|
|
|
|
+ desc = @"";
|
|
|
|
+ headTitle = @"授权登录";
|
|
|
|
+ [self addNoSupportAttrDesc];
|
|
|
|
+ }
|
|
else if (self.failType == SCANFAIL_UNRECOGNIZE) { // 无法识别
|
|
else if (self.failType == SCANFAIL_UNRECOGNIZE) { // 无法识别
|
|
imageName = @"scan_codeExpired";
|
|
imageName = @"scan_codeExpired";
|
|
title = @"无法识别";
|
|
title = @"无法识别";
|
|
@@ -62,6 +69,13 @@
|
|
[self.bodyView configWithImageName:imageName title:title desc:desc];
|
|
[self.bodyView configWithImageName:imageName title:title desc:desc];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+- (void)addNoSupportAttrDesc {
|
|
|
|
+ NSString *tipsMsg = @"您的账号暂不支持登录「乐教通」";
|
|
|
|
+ NSMutableAttributedString *attrs = [[NSMutableAttributedString alloc] initWithString:tipsMsg attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:16.0f], NSForegroundColorAttributeName:HexRGB(0x777777)}];
|
|
|
|
+ [attrs addAttributes:@{NSForegroundColorAttributeName:THEMECOLOR} range:[tipsMsg rangeOfString:@"「乐教通」"]];
|
|
|
|
+ [self.bodyView configAttrDesc:attrs];
|
|
|
|
+}
|
|
|
|
+
|
|
- (void)backAction {
|
|
- (void)backAction {
|
|
[self.navigationController popToRootViewControllerAnimated:YES];
|
|
[self.navigationController popToRootViewControllerAnimated:YES];
|
|
}
|
|
}
|