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
e909c7aa
Commit
e909c7aa
authored
May 29, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一键登录二次弹窗
parent
0b6bb7a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
YHAppleLoginManager.swift
...sses/Modules/AppleLogin(苹果登录)/C/YHAppleLoginManager.swift
+2
-0
YHLoginMethodManager.swift
...sses/Modules/AutoLogin(一键登录)/M/YHLoginMethodManager.swift
+48
-0
No files found.
galaxy/galaxy/Classes/Modules/AppleLogin(苹果登录)/C/YHAppleLoginManager.swift
View file @
e909c7aa
...
@@ -11,6 +11,8 @@ import AuthenticationServices
...
@@ -11,6 +11,8 @@ import AuthenticationServices
class
YHAppleLoginManager
:
NSObject
{
class
YHAppleLoginManager
:
NSObject
{
static
let
shared
=
YHAppleLoginManager
()
func
appleLogin
()
{
func
appleLogin
()
{
let
appleIDProvider
=
ASAuthorizationAppleIDProvider
()
let
appleIDProvider
=
ASAuthorizationAppleIDProvider
()
...
...
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/M/YHLoginMethodManager.swift
View file @
e909c7aa
...
@@ -143,6 +143,8 @@ extension YHLoginMethodManager {
...
@@ -143,6 +143,8 @@ extension YHLoginMethodManager {
model
.
sloganIsHidden
=
true
model
.
sloganIsHidden
=
true
model
.
logoIsHidden
=
true
model
.
logoIsHidden
=
true
model
.
changeBtnIsHidden
=
true
model
.
changeBtnIsHidden
=
true
// 配置二次弹窗
model
.
privacyAlertIsNeedShow
=
true
// 协议勾选框UI自定义
// 协议勾选框UI自定义
let
uncheckedImg
=
UIImage
(
named
:
"login_privacy_disagree"
)
!
let
uncheckedImg
=
UIImage
(
named
:
"login_privacy_disagree"
)
!
...
@@ -206,6 +208,52 @@ extension YHLoginMethodManager {
...
@@ -206,6 +208,52 @@ extension YHLoginMethodManager {
videoBgView
.
frame
=
UIScreen
.
main
.
bounds
videoBgView
.
frame
=
UIScreen
.
main
.
bounds
}
}
if
model
.
privacyAlertIsNeedShow
==
false
{
return
model
}
// 配置二次弹窗
model
.
privacyAlertIsNeedShow
=
true
model
.
privacyAlertMaskAlpha
=
0.5
;
model
.
privacyAlertMaskColor
=
UIColor
.
black
model
.
privacyAlertCornerRadiusArray
=
[
3
,
3
,
3
,
3
]
model
.
privacyAlertBackgroundColor
=
UIColor
.
white
model
.
privacyAlertAlpha
=
1.0
model
.
privacyAlertTitleBackgroundColor
=
UIColor
.
white
model
.
privacyAlertContentBackgroundColor
=
UIColor
.
white
model
.
privacyAlertTitleFont
=
.
PFSC_R
(
ofSize
:
16
)
model
.
privacyAlertTitleColor
=
UIColor
.
black
model
.
privacyAlertContentColors
=
[
UIColor
.
gray
,
UIColor
.
orange
]
model
.
privacyAlertContentAlignment
=
.
center
let
activeImage
=
TXCommonUtils
.
image
(
with
:
UIColor
.
orange
,
size
:
CGSizeMake
(
UIScreen
.
main
.
bounds
.
size
.
width
-
2
*
18
,
50
),
isRoundedCorner
:
true
,
radius
:
10
)
!
let
hightLightImage
=
TXCommonUtils
.
image
(
with
:
UIColor
.
gray
,
size
:
CGSizeMake
(
UIScreen
.
main
.
bounds
.
size
.
width
-
2
*
18
,
50
),
isRoundedCorner
:
true
,
radius
:
10
)
!
model
.
privacyAlertBtnBackgroundImages
=
[
activeImage
,
hightLightImage
]
model
.
privacyAlertButtonTextColors
=
[
UIColor
.
white
,
UIColor
.
blue
]
model
.
privacyAlertButtonFont
=
.
PFSC_R
(
ofSize
:
18
)
model
.
privacyAlertCloseButtonIsNeedShow
=
true
model
.
privacyAlertMaskIsNeedShow
=
true
model
.
privacyAlertIsNeedAutoLogin
=
false
model
.
tapPrivacyAlertMaskCloseAlert
=
false
model
.
expandAuthPageCheckedScope
=
true
model
.
privacyAlertCloseButtonIsNeedShow
=
true
model
.
privacyAlertTitleFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
0
,
20
,
frame
.
size
.
width
,
frame
.
size
.
height
)
}
model
.
privacyAlertPrivacyContentFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
0
,
frame
.
origin
.
y
+
10
,
frame
.
size
.
width
,
frame
.
size
.
height
);
}
model
.
privacyAlertButtonFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
frame
.
origin
.
x
,
superViewSize
.
height
-
50
-
20
,
frame
.
size
.
width
,
50
)
}
model
.
privacyAlertFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
40
,
(
superViewSize
.
height
-
150
)
*
0.5
,
screenSize
.
width
-
80
,
150
)
}
return
model
return
model
}
}
}
}
...
...
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