From a8c2422e12becdfc3da0907ff5b589f7f86d0dd5 Mon Sep 17 00:00:00 2001
From: younger_times <841720330@qq.com>
Date: 星期六, 06 五月 2023 16:18:46 +0800
Subject: [PATCH] 完成功能

---
 BrokerDriver/Profile/VC/PersonalCenterVC.swift |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/BrokerDriver/Profile/VC/PersonalCenterVC.swift b/BrokerDriver/Profile/VC/PersonalCenterVC.swift
index 6bd2e69..e666495 100644
--- a/BrokerDriver/Profile/VC/PersonalCenterVC.swift
+++ b/BrokerDriver/Profile/VC/PersonalCenterVC.swift
@@ -42,12 +42,10 @@
     }
 
     @IBAction func logOutAction(_ sender: UIButton) {
-        showAlert(title: "Would you like to log out?", message: nil, buttonTitles: ["YES","NO"], highlightedButtonIndex: 0) { index in
-            if index == 0{
-                let nav = BaseNavigationController(rootViewController: LoginVC())
-                UserViewModel.clearUserInfo()
-                screnDelegate?.window?.rootViewController = nav
-            }
+        CommonAlertView.show(title: "Prompt!", content: "Would you like to log out?", bt1: "No just yet", bt2: "Logout") {
+            let nav = BaseNavigationController(rootViewController: LoginVC())
+            UserViewModel.clearUserInfo()
+            screnDelegate?.window?.rootViewController = nav
         }
     }
 }

--
Gitblit v1.7.1