Commit 9847ff13a6413bf9bc6e8627024537749aa561e7

Authored by zhangxiaowen
1 parent 346ff412

no message

CNLiveSettingModule/Classes/UpdateTel/CNLiveUpdateTelController.m
@@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
16 #import "CNUserInfoManager.h" 16 #import "CNUserInfoManager.h"
17 #import "NSString+CNLiveExtension.h" 17 #import "NSString+CNLiveExtension.h"
18 #import "CNLiveCategory.h" 18 #import "CNLiveCategory.h"
  19 +#import "CNLiveBaseKit.h"
19 20
20 #import "CNLiveSettingNavigationBar.h" 21 #import "CNLiveSettingNavigationBar.h"
21 #import "CNLiveUpdateTelView.h" 22 #import "CNLiveUpdateTelView.h"
@@ -148,11 +149,11 @@ static const NSInteger timeValue = 1.5; @@ -148,11 +149,11 @@ static const NSInteger timeValue = 1.5;
148 - (YYLabel *)connection { 149 - (YYLabel *)connection {
149 if (!_connection) { 150 if (!_connection) {
150 _connection = [[YYLabel alloc] init]; 151 _connection = [[YYLabel alloc] init];
151 - [_connection setFont:UIFontMake(12)];  
152 _connection.numberOfLines = 0; 152 _connection.numberOfLines = 0;
153 NSString *str = @"若当前号码已不用或丢失,请点击联系客服"; 153 NSString *str = @"若当前号码已不用或丢失,请点击联系客服";
154 NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:str]; 154 NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:str];
155 text.color = [UIColor colorWithRed:34/255.0 green:34/255.0 blue:34/255.0 alpha:1.0]; 155 text.color = [UIColor colorWithRed:34/255.0 green:34/255.0 blue:34/255.0 alpha:1.0];
  156 + text.font = UIFontCNMake(12.0);
156 [text setTextHighlightRange:NSMakeRange(text.length-4, 4) color:[UIColor colorWithRed:44/255.0 green:209/255.0 blue:201/255.0 alpha:1.0] backgroundColor:[UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0] tapAction:^(UIView * _Nonnull containerView, NSAttributedString * _Nonnull text, NSRange range, CGRect rect) { 157 [text setTextHighlightRange:NSMakeRange(text.length-4, 4) color:[UIColor colorWithRed:44/255.0 green:209/255.0 blue:201/255.0 alpha:1.0] backgroundColor:[UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0] tapAction:^(UIView * _Nonnull containerView, NSAttributedString * _Nonnull text, NSRange range, CGRect rect) {
157 158
158 NSString *phoneStr = @"010-65832485"; 159 NSString *phoneStr = @"010-65832485";
CNLiveSettingModule/Classes/UpdateTel/CNLiveUpdateTelView.m
@@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
15 #import "NSString+CNLiveExtension.h" 15 #import "NSString+CNLiveExtension.h"
16 #import "CNUserInfoManager.h" 16 #import "CNUserInfoManager.h"
17 #import "CNLiveCategory.h" 17 #import "CNLiveCategory.h"
  18 +#import "CNLiveBaseKit.h"
18 19
19 #define TIMECOUNT 60; 20 #define TIMECOUNT 60;
20 21
@@ -97,7 +98,7 @@ static const NSInteger timeValue = 1.5; @@ -97,7 +98,7 @@ static const NSInteger timeValue = 1.5;
97 make.top.equalTo(self.lineView.mas_bottom).offset(0); 98 make.top.equalTo(self.lineView.mas_bottom).offset(0);
98 make.left.equalTo(self).offset(margin); 99 make.left.equalTo(self).offset(margin);
99 make.height.mas_equalTo(50); 100 make.height.mas_equalTo(50);
100 - make.width.mas_equalTo(45); 101 +// make.width.mas_equalTo(60);
101 }]; 102 }];
102 [self.verification mas_makeConstraints:^(MASConstraintMaker *make) { 103 [self.verification mas_makeConstraints:^(MASConstraintMaker *make) {
103 make.centerY.equalTo(self.numberLabel); 104 make.centerY.equalTo(self.numberLabel);
@@ -108,12 +109,12 @@ static const NSInteger timeValue = 1.5; @@ -108,12 +109,12 @@ static const NSInteger timeValue = 1.5;
108 [self.telTF mas_makeConstraints:^(MASConstraintMaker *make) { 109 [self.telTF mas_makeConstraints:^(MASConstraintMaker *make) {
109 make.centerY.equalTo(self.numberLabel); 110 make.centerY.equalTo(self.numberLabel);
110 make.left.equalTo(self.numberLabel.mas_right).offset(20); 111 make.left.equalTo(self.numberLabel.mas_right).offset(20);
111 - make.right.equalTo(self.verification.mas_left).offset(-10); 112 +// make.right.equalTo(self.verification.mas_left).offset(-10);
112 }]; 113 }];
113 [self.codeLabel mas_makeConstraints:^(MASConstraintMaker *make) { 114 [self.codeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
114 make.top.equalTo(self.numberLabel.mas_bottom).offset(0); 115 make.top.equalTo(self.numberLabel.mas_bottom).offset(0);
115 make.left.equalTo(self.numberLabel); 116 make.left.equalTo(self.numberLabel);
116 - make.width.mas_equalTo(45); 117 +// make.width.mas_equalTo(50);
117 make.height.mas_equalTo(50); 118 make.height.mas_equalTo(50);
118 119
119 }]; 120 }];
@@ -185,7 +186,7 @@ static const NSInteger timeValue = 1.5; @@ -185,7 +186,7 @@ static const NSInteger timeValue = 1.5;
185 if (!_countryName) { 186 if (!_countryName) {
186 _countryName = [[UILabel alloc] init]; 187 _countryName = [[UILabel alloc] init];
187 _countryName.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0]; 188 _countryName.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0];
188 - _countryName.font = [UIFont systemFontOfSize:14]; 189 + _countryName.font = UIFontCNMake(14.0);
189 _countryName.text = @"中国大陆"; 190 _countryName.text = @"中国大陆";
190 _countryName.textAlignment = NSTextAlignmentLeft; 191 _countryName.textAlignment = NSTextAlignmentLeft;
191 } 192 }
@@ -217,7 +218,7 @@ static const NSInteger timeValue = 1.5; @@ -217,7 +218,7 @@ static const NSInteger timeValue = 1.5;
217 if (!_countryCode) { 218 if (!_countryCode) {
218 _countryCode = [[UILabel alloc] init]; 219 _countryCode = [[UILabel alloc] init];
219 _countryCode.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0]; 220 _countryCode.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0];
220 - _countryCode.font = [UIFont systemFontOfSize:14]; 221 + _countryCode.font = UIFontCNMake(14.0);
221 _countryCode.text = @"+86"; 222 _countryCode.text = @"+86";
222 _countryCode.textAlignment = NSTextAlignmentLeft; 223 _countryCode.textAlignment = NSTextAlignmentLeft;
223 _countryCode.userInteractionEnabled = YES; 224 _countryCode.userInteractionEnabled = YES;
@@ -231,7 +232,7 @@ static const NSInteger timeValue = 1.5; @@ -231,7 +232,7 @@ static const NSInteger timeValue = 1.5;
231 if (!_numberLabel) { 232 if (!_numberLabel) {
232 _numberLabel = [[UILabel alloc] init]; 233 _numberLabel = [[UILabel alloc] init];
233 _numberLabel.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0]; 234 _numberLabel.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0];
234 - _numberLabel.font = [UIFont systemFontOfSize:14]; 235 + _numberLabel.font = UIFontCNMake(14.0);
235 _numberLabel.text = @"手机号"; 236 _numberLabel.text = @"手机号";
236 _numberLabel.textAlignment = NSTextAlignmentLeft; 237 _numberLabel.textAlignment = NSTextAlignmentLeft;
237 } 238 }
@@ -242,7 +243,7 @@ static const NSInteger timeValue = 1.5; @@ -242,7 +243,7 @@ static const NSInteger timeValue = 1.5;
242 if (!_codeLabel) { 243 if (!_codeLabel) {
243 _codeLabel = [[UILabel alloc] init]; 244 _codeLabel = [[UILabel alloc] init];
244 _codeLabel.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0]; 245 _codeLabel.textColor = [UIColor colorWithRed:26/255.0 green:26/255.0 blue:26/255.0 alpha:1.0];
245 - _codeLabel.font = [UIFont systemFontOfSize:14]; 246 + _codeLabel.font = UIFontCNMake(14.0);
246 _codeLabel.text = @"验证码"; 247 _codeLabel.text = @"验证码";
247 _codeLabel.textAlignment = NSTextAlignmentLeft; 248 _codeLabel.textAlignment = NSTextAlignmentLeft;
248 } 249 }
@@ -253,7 +254,7 @@ static const NSInteger timeValue = 1.5; @@ -253,7 +254,7 @@ static const NSInteger timeValue = 1.5;
253 if (!_telTF) { 254 if (!_telTF) {
254 _telTF = [[UITextField alloc] init]; 255 _telTF = [[UITextField alloc] init];
255 _telTF.textColor = [UIColor colorWithRed:34/255.0 green:34/255.0 blue:34/255.0 alpha:1.0]; 256 _telTF.textColor = [UIColor colorWithRed:34/255.0 green:34/255.0 blue:34/255.0 alpha:1.0];
256 - _telTF.font = [UIFont systemFontOfSize:14]; 257 + _telTF.font = UIFontCNMake(14.0);
257 _telTF.placeholder = @"请输入新手机号"; 258 _telTF.placeholder = @"请输入新手机号";
258 _telTF.delegate = self; 259 _telTF.delegate = self;
259 _telTF.keyboardType = UIKeyboardTypeNumberPad; 260 _telTF.keyboardType = UIKeyboardTypeNumberPad;
@@ -267,7 +268,7 @@ static const NSInteger timeValue = 1.5; @@ -267,7 +268,7 @@ static const NSInteger timeValue = 1.5;
267 if (!_codeTF) { 268 if (!_codeTF) {
268 _codeTF = [[UITextField alloc] init]; 269 _codeTF = [[UITextField alloc] init];
269 _codeTF.textColor = [UIColor colorWithRed:34/255.0 green:34/255.0 blue:34/255.0 alpha:1.0]; 270 _codeTF.textColor = [UIColor colorWithRed:34/255.0 green:34/255.0 blue:34/255.0 alpha:1.0];
270 - _codeTF.font = [UIFont systemFontOfSize:14]; 271 + _codeTF.font = UIFontCNMake(14.0);
271 _codeTF.placeholder = @"请输入验证码"; 272 _codeTF.placeholder = @"请输入验证码";
272 _codeTF.delegate = self; 273 _codeTF.delegate = self;
273 _codeTF.keyboardType = UIKeyboardTypeNumberPad; 274 _codeTF.keyboardType = UIKeyboardTypeNumberPad;
@@ -282,7 +283,7 @@ static const NSInteger timeValue = 1.5; @@ -282,7 +283,7 @@ static const NSInteger timeValue = 1.5;
282 _verification = [UIButton buttonWithType:UIButtonTypeCustom]; 283 _verification = [UIButton buttonWithType:UIButtonTypeCustom];
283 [_verification setTitle:@"获取验证码" forState:UIControlStateNormal]; 284 [_verification setTitle:@"获取验证码" forState:UIControlStateNormal];
284 [_verification setTitleColor:[UIColor colorWithRed:195/255.0 green:195/255.0 blue:195/255.0 alpha:1.0] forState:UIControlStateNormal]; 285 [_verification setTitleColor:[UIColor colorWithRed:195/255.0 green:195/255.0 blue:195/255.0 alpha:1.0] forState:UIControlStateNormal];
285 - _verification.titleLabel.font = [UIFont systemFontOfSize:14]; 286 + _verification.titleLabel.font = [UIFont systemFontOfSize:14.0];
286 _verification.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0]; 287 _verification.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0];
287 _verification.layer.cornerRadius = 15; 288 _verification.layer.cornerRadius = 15;
288 _verification.layer.masksToBounds = YES; 289 _verification.layer.masksToBounds = YES;
@@ -304,7 +305,7 @@ static const NSInteger timeValue = 1.5; @@ -304,7 +305,7 @@ static const NSInteger timeValue = 1.5;
304 _binding = [UIButton buttonWithType:UIButtonTypeCustom]; 305 _binding = [UIButton buttonWithType:UIButtonTypeCustom];
305 [_binding setTitle:@"验证后绑定新手机号" forState:UIControlStateNormal]; 306 [_binding setTitle:@"验证后绑定新手机号" forState:UIControlStateNormal];
306 [_binding setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 307 [_binding setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
307 - _binding.titleLabel.font = [UIFont systemFontOfSize:15]; 308 + _binding.titleLabel.font = UIFontCNMake(15.0);
308 _binding.backgroundColor = [UIColor colorWithRed:0/255.0 green:194/255.0 blue:0/255.0 alpha:1.0]; 309 _binding.backgroundColor = [UIColor colorWithRed:0/255.0 green:194/255.0 blue:0/255.0 alpha:1.0];
309 _binding.layer.cornerRadius = 45/2.0; 310 _binding.layer.cornerRadius = 45/2.0;
310 _binding.layer.masksToBounds = YES; 311 _binding.layer.masksToBounds = YES;