Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
f4679e92
Commit
f4679e92
authored
May 21, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 退出登录二次提醒弹窗
parent
128920e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
YHDeviceInfoViewController.swift
...asses/Modules/Mine(我的)/C/YHDeviceInfoViewController.swift
+1
-0
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+9
-2
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHDeviceInfoViewController.swift
View file @
f4679e92
...
...
@@ -40,6 +40,7 @@ class YHDeviceInfoViewController: YHBaseViewController {
var
info
=
"deviceToken:
\n
"
+
(
YHLoginManager
.
shared
.
deviceTokenModel
.
deviceToken
)
info
+=
"
\n
"
info
+=
"
\n
registerId:
\n
"
+
(
YHLoginManager
.
shared
.
deviceTokenModel
.
registerId
)
printLog
(
"
\(
info
)
"
)
DispatchQueue
.
main
.
async
{
self
.
deviceInfoLabel
.
text
=
info
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
f4679e92
...
...
@@ -30,7 +30,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
btn
.
setTitleColor
(
UIColor
(
hexString
:
"#313131"
),
for
:
.
normal
)
btn
.
backgroundColor
=
.
contentBkgColor
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
addTarget
(
self
,
action
:
#selector(
logout
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
didLogoutBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
...
...
@@ -142,6 +142,14 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
#endif
}
@objc
func
didLogoutBtnClicked
()
{
YHCommonAlertView
.
show
(
""
,
"退出登录"
,
"取消"
,
"确定"
,
fullGuestureEnable
:
false
)
{
}
callBack
:
{
self
.
logout
()
}
}
@objc
func
logout
()
{
YHHUD
.
show
(
.
progress
(
message
:
"退出登录中..."
))
...
...
@@ -166,7 +174,6 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
msg
=
error
.
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
...
...
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