|
@@ -86,6 +86,10 @@ class MVLoginController: MVBaseController {
|
|
remindBtn.setTitle(" \(remindTitle ?? "登录") ", for: .normal)
|
|
remindBtn.setTitle(" \(remindTitle ?? "登录") ", for: .normal)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @objc override func backBtnClick() {
|
|
|
|
+ dismiss(animated: true, completion: nil)
|
|
|
|
+ }
|
|
|
|
|
|
override func viewDidLoad() {
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
super.viewDidLoad()
|
|
@@ -109,6 +113,12 @@ class MVLoginController: MVBaseController {
|
|
self?.addLayout()
|
|
self?.addLayout()
|
|
self?.phoneLoginBtn.isHidden = !PQSingletoMemoryUtil.shared.needLogin
|
|
self?.phoneLoginBtn.isHidden = !PQSingletoMemoryUtil.shared.needLogin
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ IconView.snp.makeConstraints { make in
|
|
|
|
+ make.top.equalTo(view).offset(241)
|
|
|
|
+ make.centerX.equalTo(view)
|
|
|
|
+ make.height.width.equalTo(260)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
override func viewWillAppear(_: Bool) {
|
|
override func viewWillAppear(_: Bool) {
|
|
@@ -131,11 +141,7 @@ class MVLoginController: MVBaseController {
|
|
make.right.equalTo(view).offset(-cDefaultMargin * 2)
|
|
make.right.equalTo(view).offset(-cDefaultMargin * 2)
|
|
make.height.equalTo(cScreenHeigth <= 568 ? cDefaultMargin * 4 : cDefaultMargin * 6)
|
|
make.height.equalTo(cScreenHeigth <= 568 ? cDefaultMargin * 4 : cDefaultMargin * 6)
|
|
}
|
|
}
|
|
- IconView.snp.makeConstraints { make in
|
|
|
|
- make.top.equalTo(view).offset(241)
|
|
|
|
- make.centerX.equalTo(view)
|
|
|
|
- make.height.width.equalTo(260)
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
remindBtn.snp.makeConstraints { make in
|
|
remindBtn.snp.makeConstraints { make in
|
|
// make.width.equalTo(cDefaultMargin * 13)
|
|
// make.width.equalTo(cDefaultMargin * 13)
|
|
make.height.equalTo(cDefaultMargin * 4)
|
|
make.height.equalTo(cDefaultMargin * 4)
|
|
@@ -231,7 +237,7 @@ extension MVLoginController: ASAuthorizationControllerDelegate, ASAuthorizationC
|
|
cShowHUB(superView: nil, msg: "登录失败,请重试~")
|
|
cShowHUB(superView: nil, msg: "登录失败,请重试~")
|
|
} else {
|
|
} else {
|
|
cShowHUB(superView: nil, msg: "登录成功")
|
|
cShowHUB(superView: nil, msg: "登录成功")
|
|
- self?.navigationController?.dismiss(animated: true, completion: nil)
|
|
|
|
|
|
+ self?.dismiss(animated: true, completion: nil)
|
|
postNotification(name: cLoginSuccesssNotiKey)
|
|
postNotification(name: cLoginSuccesssNotiKey)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -294,7 +300,8 @@ extension MVLoginController: ASAuthorizationControllerDelegate, ASAuthorizationC
|
|
cShowHUB(superView: nil, msg: errorMsg)
|
|
cShowHUB(superView: nil, msg: errorMsg)
|
|
} else {
|
|
} else {
|
|
cShowHUB(superView: nil, msg: "登录成功")
|
|
cShowHUB(superView: nil, msg: "登录成功")
|
|
- self?.navigationController?.popViewController(animated: true)
|
|
|
|
|
|
+
|
|
|
|
+ self?.dismiss(animated: true, completion: nil)
|
|
postNotification(name: cLoginSuccesssNotiKey)
|
|
postNotification(name: cLoginSuccesssNotiKey)
|
|
}
|
|
}
|
|
}
|
|
}
|