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
8f82a350
Commit
8f82a350
authored
May 16, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' into youhua-dev
* main: 我的评分 界面修改
parents
eedbbe52
e9d172ec
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
85 additions
and
14 deletions
+85
-14
YHScorePersonInfoCell.swift
...Service(服务中心)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
+60
-11
YHDeviceInfoViewController.swift
...asses/Modules/Mine(我的)/C/YHDeviceInfoViewController.swift
+1
-1
Contents.json
...ssets/ServiceCenter/我的评分/score_bkg.imageset/Contents.json
+2
-2
Group 2033194829@2x.png
...iceCenter/我的评分/score_bkg.imageset/Group 2033194829@2x.png
+0
-0
Group 2033194829@3x.png
...iceCenter/我的评分/score_bkg.imageset/Group 2033194829@3x.png
+0
-0
Group 3471@2x.png
...s/ServiceCenter/我的评分/score_bkg.imageset/Group 3471@2x.png
+0
-0
Group 3471@3x.png
...s/ServiceCenter/我的评分/score_bkg.imageset/Group 3471@3x.png
+0
-0
Contents.json
...rviceCenter/我的评分/score_maisui_icon.imageset/Contents.json
+22
-0
Mask group@2x.png
...eCenter/我的评分/score_maisui_icon.imageset/Mask group@2x.png
+0
-0
Mask group@3x.png
...eCenter/我的评分/score_maisui_icon.imageset/Mask group@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyScore(我的评分)/V/YHScorePersonInfoCell.swift
View file @
8f82a350
...
@@ -52,10 +52,20 @@ class YHScorePersonInfoCell: UITableViewCell {
...
@@ -52,10 +52,20 @@ class YHScorePersonInfoCell: UITableViewCell {
//综合得分
//综合得分
private
lazy
var
scoreLable
:
UILabel
=
{
private
lazy
var
scoreLable
:
UILabel
=
{
let
lable0
=
UILabel
(
text
:
"92
分
"
)
let
lable0
=
UILabel
(
text
:
"92"
)
lable0
.
textColor
=
UIColor
(
hex
:
0xFFEEB0
)
lable0
.
textColor
=
UIColor
(
hex
:
0xFFEEB0
)
lable0
.
font
=
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
68
)
lable0
.
font
=
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
68
)
lable0
.
textAlignment
=
.
right
lable0
.
textAlignment
=
.
center
return
lable0
}()
//分
private
lazy
var
fenLable
:
UILabel
=
{
let
lable0
=
UILabel
(
text
:
"分"
)
lable0
.
textColor
=
UIColor
(
hex
:
0xFFEEB0
)
lable0
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
16
)
lable0
.
textAlignment
=
.
center
return
lable0
return
lable0
}()
}()
...
@@ -81,6 +91,9 @@ class YHScorePersonInfoCell: UITableViewCell {
...
@@ -81,6 +91,9 @@ class YHScorePersonInfoCell: UITableViewCell {
fatalError
(
"init(coder:) has not been implemented"
)
fatalError
(
"init(coder:) has not been implemented"
)
}
}
private
let
secondHoldView
=
UIView
()
}
}
extension
YHScorePersonInfoCell
{
extension
YHScorePersonInfoCell
{
...
@@ -178,18 +191,36 @@ extension YHScorePersonInfoCell {
...
@@ -178,18 +191,36 @@ extension YHScorePersonInfoCell {
make
.
width
.
equalTo
(
200
)
make
.
width
.
equalTo
(
200
)
}
}
contentView
.
addSubview
(
secondHoldView
)
secondHoldView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
holdView
.
snp
.
top
)
make
.
right
.
equalTo
(
holdView
.
snp
.
right
)
.
offset
(
5
)
make
.
height
.
equalTo
(
105
)
make
.
width
.
equalTo
(
148
)
}
let
imageV
=
UIImageView
(
image
:
UIImage
(
named
:
"score_maisui_icon"
))
imageV
.
contentMode
=
.
scaleAspectFill
secondHoldView
.
addSubview
(
imageV
)
imageV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
content
View
.
addSubview
(
scoreLable
)
secondHold
View
.
addSubview
(
scoreLable
)
scoreLable
.
snp
.
makeConstraints
{
make
in
scoreLable
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
holdView
.
snp
.
top
)
.
offset
(
-
kMargin
)
make
.
centerX
.
equalToSuperview
()
make
.
right
.
equalTo
(
holdView
.
snp
.
right
)
.
offset
(
-
5
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
79
)
}
secondHoldView
.
addSubview
(
fenLable
)
fenLable
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
scoreLable
.
snp
.
right
)
.
offset
(
2
)
make
.
bottom
.
equalTo
(
scoreLable
.
snp
.
bottom
)
.
offset
(
-
13
)
}
}
let
a
:
ASAttributedString
=
.
init
(
"-"
,
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
68
)
??
UIFont
.
PFSC_B
(
ofSize
:
43
)),
.
foreground
(
UIColor
(
hex
:
0xFFEEB0
)))
let
a
:
ASAttributedString
=
.
init
(
"-"
,
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
68
)
??
UIFont
.
PFSC_B
(
ofSize
:
43
)),
.
foreground
(
UIColor
(
hex
:
0xFFEEB0
)))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
(
hex
:
0xFFEEB0
)))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
(
hex
:
0xFFEEB0
)))
scoreLable
.
attributed
.
text
=
a
+
b
scoreLable
.
attributed
.
text
=
a
}
}
...
@@ -203,9 +234,27 @@ extension YHScorePersonInfoCell {
...
@@ -203,9 +234,27 @@ extension YHScorePersonInfoCell {
phoneLable
.
text
=
model
.
userinfo
?
.
mobile
??
"-"
phoneLable
.
text
=
model
.
userinfo
?
.
mobile
??
"-"
let
score
:
String
=
String
(
model
.
total_score
?
.
sum_score
??
0
)
let
score
:
String
=
String
(
model
.
total_score
?
.
sum_score
??
0
)
let
a
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
score
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
68
)
??
UIFont
.
PFSC_B
(
ofSize
:
43
)),
.
foreground
(
UIColor
(
hex
:
0xFFEEB0
)))
// let a: ASAttributedString = .init(NSAttributedString(string: score),.font(UIFont(name: "DINAlternate-Bold", size: 68) ?? UIFont.PFSC_B(ofSize: 43)),.foreground(UIColor(hex: 0xFFEEB0)))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
.
white
))
// let b: ASAttributedString = .init("分", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(.white))
scoreLable
.
attributed
.
text
=
a
+
b
// scoreLable.attributed.text = a
scoreLable
.
text
=
score
scoreLable
.
layoutIfNeeded
()
let
gradientLayer
=
CAGradientLayer
()
gradientLayer
.
colors
=
[
UIColor
(
hex
:
0xFFF9E3
,
alpha
:
1.0
)
.
cgColor
,
UIColor
(
hex
:
0xFFE895
,
alpha
:
1.0
)
.
cgColor
]
gradientLayer
.
startPoint
=
CGPoint
(
x
:
0
,
y
:
0
)
gradientLayer
.
endPoint
=
CGPoint
(
x
:
1
,
y
:
1
)
gradientLayer
.
locations
=
[
NSNumber
(
value
:
0.2
)]
gradientLayer
.
frame
=
scoreLable
.
bounds
gradientLayer
.
mask
=
scoreLable
.
layer
secondHoldView
.
layer
.
insertSublayer
(
gradientLayer
,
at
:
0
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHDeviceInfoViewController.swift
View file @
8f82a350
//
//
// YH
Test
ViewController.swift
// YH
DeviceInfo
ViewController.swift
// galaxy
// galaxy
//
//
// Created by edy on 2024/4/11.
// Created by edy on 2024/4/11.
...
...
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_bkg.imageset/Contents.json
View file @
8f82a350
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
"scale"
:
"1x"
"scale"
:
"1x"
},
},
{
{
"filename"
:
"Group
3471
@2x.png"
,
"filename"
:
"Group
2033194829
@2x.png"
,
"idiom"
:
"universal"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
"scale"
:
"2x"
},
},
{
{
"filename"
:
"Group
3471
@3x.png"
,
"filename"
:
"Group
2033194829
@3x.png"
,
"idiom"
:
"universal"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
"scale"
:
"3x"
}
}
...
...
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_bkg.imageset/Group 2033194829@2x.png
0 → 100644
View file @
8f82a350
58.5 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_bkg.imageset/Group 2033194829@3x.png
0 → 100644
View file @
8f82a350
100 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_bkg.imageset/Group 3471@2x.png
deleted
100644 → 0
View file @
eedbbe52
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_bkg.imageset/Group 3471@3x.png
deleted
100644 → 0
View file @
eedbbe52
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_maisui_icon.imageset/Contents.json
0 → 100644
View file @
8f82a350
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Mask group@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Mask group@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_maisui_icon.imageset/Mask group@2x.png
0 → 100644
View file @
8f82a350
9.4 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的评分/score_maisui_icon.imageset/Mask group@3x.png
0 → 100644
View file @
8f82a350
13.8 KB
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