| | |
| | | QQLabel.font=[UIFont systemFontOfSize:17]; |
| | | [thirdView addSubview:QQLabel]; |
| | | |
| | | if (![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mqq://"]]) { |
| | | thirdView.hidden = YES; |
| | | }else{ |
| | | thirdView.hidden = NO; |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ |
| | |
| | | 响应账号登录事件 |
| | | */ |
| | | -(void)LoginClick{ |
| | | if(accountNumber.text.length == 0){ |
| | | [Share ShakeView:accountNumber WithInfomation:@"请输入正确的邮箱地址!"]; |
| | | return; |
| | | } |
| | | |
| | | if (![Share isEmailAddress:accountNumber.text]) { |
| | | //账号格式不正确 |
| | | [Share ShakeView:accountNumber WithInfomation:@"请输入正确的邮箱地址!"]; |
| | | }else if(PasswordNumber.text.length == 0){ |
| | | [SVProgressHUD showErrorWithStatus:[NSString stringWithFormat:@"账号或密码错误"]]; |
| | | return; |
| | | }else{ |
| | | |
| | | [SVProgressHUD showWithStatus:@"登陆中"]; |
| | | [[YTHNetInterface startInterface] getloginWithUid:[YTHsharedManger startManger].Uid WithSystem:@"1" WithEmail:accountNumber.text WithPwd:PasswordNumber.text withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | |
| | | |
| | | }else{ |
| | | [SVProgressHUD showErrorWithStatus:[NSString stringWithFormat:@"账号或密码错误"]]; |
| | | PasswordNumber.text=@""; |
| | | |
| | | |
| | | } |
| | | }]; |