修复bug

This commit is contained in:
liyuhua
2023-08-09 15:42:15 +08:00
parent 7a1ffa871a
commit 00e4fd98bd
5 changed files with 44 additions and 78 deletions

View File

@@ -45,7 +45,8 @@
- (void)setConfigs {
self.title = YMLocalizedString(@"XPLoginBindPhoneResultViewController0");
NSMutableAttributedString *titleAtt = [[NSMutableAttributedString alloc]initWithString:YMLocalizedString(@"XPLoginBindPhoneResultViewController1") attributes:@{NSFontAttributeName:kFontSemibold(16),NSForegroundColorAttributeName:[DJDKMIMOMColor inputTextColor]}];
NSAttributedString *phoneAtt = [[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"\n%@ %@",self.userInfo.phoneAreaCode,self.userInfo.phone] attributes:@{NSFontAttributeName:kFontSemibold(16),NSForegroundColorAttributeName:UIColorFromRGB(0x9168FA)}];
NSString *phone = self.userInfo.phone.length > 0 ? self.userInfo.phone : @"";
NSAttributedString *phoneAtt = [[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"\n%@ %@",self.userInfo.phoneAreaCode, phone] attributes:@{NSFontAttributeName:kFontSemibold(16),NSForegroundColorAttributeName:UIColorFromRGB(0x9168FA)}];
[titleAtt appendAttributedString:phoneAtt];
self.phoneLabel.attributedText = titleAtt;
}