fixed: 1.适配小屏幕机型
feature: 1.忘记密码新增语音和短信验证码切换功能
This commit is contained in:
@@ -13,9 +13,11 @@
|
||||
@interface ForgetViewController ()
|
||||
@property (weak, nonatomic) IBOutlet UIButton *timerButton;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *nextTepBtn;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *switchBtn;
|
||||
@property(nonatomic,copy)NSString*verifyData;
|
||||
@property(nonatomic,copy) NSString *areaCode;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@implementation ForgetViewController
|
||||
@@ -124,11 +126,11 @@
|
||||
-(void)getVerifycode{
|
||||
|
||||
|
||||
[IFISHHTTPTOOL getverifyWithTimerButton:_timerButton addphoneNumber:self.phoneNumberFiled.text zone:self.areaCode result:^(NSError *err) {
|
||||
BOOL isTextCode = [[_switchBtn titleForState:UIControlStateNormal] isEqualToString:@"语音验证码"];
|
||||
[IFISHHTTPTOOL getverifyWithTimerButton:_timerButton addphoneNumber:self.phoneNumberFiled.text zone:self.areaCode isTextCode:isTextCode result:^(NSError *err) {
|
||||
|
||||
}];
|
||||
|
||||
|
||||
}
|
||||
|
||||
#define mark - 获取阿里验证码 已去
|
||||
@@ -236,4 +238,16 @@
|
||||
|
||||
}
|
||||
|
||||
#pragma mark -- Actions --
|
||||
// 切换语音验证码还是短信验证码
|
||||
- (IBAction)switchAction:(UIButton* )sender {
|
||||
if ([[self.timerButton titleForState:UIControlStateNormal] isEqualToString:@"语音验证码"]) {
|
||||
[self.timerButton setTitle:@"短信验证码" forState:UIControlStateNormal];
|
||||
[sender setTitle:@"语音验证码" forState:UIControlStateNormal];
|
||||
} else if ([[self.timerButton titleForState:UIControlStateNormal] isEqualToString:@"短信验证码"]) {
|
||||
[self.timerButton setTitle:@"语音验证码" forState:UIControlStateNormal];
|
||||
[sender setTitle:@"短信验证码" forState:UIControlStateNormal];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user