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
ea3ab492
Commit
ea3ab492
authored
Jun 27, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录之后的逻辑
parent
4e482777
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
19 deletions
+23
-19
YHCodeSueecssViewController.swift
...ses/Modules/Login(登录)/C/YHCodeSueecssViewController.swift
+18
-18
YHUserInfoSettingViewController.swift
...Modules/Login(登录)/C/YHUserInfoSettingViewController.swift
+5
-1
No files found.
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHCodeSueecssViewController.swift
View file @
ea3ab492
...
@@ -169,12 +169,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
...
@@ -169,12 +169,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
YHLoginManager
.
shared
.
loginSuccessActionBlock
?()
YHLoginManager
.
shared
.
loginSuccessActionBlock
?()
YHHUD
.
flash
(
message
:
"登录成功"
)
YHHUD
.
flash
(
message
:
"登录成功"
)
TXCommonHandler
.
sharedInstance
()
.
cancelLoginVC
(
animated
:
true
)
TXCommonHandler
.
sharedInstance
()
.
cancelLoginVC
(
animated
:
true
)
self
.
dismiss
(
animated
:
true
)
{
if
YHLoginManager
.
shared
.
userModel
?
.
is_first_login
==
1
{
if
YHLoginManager
.
shared
.
userModel
?
.
is_first_login
==
1
{
let
vc
=
YHUserInfoSettingViewController
()
let
vc
=
UINavigationController
(
rootVC
:
YHUserInfoSettingViewController
())
vc
.
modalPresentationStyle
=
.
fullScreen
vc
.
modalPresentationStyle
=
.
fullScreen
self
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
present
(
vc
,
animated
:
true
)
}
else
{
}
self
.
dismiss
(
animated
:
true
)
}
}
}
}
})
})
...
@@ -190,12 +190,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
...
@@ -190,12 +190,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
YHLoginManager
.
shared
.
loginSuccessActionBlock
?()
YHLoginManager
.
shared
.
loginSuccessActionBlock
?()
YHHUD
.
flash
(
message
:
"登录成功"
)
YHHUD
.
flash
(
message
:
"登录成功"
)
TXCommonHandler
.
sharedInstance
()
.
cancelLoginVC
(
animated
:
true
)
TXCommonHandler
.
sharedInstance
()
.
cancelLoginVC
(
animated
:
true
)
self
.
dismiss
(
animated
:
true
)
{
if
YHLoginManager
.
shared
.
userModel
?
.
is_first_login
==
1
{
if
YHLoginManager
.
shared
.
userModel
?
.
is_first_login
==
1
{
let
vc
=
YHUserInfoSettingViewController
()
let
vc
=
UINavigationController
(
rootVC
:
YHUserInfoSettingViewController
())
vc
.
modalPresentationStyle
=
.
fullScreen
vc
.
modalPresentationStyle
=
.
fullScreen
self
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
present
(
vc
,
animated
:
true
)
}
else
{
}
self
.
dismiss
(
animated
:
true
)
}
}
}
}
})
})
...
@@ -217,12 +217,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
...
@@ -217,12 +217,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
YHLoginManager
.
shared
.
loginSuccessActionBlock
?()
YHLoginManager
.
shared
.
loginSuccessActionBlock
?()
YHHUD
.
flash
(
message
:
"登录成功"
)
YHHUD
.
flash
(
message
:
"登录成功"
)
TXCommonHandler
.
sharedInstance
()
.
cancelLoginVC
(
animated
:
true
)
TXCommonHandler
.
sharedInstance
()
.
cancelLoginVC
(
animated
:
true
)
self
?
.
dismiss
(
animated
:
true
)
{
if
YHLoginManager
.
shared
.
userModel
?
.
is_first_login
==
1
{
if
YHLoginManager
.
shared
.
userModel
?
.
is_first_login
==
1
{
let
vc
=
YHUserInfoSettingViewController
()
let
vc
=
UINavigationController
(
rootVC
:
YHUserInfoSettingViewController
())
vc
.
modalPresentationStyle
=
.
fullScreen
vc
.
modalPresentationStyle
=
.
fullScreen
self
?
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
present
(
vc
,
animated
:
true
)
}
else
{
}
self
?
.
dismiss
(
animated
:
true
)
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHUserInfoSettingViewController.swift
View file @
ea3ab492
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
class
YHUserInfoSettingViewController
:
YHBaseViewController
{
class
YHUserInfoSettingViewController
:
YHBaseViewController
,
UIGestureRecognizerDelegate
{
var
photoImageView
:
UIImageView
!
var
photoImageView
:
UIImageView
!
var
photoButton
:
UIButton
!
var
photoButton
:
UIButton
!
var
changeButton
:
UIButton
!
var
changeButton
:
UIButton
!
...
@@ -44,6 +44,10 @@ class YHUserInfoSettingViewController: YHBaseViewController {
...
@@ -44,6 +44,10 @@ class YHUserInfoSettingViewController: YHBaseViewController {
func
setView
()
{
func
setView
()
{
gk_navTitle
=
"设置"
gk_navTitle
=
"设置"
gk_navLeftBarButtonItems
=
[]
let
target
=
self
.
navigationController
?
.
interactivePopGestureRecognizer
?
.
delegate
let
pan
=
UIPanGestureRecognizer
(
target
:
target
,
action
:
nil
)
self
.
view
.
addGestureRecognizer
(
pan
)
view
.
backgroundColor
=
.
white
view
.
backgroundColor
=
.
white
photoImageView
=
{
photoImageView
=
{
let
imageView
=
UIImageView
()
let
imageView
=
UIImageView
()
...
...
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