Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PhoneManager
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yang
PhoneManager
Commits
a8bf4176
Commit
a8bf4176
authored
May 23, 2025
by
yqz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
47c88f21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
SettingViewController.swift
.../Page/Settings/ViewController/SettingViewController.swift
+7
-4
EmailLoginController.swift
...Class/Session/Email/Controller/EmailLoginController.swift
+4
-3
No files found.
PhoneManager/Class/Page/Settings/ViewController/SettingViewController.swift
View file @
a8bf4176
...
@@ -154,7 +154,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
...
@@ -154,7 +154,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
switch
detailModel
.
title
{
switch
detailModel
.
title
{
case
settingLabels
.
Email
.
rawValue
:
case
settingLabels
.
Email
.
rawValue
:
emailLoginSignOut
()
emailLoginSignOut
(
indexPath
)
break
break
case
settingLabels
.
UsePIN
.
rawValue
:
case
settingLabels
.
UsePIN
.
rawValue
:
...
@@ -313,7 +313,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
...
@@ -313,7 +313,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
}
}
// MARK: - 邮件
// MARK: - 邮件
private
func
emailLoginSignOut
()
->
Void
{
private
func
emailLoginSignOut
(
_
indexPath
:
IndexPath
)
->
Void
{
if
PMEmailManager
.
shareManager
.
loginUser
!=
nil
{
if
PMEmailManager
.
shareManager
.
loginUser
!=
nil
{
self
.
view
.
showBlur
()
self
.
view
.
showBlur
()
let
alert
=
EmailContentDelAlert
(
state
:
.
emailSignOut
)
let
alert
=
EmailContentDelAlert
(
state
:
.
emailSignOut
)
...
@@ -323,7 +323,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
...
@@ -323,7 +323,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
PMEmailManager
.
shareManager
.
signOut
{[
weak
self
]
success
in
PMEmailManager
.
shareManager
.
signOut
{[
weak
self
]
success
in
if
success
{
if
success
{
EmailFilterManager
.
share
.
signOut
()
EmailFilterManager
.
share
.
signOut
()
self
?
.
tableView
.
reloadRows
(
at
:
[
IndexPath
(
row
:
0
,
section
:
1
)
],
with
:
.
none
)
self
?
.
tableView
.
reloadRows
(
at
:
[
indexPath
],
with
:
.
none
)
}
}
}
}
}
}
...
@@ -351,7 +351,10 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
...
@@ -351,7 +351,10 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
let
vc
:
EmailLoginController
=
EmailLoginController
()
let
vc
:
EmailLoginController
=
EmailLoginController
()
vc
.
state
=
.
home
vc
.
state
=
.
home
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
tableView
.
reloadData
()
vc
.
callblock
=
{
[
weak
self
]
in
self
?
.
tableView
.
reloadRows
(
at
:
[
indexPath
],
with
:
.
none
)
}
// self.tableView.reloadData()
}
}
}
}
...
...
PhoneManager/Class/Session/Email/Controller/EmailLoginController.swift
View file @
a8bf4176
...
@@ -54,14 +54,15 @@ class EmailLoginController: BaseViewController {
...
@@ -54,14 +54,15 @@ class EmailLoginController: BaseViewController {
if
self
.
state
==
.
home
{
if
self
.
state
==
.
home
{
let
gourp
=
EmailCleanController
()
let
gourp
=
EmailCleanController
()
var
navigation
=
self
.
navigationController
?
.
viewControllers
var
navigation
=
self
.
navigationController
?
.
viewControllers
if
self
.
callblock
!=
nil
{
self
.
callblock
!
()
}
if
navigation
?
.
count
??
0
>
1
{
if
navigation
?
.
count
??
0
>
1
{
navigation
!
[
navigation
!.
count
-
1
]
=
gourp
navigation
!
[
navigation
!.
count
-
1
]
=
gourp
self
.
navigationController
?
.
setViewControllers
(
navigation
??
[],
animated
:
true
)
self
.
navigationController
?
.
setViewControllers
(
navigation
??
[],
animated
:
true
)
}
}
}
else
{
}
else
{
if
self
.
callblock
!=
nil
{
self
.
callblock
!
()
}
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment