|
@@ -82,6 +82,18 @@
|
|
params[@"username"] = self.xxx_emailTFV.xxx_emailTF.text;
|
|
params[@"username"] = self.xxx_emailTFV.xxx_emailTF.text;
|
|
params[@"password"] = self.xxx_passwordV.xxx_passwordTF.text;
|
|
params[@"password"] = self.xxx_passwordV.xxx_passwordTF.text;
|
|
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
|
|
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
|
|
|
|
+ [ASNetTools xxx_loginWithParam:params success:^(id _Nonnull result) {
|
|
|
|
+ [MBProgressHUD hideHUDForView :self.view animated:YES];
|
|
|
|
+ @weakify(self)
|
|
|
|
+ [self.view makeToast:@"Login Suecess" duration:2 position:CSToastPositionCenter title:nil image:nil style:nil completion:^(BOOL didTap) {
|
|
|
|
+ @strongify(self)
|
|
|
|
+ [self handle_closeEvent:nil];
|
|
|
|
+ }];
|
|
|
|
+ } faild:^(NSString * _Nonnull code, NSString * _Nonnull msg) {
|
|
|
|
+ [MBProgressHUD hideHUDForView :self.view animated:YES];
|
|
|
|
+ [self.view makeToast:msg duration:2 position:CSToastPositionCenter];
|
|
|
|
+ }];
|
|
|
|
+ /*
|
|
[PPNetworkHelper POST:urlStr parameters:params success:^(id responseObject) {
|
|
[PPNetworkHelper POST:urlStr parameters:params success:^(id responseObject) {
|
|
[MBProgressHUD hideHUDForView :self.view animated:YES];
|
|
[MBProgressHUD hideHUDForView :self.view animated:YES];
|
|
NSDictionary *tmpDic= responseObject;
|
|
NSDictionary *tmpDic= responseObject;
|
|
@@ -115,6 +127,7 @@
|
|
[self.view makeToast:errorMsg duration:2 position:CSToastPositionCenter];
|
|
[self.view makeToast:errorMsg duration:2 position:CSToastPositionCenter];
|
|
}
|
|
}
|
|
}];
|
|
}];
|
|
|
|
+ */
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|