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
e0bb6777
Commit
e0bb6777
authored
Apr 18, 2025
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新版本UI
parent
e689bec4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
10 deletions
+29
-10
YHMakePlanViewController.swift
...odules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
+1
-1
YHMakePlanHeadView.swift
...sses/Modules/Plan(方案)/MakePlan/V/YHMakePlanHeadView.swift
+7
-7
YHMakePlanStateHeadView.swift
...Modules/Plan(方案)/MakePlan/V/YHMakePlanStateHeadView.swift
+19
-0
YHMakePlanTopView.swift
...asses/Modules/Plan(方案)/MakePlan/V/YHMakePlanTopView.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
View file @
e0bb6777
...
@@ -13,7 +13,7 @@ class YHMakePlanViewController: YHBaseViewController {
...
@@ -13,7 +13,7 @@ class YHMakePlanViewController: YHBaseViewController {
let
viewModel
=
YHMakePlanViewModel
()
let
viewModel
=
YHMakePlanViewModel
()
lazy
var
headView
:
YHMakePlanHeadView
=
{
lazy
var
headView
:
YHMakePlanHeadView
=
{
let
view
=
YHMakePlanHeadView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
333
.
fix
+
44
))
let
view
=
YHMakePlanHeadView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
333
.
fix
+
44
+
45
))
view
.
block
=
{
tag
in
view
.
block
=
{
tag
in
self
.
topView
.
custtomView
.
updataData
(
tag
)
self
.
topView
.
custtomView
.
updataData
(
tag
)
let
indexPath
=
IndexPath
(
row
:
tag
,
section
:
0
)
let
indexPath
=
IndexPath
(
row
:
tag
,
section
:
0
)
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanHeadView.swift
View file @
e0bb6777
...
@@ -70,13 +70,6 @@ class YHMakePlanHeadView: UIView {
...
@@ -70,13 +70,6 @@ class YHMakePlanHeadView: UIView {
make
.
height
.
equalTo
(
333
.
fix
)
make
.
height
.
equalTo
(
333
.
fix
)
}
}
centerView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
height
.
equalTo
(
88
)
make
.
bottom
.
equalTo
(
centerImageView
.
snp
.
bottom
)
.
offset
(
-
16
)
}
logoImageView
.
snp
.
makeConstraints
{
make
in
logoImageView
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
centerX
.
equalToSuperview
()
make
.
height
.
equalTo
(
109
)
make
.
height
.
equalTo
(
109
)
...
@@ -84,6 +77,13 @@ class YHMakePlanHeadView: UIView {
...
@@ -84,6 +77,13 @@ class YHMakePlanHeadView: UIView {
make
.
top
.
equalTo
(
96
)
make
.
top
.
equalTo
(
96
)
}
}
centerView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
height
.
equalTo
(
133
)
make
.
top
.
equalTo
(
logoImageView
.
snp
.
bottom
)
.
offset
(
24
)
}
custtomView
.
snp
.
makeConstraints
{
make
in
custtomView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
44
)
make
.
height
.
equalTo
(
44
)
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanStateHeadView.swift
View file @
e0bb6777
...
@@ -53,6 +53,17 @@ class YHMakePlanStateHeadView: UIView {
...
@@ -53,6 +53,17 @@ class YHMakePlanStateHeadView: UIView {
return
label
return
label
}()
}()
private
let
explainLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
text
=
"*该概率为预估概率,最终以实际续签结果为准"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
(
hex
:
0x8893a2
)
label
.
textAlignment
=
.
center
label
.
backgroundColor
=
UIColor
(
hex
:
0xf8f9fb
)
label
.
layer
.
cornerRadius
=
kCornerRadius4
return
label
}()
// MARK: - Initialization
// MARK: - Initialization
override
init
(
frame
:
CGRect
)
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
super
.
init
(
frame
:
frame
)
...
@@ -72,6 +83,7 @@ class YHMakePlanStateHeadView: UIView {
...
@@ -72,6 +83,7 @@ class YHMakePlanStateHeadView: UIView {
addSubview
(
yearsDescriptionLabel
)
addSubview
(
yearsDescriptionLabel
)
addSubview
(
percentageLabel
)
addSubview
(
percentageLabel
)
addSubview
(
progressDescriptionLabel
)
addSubview
(
progressDescriptionLabel
)
addSubview
(
explainLabel
)
}
}
private
func
setupConstraints
()
{
private
func
setupConstraints
()
{
...
@@ -98,6 +110,13 @@ class YHMakePlanStateHeadView: UIView {
...
@@ -98,6 +110,13 @@ class YHMakePlanStateHeadView: UIView {
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
left
.
equalTo
(
self
.
snp
.
centerX
)
make
.
left
.
equalTo
(
self
.
snp
.
centerX
)
}
}
explainLabel
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
-
16
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
height
.
equalTo
(
29
)
}
}
}
// MARK: - Configuration
// MARK: - Configuration
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanTopView.swift
View file @
e0bb6777
...
@@ -17,10 +17,10 @@ class YHMakePlanTopView: UIView {
...
@@ -17,10 +17,10 @@ class YHMakePlanTopView: UIView {
let
year
=
dataSource
?
.
year
??
0
let
year
=
dataSource
?
.
year
??
0
let
rate
=
dataSource
?
.
pass_rate
??
""
let
rate
=
dataSource
?
.
pass_rate
??
""
let
a
:
ASAttributedString
=
.
init
(
"预计可续期(年) "
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x6a7586
)))
let
a
:
ASAttributedString
=
.
init
(
"预计可续期(年) "
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x6a7586
)))
let
b
:
ASAttributedString
=
.
init
(
"
\(
year
)
"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"
\(
year
)
"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
yearsLabel
.
attributed
.
text
=
a
+
b
yearsLabel
.
attributed
.
text
=
a
+
b
let
aa
:
ASAttributedString
=
.
init
(
"预测续签通过率 "
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x6a7586
)))
let
aa
:
ASAttributedString
=
.
init
(
"预测续签通过率 "
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x6a7586
)))
let
bb
:
ASAttributedString
=
.
init
(
"
\(
rate
)
"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"
\(
rate
)
"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
// let c: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 16)), .foreground(UIColor.mainTextColor))
// let c: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 16)), .foreground(UIColor.mainTextColor))
percentageLabel
.
attributed
.
text
=
aa
+
bb
percentageLabel
.
attributed
.
text
=
aa
+
bb
}
}
...
...
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