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
6c48e326
Commit
6c48e326
authored
Feb 02, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成 我的评分 优化
parent
eb6b71fb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
42 deletions
+51
-42
YHScoreOptionsView.swift
...rviceProcess(流程)/MyScore(我的评分)/V/YHScoreOptionsView.swift
+8
-8
YHScorePersonInfoCell.swift
...ceProcess(流程)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
+2
-2
YHScoreResultView.swift
...erviceProcess(流程)/MyScore(我的评分)/V/YHScoreResultView.swift
+33
-11
YHScoreTitleView.swift
...ServiceProcess(流程)/MyScore(我的评分)/V/YHScoreTitleView.swift
+8
-21
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyScore(我的评分)/V/YHScoreOptionsView.swift
View file @
6c48e326
...
...
@@ -41,10 +41,10 @@ class YHScoreOptionsView: UIView {
private
lazy
var
customLabel
:
UILabel
=
{
let
customLabel
=
UILabel
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
40
,
height
:
20
))
customLabel
.
text
=
"-"
customLabel
.
font
=
.
PFSC_
R
(
ofSize
:
12
)
customLabel
.
font
=
.
PFSC_
M
(
ofSize
:
12
)
customLabel
.
backgroundColor
=
UIColor
(
hex
:
0xF8F9FB
)
customLabel
.
textColor
=
UIColor
(
hex
:
0x888F98
)
customLabel
.
layer
.
cornerRadius
=
4
customLabel
.
layer
.
cornerRadius
=
3
customLabel
.
clipsToBounds
=
true
customLabel
.
textAlignment
=
.
center
return
customLabel
...
...
@@ -68,9 +68,9 @@ private extension YHScoreOptionsView {
addSubview
(
nameTextView
)
nameTextView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
16
)
make
.
top
.
equalTo
(
kMargin
)
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
bottomLine
.
snp
.
top
)
.
offset
(
-
16
)
make
.
bottom
.
equalTo
(
bottomLine
.
snp
.
top
)
.
offset
(
-
kMargin
)
}
}
...
...
@@ -86,17 +86,17 @@ private extension YHScoreOptionsView {
if
model
.
isSelected
==
true
{
nameTextView
.
attributed
.
text
=
"""
\(
model
.
scoreName
,
.
foreground
(
UIColor
(
hex
:
0x3C86F8
)
),
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
))
)
\(
.
view
(
customLabel
,
.
original
(
.
center
))
)
\(
model
.
scoreName
,
.
foreground
(
UIColor
.
brandMainColor
),
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
))
)
\(
.
view
(
customLabel
,
.
original
(
.
center
))
)
"""
customLabel
.
backgroundColor
=
UIColor
(
hex
:
0x3C86F8
,
alpha
:
0.12
)
customLabel
.
textColor
=
UIColor
(
hex
:
0x3C86F8
)
customLabel
.
backgroundColor
=
UIColor
.
brandMainColor8
customLabel
.
textColor
=
UIColor
.
brandMainColor
}
else
{
nameTextView
.
attributed
.
text
=
"""
\(
model
.
scoreName
,
.
foreground
(
UIColor
(
hex
:
0x4E4E4E
)),
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
))
)
\(
.
view
(
customLabel
,
.
original
(
.
center
))
)
"""
customLabel
.
backgroundColor
=
UIColor
(
hex
:
0xF8F9FB
)
customLabel
.
textColor
=
UIColor
(
hex
:
0x888F98
)
customLabel
.
textColor
=
UIColor
.
labelTextColor2
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
View file @
6c48e326
...
...
@@ -167,7 +167,7 @@ extension YHScorePersonInfoCell {
holdView
.
addSubview
(
phoneLable
)
phoneLable
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
nameLable
.
snp
.
bottom
)
make
.
left
.
equalTo
(
headImagV
.
snp
.
right
)
.
offset
(
12
)
make
.
left
.
equalTo
(
nameLable
.
snp
.
left
)
make
.
height
.
equalTo
(
20
)
make
.
width
.
equalTo
(
200
)
}
...
...
@@ -192,7 +192,7 @@ extension YHScorePersonInfoCell {
return
}
nameLable
.
text
=
"
d
avidHuang for test"
//model.user_info?.username ?? "-"
nameLable
.
text
=
"
D
avidHuang for test"
//model.user_info?.username ?? "-"
phoneLable
.
text
=
model
.
user_info
?
.
mobile
??
"-"
let
score
:
String
=
String
(
model
.
total_score
?
.
sum_score
??
0
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyScore(我的评分)/V/YHScoreResultView.swift
View file @
6c48e326
...
...
@@ -27,7 +27,7 @@ class YHScoreResultView: UIView {
//固定高度
static
let
viewH
:
CGFloat
=
52.0
static
let
viewH
:
CGFloat
=
60.5
//icon
...
...
@@ -69,24 +69,46 @@ private extension YHScoreResultView {
make
.
height
.
equalTo
(
0.5
)
}
addSubview
(
iconImageV
)
let
holdView
=
UIView
()
holdView
.
backgroundColor
=
UIColor
.
contentBkgColor
holdView
.
layer
.
cornerRadius
=
kCornerRadius6
holdView
.
clipsToBounds
=
true
addSubview
(
holdView
)
holdView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
bottomLine
.
snp
.
top
)
.
offset
(
-
kMargin
)
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
44
)
}
holdView
.
addSubview
(
iconImageV
)
iconImageV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
Superview
(
)
make
.
centerY
.
equalToSuperview
()
.
offset
(
-
0.5
)
make
.
left
.
equalTo
(
12
)
make
.
centerY
.
equalToSuperview
()
make
.
width
.
height
.
equalTo
(
14
)
}
addSubview
(
nameLable
)
holdView
.
addSubview
(
nameLable
)
nameLable
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
iconImageV
.
snp
.
centerY
)
make
.
left
.
equalTo
(
iconImageV
.
snp
.
right
)
.
offset
(
12
)
make
.
bottom
.
equalTo
(
bottomLine
.
snp
.
top
)
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalTo
(
iconImageV
.
snp
.
right
)
.
offset
(
8
)
}
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
.
labelTextColor2
holdView
.
addSubview
(
line
)
line
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalTo
(
nameLable
.
snp
.
right
)
.
offset
(
20
)
make
.
height
.
equalTo
(
13.5
)
make
.
width
.
equalTo
(
0.5
)
}
addSubview
(
desLable
)
holdView
.
addSubview
(
desLable
)
desLable
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
nameLable
.
snp
.
centerY
)
make
.
left
.
equalTo
(
nameLable
.
snp
.
right
)
.
offset
(
6
)
make
.
centerY
.
equalTo
Superview
(
)
make
.
left
.
equalTo
(
line
.
snp
.
right
)
.
offset
(
20
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyScore(我的评分)/V/YHScoreTitleView.swift
View file @
6c48e326
...
...
@@ -23,47 +23,34 @@ class YHScoreTitleView: UIView {
//固定高度
static
let
viewH
:
CGFloat
=
5
2
.0
static
let
viewH
:
CGFloat
=
5
6
.0
private
lazy
var
nameLable
:
UILabel
=
{
let
lable0
=
UILabel
(
text
:
"
年龄得分
"
)
lable0
.
textColor
=
UIColor
(
hex
:
0x222222
)
let
lable0
=
UILabel
(
text
:
"
-
"
)
lable0
.
textColor
=
UIColor
.
mainTextColor
lable0
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
return
lable0
}()
private
lazy
var
desLable
:
UILabel
=
{
let
lable0
=
UILabel
(
text
:
"
(最高30分)
"
)
lable0
.
textColor
=
UIColor
(
hex
:
0x888F98
)
let
lable0
=
UILabel
(
text
:
"
-
"
)
lable0
.
textColor
=
UIColor
.
labelTextColor2
lable0
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
return
lable0
}()
private
lazy
var
bottomLine
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
hex
:
0xF0F0F0
)
return
view
}()
}
private
extension
YHScoreTitleView
{
func
setupUI
()
{
addSubview
(
bottomLine
)
bottomLine
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
0.5
)
}
addSubview
(
nameLable
)
nameLable
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
bottomLine
.
snp
.
top
)
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalToSuperview
()
make
.
height
.
equalTo
(
24
)
}
addSubview
(
desLable
)
desLable
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
nameLable
.
snp
.
centerY
)
...
...
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