| | |
| | | import TTTAttributedLabel |
| | | import SwiftDate |
| | | |
| | | let LoginSuccess_Noti = Notification.Name.init("LoginSuccess_Noti") |
| | | |
| | | /// 登录注册 |
| | | class LoginVC: YYViewController { |
| | |
| | | self.hide() |
| | | self.dismiss(animated: true, completion: nil) |
| | | self.userInfoViewModel.queryUserInfo() |
| | | NotificationCenter.default.post(name: LoginSuccess_Noti, object: nil) |
| | | break |
| | | case .error(let error): |
| | | self.hide() |
| | |
| | | break |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | |
| | | |
| | | /// 登录处理 |
| | | viewModel.wxLoginSubject |
| | | .subscribeOn(MainScheduler.instance) |
| | |
| | | app.loginInfo.save(model: data) |
| | | self.userInfoViewModel.queryUserInfo() |
| | | self.dismiss(animated: true, completion: nil) |
| | | NotificationCenter.default.post(name: LoginSuccess_Noti, object: nil) |
| | | } |
| | | } |
| | | |