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
b0d389d9
Commit
b0d389d9
authored
Apr 08, 2025
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI修改
parent
a37a5a29
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
67 additions
and
9 deletions
+67
-9
YHEmptyDataView.swift
galaxy/galaxy/Classes/Base/V/YHEmptyDataView.swift
+2
-0
YHSelectViewController.swift
.../Modules/Home(首页)/YHSelect/C/YHSelectViewController.swift
+3
-3
YHMakePlanViewController.swift
...odules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
+1
-1
YHMakePlanCardView.swift
...sses/Modules/Plan(方案)/MakePlan/V/YHMakePlanCardView.swift
+1
-1
YHMakePlanCell.swift
.../Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanCell.swift
+28
-0
YHMakePlanSelectAlertView.swift
...dules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
+8
-2
Contents.json
...assets/EmptyDataBg/no_data_bg_plan.imageset/Contents.json
+22
-0
no_data_bg_plan@2x.png
...ptyDataBg/no_data_bg_plan.imageset/no_data_bg_plan@2x.png
+0
-0
no_data_bg_plan@3x.png
...ptyDataBg/no_data_bg_plan.imageset/no_data_bg_plan@3x.png
+0
-0
Contents.json
.../Assets.xcassets/Plan/plan_head_bg.imageset/Contents.json
+2
-2
plan_head_bg@2x.png
...s.xcassets/Plan/plan_head_bg.imageset/plan_head_bg@2x.png
+0
-0
plan_head_bg@3x.png
...s.xcassets/Plan/plan_head_bg.imageset/plan_head_bg@3x.png
+0
-0
头部背景@2x.png
...es/Assets.xcassets/Plan/plan_head_bg.imageset/头部背景@2x.png
+0
-0
头部背景@3x.png
...es/Assets.xcassets/Plan/plan_head_bg.imageset/头部背景@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Base/V/YHEmptyDataView.swift
View file @
b0d389d9
...
...
@@ -20,6 +20,8 @@ let kEmptyOrderBgName = "no_data_bg_order"
let
kNotNetWorkBgName
=
"no_network_bg"
// 人脉无好友空视图
let
kNoFriendsBgName
=
"people_no_friend_bg"
// 方案空
let
kNoPlanBgName
=
"no_data_bg_plan"
class
YHEmptyDataView
:
UIView
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/YHSelect/C/YHSelectViewController.swift
View file @
b0d389d9
...
...
@@ -285,9 +285,9 @@ class YHSelectLookTableViewCell: UITableViewCell {
if
dataSource
.
catAttr
==
2
{
flagLabel
.
isHidden
=
false
}
let
a
:
ASAttributedString
=
.
init
(
"¥"
,
.
font
(
UIFont
(
name
:
"D
INAlternate
-Bold"
,
size
:
14
)
??
UIFont
()),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"
\(
dataSource
.
linePrice
)
"
,
.
font
(
UIFont
(
name
:
"D
INAlternate
-Bold"
,
size
:
20
)
??
UIFont
()),
.
foreground
(
UIColor
.
mainTextColor
))
let
c
:
ASAttributedString
=
.
init
(
"¥
\(
dataSource
.
price
)
"
,
.
font
(
UIFont
(
name
:
"D
INAlternate
-Bold"
,
size
:
14
)
??
UIFont
()),
.
foreground
(
UIColor
(
hex
:
0x8993a2
)),
.
strikethrough
(
.
single
))
let
a
:
ASAttributedString
=
.
init
(
"¥"
,
.
font
(
UIFont
(
name
:
"D
-DIN-PRO
-Bold"
,
size
:
14
)
??
UIFont
()),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"
\(
dataSource
.
linePrice
)
"
,
.
font
(
UIFont
(
name
:
"D
-DIN-PRO
-Bold"
,
size
:
20
)
??
UIFont
()),
.
foreground
(
UIColor
.
mainTextColor
))
let
c
:
ASAttributedString
=
.
init
(
"¥
\(
dataSource
.
price
)
"
,
.
font
(
UIFont
(
name
:
"D
-DIN-PRO
-Bold"
,
size
:
14
)
??
UIFont
()),
.
foreground
(
UIColor
(
hex
:
0x8993a2
)),
.
strikethrough
(
.
single
))
if
dataSource
.
linePrice
==
dataSource
.
price
{
self
.
subTitleLabel
.
attributed
.
text
=
a
+
b
}
else
{
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
View file @
b0d389d9
...
...
@@ -210,7 +210,7 @@ extension YHMakePlanViewController: UITableViewDelegate, UITableViewDataSource {
count
=
viewModel
.
makePlanModel
.
invest
.
count
}
if
count
==
0
{
return
68
return
168
+
32
}
return
CGFloat
(
36
+
16
+
118
*
count
)
}
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanCardView.swift
View file @
b0d389d9
...
...
@@ -40,7 +40,7 @@ class YHMakePlanCardView: UIView {
private
lazy
var
companyImageView
:
UIImageView
=
{
let
view
=
UIImageView
()
view
.
backgroundColor
=
UIColor
(
red
:
0.95
,
green
:
0.95
,
blue
:
0.96
,
alpha
:
1.0
)
view
.
image
=
UIImage
(
named
:
"global_default_image"
)
return
view
}()
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanCell.swift
View file @
b0d389d9
...
...
@@ -14,6 +14,25 @@ class YHMakePlanCell: UITableViewCell {
var
titleLabel
:
UILabel
!
var
mainItemView
:
UIView
!
var
country
:
String
=
""
lazy
var
noDataView
:
YHEmptyDataView
=
{
let
view
=
YHEmptyDataView
.
createView
(
"您已满足续签至永居服务~"
,
kNoPlanBgName
)
view
.
frame
=
CGRect
(
x
:
0
,
y
:
36
,
width
:
KScreenWidth
-
32
,
height
:
116
)
view
.
backgroundColor
=
.
clear
view
.
isHidden
=
true
view
.
emptyBgImgV
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
0
)
make
.
width
.
height
.
equalTo
(
96
)
make
.
centerX
.
equalTo
(
view
)
}
view
.
tipsLabel
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
view
.
emptyBgImgV
.
snp
.
bottom
)
make
.
height
.
equalTo
(
20
)
make
.
centerX
.
equalTo
(
view
)
}
return
view
}()
var
dataSource
:
[
YHMakePlanMainModel
]?
{
didSet
{
updateAllViews
()
...
...
@@ -49,6 +68,8 @@ class YHMakePlanCell: UITableViewCell {
make
.
bottom
.
equalTo
(
-
7
)
}
centerView
.
addSubview
(
noDataView
)
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
...
...
@@ -78,6 +99,13 @@ class YHMakePlanCell: UITableViewCell {
func
updateAllViews
()
{
mainItemView
.
removeSubviews
()
if
dataSource
?
.
count
==
0
{
noDataView
.
isHidden
=
false
mainItemView
.
isHidden
=
true
}
else
{
noDataView
.
isHidden
=
true
mainItemView
.
isHidden
=
false
}
var
y
=
0
for
i
in
0
..<
(
dataSource
?
.
count
??
0
)
{
if
i
!=
0
||
i
!=
(
dataSource
?
.
count
??
0
)
-
1
{
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
View file @
b0d389d9
...
...
@@ -20,6 +20,7 @@ class YHMakePlanSelectAlertView: UIView {
var
cardView
:
YHMakePlanCardView
!
var
lineView
:
UIView
!
var
selectIndex
:
Int
=
0
var
selectProductId
:
Int
=
0
var
dataSource
:
YHMakePlanMainModel
?
{
didSet
{
updata
()
...
...
@@ -201,6 +202,7 @@ class YHMakePlanSelectAlertView: UIView {
}
if
data
.
sub_product
.
count
>
0
{
cardView
.
configureSub
(
with
:
data
.
sub_product
[
selectIndex
])
selectProductId
=
data
.
sub_product
[
selectIndex
]
.
product_id
}
tableView
.
reloadData
()
}
...
...
@@ -215,6 +217,11 @@ class YHMakePlanSelectAlertView: UIView {
@objc
func
orderButtonClick
()
{
if
let
block
=
block
{
// 规避用户未选点击确定
if
selectProductId
==
dataSource
?
.
sub_product
[
selectIndex
]
.
product_id
{
dismiss
()
return
}
block
(
dataSource
?
.
sub_product
[
selectIndex
]
.
product_id
??
0
)
}
dismiss
()
...
...
@@ -298,8 +305,7 @@ class YHMakePlanCardCell: UITableViewCell {
private
let
bgImageView
:
UIImageView
=
{
let
imageView
=
UIImageView
()
imageView
.
image
=
UIImage
(
named
:
""
)
imageView
.
backgroundColor
=
.
red
imageView
.
image
=
UIImage
(
named
:
"global_default_image"
)
return
imageView
}()
...
...
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_plan.imageset/Contents.json
0 → 100644
View file @
b0d389d9
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"no_data_bg_plan@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"no_data_bg_plan@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_plan.imageset/no_data_bg_plan@2x.png
0 → 100644
View file @
b0d389d9
6.03 KB
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_plan.imageset/no_data_bg_plan@3x.png
0 → 100644
View file @
b0d389d9
10.1 KB
galaxy/galaxy/Res/Assets.xcassets/Plan/plan_head_bg.imageset/Contents.json
View file @
b0d389d9
...
...
@@ -5,12 +5,12 @@
"scale"
:
"1x"
},
{
"filename"
:
"
plan_head_bg
@2x.png"
,
"filename"
:
"
头部背景
@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"
plan_head_bg
@3x.png"
,
"filename"
:
"
头部背景
@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
...
...
galaxy/galaxy/Res/Assets.xcassets/Plan/plan_head_bg.imageset/plan_head_bg@2x.png
deleted
100644 → 0
View file @
a37a5a29
450 KB
galaxy/galaxy/Res/Assets.xcassets/Plan/plan_head_bg.imageset/plan_head_bg@3x.png
deleted
100644 → 0
View file @
a37a5a29
757 KB
galaxy/galaxy/Res/Assets.xcassets/Plan/plan_head_bg.imageset/头部背景@2x.png
0 → 100644
View file @
b0d389d9
377 KB
galaxy/galaxy/Res/Assets.xcassets/Plan/plan_head_bg.imageset/头部背景@3x.png
0 → 100644
View file @
b0d389d9
702 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