From 8c116459f2308e9f8564ea8f55b2ca25849b8336 Mon Sep 17 00:00:00 2001 From: 重庆迈尖科技有限公司 Date: 星期三, 08 五月 2019 09:39:44 +0800 Subject: [PATCH] no message --- BuWanVideo2.0/LoggingViewController.m | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/BuWanVideo2.0/LoggingViewController.m b/BuWanVideo2.0/LoggingViewController.m index a174ad8..3e9aafa 100755 --- a/BuWanVideo2.0/LoggingViewController.m +++ b/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=@""; + } }]; -- Gitblit v1.8.0