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
ce56195a
Commit
ce56195a
authored
May 30, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 二次弹窗UI
parent
e5f6a498
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
YHLoginMethodManager.swift
...sses/Modules/AutoLogin(一键登录)/M/YHLoginMethodManager.swift
+16
-14
No files found.
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/M/YHLoginMethodManager.swift
View file @
ce56195a
...
@@ -193,7 +193,7 @@ extension YHLoginMethodManager {
...
@@ -193,7 +193,7 @@ extension YHLoginMethodManager {
model
.
loginBtnText
=
NSAttributedString
(
string
:
"本机号码一键登录"
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
init
(
hex
:
0x121A26
),
NSAttributedString
.
Key
.
font
:
UIFont
.
PFSC_M
(
ofSize
:
16
)])
model
.
loginBtnText
=
NSAttributedString
(
string
:
"本机号码一键登录"
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
init
(
hex
:
0x121A26
),
NSAttributedString
.
Key
.
font
:
UIFont
.
PFSC_M
(
ofSize
:
16
)])
let
enableLoginBgImg
=
TXCommonUtils
.
image
(
with
:
.
white
,
size
:
CGSize
(
width
:
KScreenWidth
-
20*
2
,
height
:
48
),
isRoundedCorner
:
true
,
radius
:
kCornerRadius3
)
!
let
enableLoginBgImg
=
TXCommonUtils
.
image
(
with
:
.
white
,
size
:
CGSize
(
width
:
KScreenWidth
-
20*
2
,
height
:
48
),
isRoundedCorner
:
true
,
radius
:
kCornerRadius3
)
!
let
disableLoginBgImg
=
TXCommonUtils
.
image
(
with
:
UIColor
.
white
.
withAlphaComponent
(
0.4
),
size
:
CGSize
(
width
:
KScreenWidth
-
20*
2
,
height
:
48
),
isRoundedCorner
:
true
,
radius
:
kCornerRadius3
)
!
let
disableLoginBgImg
=
TXCommonUtils
.
image
(
with
:
.
white
.
withAlphaComponent
(
0.4
),
size
:
CGSize
(
width
:
KScreenWidth
-
20*
2
,
height
:
48
),
isRoundedCorner
:
true
,
radius
:
kCornerRadius3
)
!
let
imgArr
:[
UIImage
]
=
[
enableLoginBgImg
,
disableLoginBgImg
,
enableLoginBgImg
]
let
imgArr
:[
UIImage
]
=
[
enableLoginBgImg
,
disableLoginBgImg
,
enableLoginBgImg
]
model
.
loginBtnBgImgs
=
imgArr
model
.
loginBtnBgImgs
=
imgArr
...
@@ -224,43 +224,45 @@ extension YHLoginMethodManager {
...
@@ -224,43 +224,45 @@ extension YHLoginMethodManager {
// 配置二次弹窗
// 配置二次弹窗
model
.
privacyAlertIsNeedShow
=
true
model
.
privacyAlertIsNeedShow
=
true
model
.
privacyAlertMaskAlpha
=
0.5
;
model
.
privacyAlertMaskAlpha
=
0.5
;
model
.
privacyAlertMaskColor
=
UIColor
.
black
model
.
privacyAlertMaskColor
=
.
black
model
.
privacyAlertCornerRadiusArray
=
[
3
,
3
,
3
,
3
]
model
.
privacyAlertCornerRadiusArray
=
[
3
,
3
,
3
,
3
]
model
.
privacyAlertBackgroundColor
=
UIColor
.
white
model
.
privacyAlertBackgroundColor
=
.
white
model
.
privacyAlertAlpha
=
1.0
model
.
privacyAlertAlpha
=
1.0
model
.
privacyAlertTitleBackgroundColor
=
UIColor
.
white
model
.
privacyAlertTitleBackgroundColor
=
.
white
model
.
privacyAlertContentBackgroundColor
=
UIColor
.
white
model
.
privacyAlertContentBackgroundColor
=
.
white
model
.
privacyAlertTitleFont
=
.
PFSC_R
(
ofSize
:
16
)
model
.
privacyAlertTitleFont
=
.
PFSC_R
(
ofSize
:
16
)
model
.
privacyAlertTitleColor
=
UIColor
.
black
model
.
privacyAlertTitleColor
=
UIColor
.
black
model
.
privacyAlertContentColors
=
[
UIColor
.
gray
,
UIColor
.
orange
]
model
.
privacyAlertContentColors
=
[
UIColor
.
gray
,
UIColor
.
orange
]
model
.
privacyAlertContentAlignment
=
.
center
model
.
privacyAlertContentAlignment
=
.
center
model
.
privacyAlertContentColors
=
[
.
black
,
.
brandMainColor
]
let
activeImage
=
TXCommonUtils
.
image
(
with
:
UIColor
.
orange
,
size
:
CGSizeMake
(
UIScreen
.
main
.
bounds
.
size
.
width
-
2
*
18
,
50
),
isRoundedCorner
:
true
,
radius
:
10
)
!
let
activeImage
=
TXCommonUtils
.
image
(
with
:
.
brandMainColor
,
size
:
CGSizeMake
(
UIScreen
.
main
.
bounds
.
size
.
width
-
2
*
18
,
45
),
isRoundedCorner
:
true
,
radius
:
6
)
!
let
hightLightImage
=
TXCommonUtils
.
image
(
with
:
UIColor
.
gray
,
size
:
CGSizeMake
(
UIScreen
.
main
.
bounds
.
size
.
width
-
2
*
18
,
50
),
isRoundedCorner
:
true
,
radius
:
10
)
!
let
hightLightImage
=
TXCommonUtils
.
image
(
with
:
.
brandMainColor
,
size
:
CGSizeMake
(
UIScreen
.
main
.
bounds
.
size
.
width
-
2
*
18
,
45
),
isRoundedCorner
:
true
,
radius
:
6
)
!
model
.
privacyAlertBtnBackgroundImages
=
[
activeImage
,
hightLightImage
]
model
.
privacyAlertBtnBackgroundImages
=
[
activeImage
,
hightLightImage
]
model
.
privacyAlertButtonTextColors
=
[
UIColor
.
white
,
UIColor
.
blue
]
model
.
privacyAlertButtonFont
=
.
PFSC_R
(
ofSize
:
18
)
model
.
privacyAlertButtonTextColors
=
[
UIColor
.
white
,
UIColor
.
white
]
model
.
privacyAlertButtonFont
=
.
PFSC_R
(
ofSize
:
16
)
model
.
privacyAlertCloseButtonIsNeedShow
=
true
model
.
privacyAlertCloseButtonIsNeedShow
=
true
model
.
privacyAlertMaskIsNeedShow
=
true
model
.
privacyAlertMaskIsNeedShow
=
true
model
.
privacyAlertIsNeedAutoLogin
=
fals
e
model
.
privacyAlertIsNeedAutoLogin
=
tru
e
model
.
tapPrivacyAlertMaskCloseAlert
=
false
model
.
tapPrivacyAlertMaskCloseAlert
=
false
model
.
expandAuthPageCheckedScope
=
true
model
.
expandAuthPageCheckedScope
=
true
model
.
privacyAlertCloseButtonIsNeedShow
=
true
model
.
privacyAlertCloseButtonIsNeedShow
=
true
model
.
privacyAlertTitleFrameBlock
=
{
model
.
privacyAlertTitleFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
0
,
20
,
frame
.
size
.
width
,
frame
.
size
.
height
)
return
CGRectMake
(
0
,
20
,
frame
.
size
.
width
,
22
)
}
}
model
.
privacyAlertPrivacyContentFrameBlock
=
{
model
.
privacyAlertPrivacyContentFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
0
,
frame
.
origin
.
y
+
10
,
frame
.
size
.
width
,
frame
.
size
.
height
);
return
CGRectMake
(
0
,
20
+
22
+
20
,
frame
.
size
.
width
-
20
,
frame
.
size
.
height
);
}
}
model
.
privacyAlertButtonFrameBlock
=
{
model
.
privacyAlertButtonFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
frame
.
origin
.
x
,
superViewSize
.
height
-
50
-
20
,
frame
.
size
.
width
,
50
)
return
CGRectMake
(
frame
.
origin
.
x
,
superViewSize
.
height
-
50
-
20
,
frame
.
size
.
width
,
45
)
}
}
model
.
privacyAlertFrameBlock
=
{
model
.
privacyAlertFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
40
,
(
superViewSize
.
height
-
150
)
*
0.5
,
screenSize
.
width
-
80
,
15
0
)
return
CGRectMake
(
40
,
(
superViewSize
.
height
-
150
)
/
2.0
,
screenSize
.
width
-
80
,
20
0
)
}
}
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