|
@@ -68,10 +68,29 @@ class MVSettingController: MVBaseController{
|
|
|
view.addSubview(protocolLab)
|
|
|
view.addSubview(logoutBtn)
|
|
|
addLayout()
|
|
|
+
|
|
|
+
|
|
|
+ logoutBtn.isHidden = !BFLoginUserInfo.shared.isLogin()
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@objc func btnClick() {
|
|
|
BFLog(message: "logout ")
|
|
|
+ let remindData:PQBaseModel = PQBaseModel()
|
|
|
+ remindData.title = "退出?"
|
|
|
+
|
|
|
+ let remindView = PQRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
+ UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
|
+ remindView.remindData = remindData
|
|
|
+ remindView.remindBlock = { [weak self] sender, _ in
|
|
|
+ if sender.tag == 2 {
|
|
|
+ PQMineViewModel.quitLogin { [weak self] _, _ in
|
|
|
+ postNotification(name: cQuitSuccesssNotiKey)
|
|
|
+ self?.logoutBtn.isHidden = true
|
|
|
+ self?.navigationController?.popViewController(animated: true)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|