重庆迈尖科技有限公司
2019-05-08 8c116459f2308e9f8564ea8f55b2ca25849b8336
BuWanVideo2.0/LoggingViewController.m
@@ -263,6 +263,13 @@
    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{
@@ -339,10 +346,19 @@
 响应账号登录事件
 */
-(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) {
@@ -369,6 +385,8 @@
                
            }else{
                [SVProgressHUD showErrorWithStatus:[NSString stringWithFormat:@"账号或密码错误"]];
                PasswordNumber.text=@"";
                
            }
        }];