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
89c4bb06
Commit
89c4bb06
authored
Dec 11, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兜底
parent
0f5e2488
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
YHHomeKingKongBlockView.swift
.../Classes/Modules/Home(首页)/V/YHHomeKingKongBlockView.swift
+15
-10
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeKingKongBlockView.swift
View file @
89c4bb06
...
...
@@ -12,13 +12,18 @@ class YHHomeKingKongBlockView: UIView {
var
kingModel
:
[
YHHomeFourKingInfoModel
]
=
[]
{
didSet
{
arrData
.
removeAll
()
for
item
in
kingModel
{
let
model
=
YHHomeKingKongBlockModel
(
type
:
"
\(
item
.
skip_type
)
"
,
iconName
:
item
.
img_url
,
title
:
""
)
arrData
.
append
(
model
)
if
kingModel
.
count
!=
0
{
arrData
.
removeAll
()
for
item
in
kingModel
{
let
model
=
YHHomeKingKongBlockModel
(
type
:
"
\(
item
.
skip_type
)
"
,
iconName
:
item
.
img_url
,
title
:
""
)
arrData
.
append
(
model
)
}
self
.
removeSubviews
()
self
.
initView
()
}
else
{
self
.
removeSubviews
()
self
.
initView
()
}
self
.
removeSubviews
()
self
.
initView
()
}
}
static
let
viewH
:
CGFloat
=
(
KScreenWidth
-
20.0
*
2
-
10.0
*
3
)
/
4.0
...
...
@@ -32,10 +37,10 @@ class YHHomeKingKongBlockView: UIView {
}
var
arrData
:
[
YHHomeKingKongBlockModel
]
=
[
YHHomeKingKongBlockModel
(
type
:
"
3
"
,
iconName
:
"kingkong_sfys"
,
title
:
"身份优势"
),
YHHomeKingKongBlockModel
(
type
:
"
4
"
,
iconName
:
"kingkong_yqyl"
,
title
:
"邀请有礼"
),
YHHomeKingKongBlockModel
(
type
:
"
5
"
,
iconName
:
"kingkong_khxs"
,
title
:
"客户心声"
),
YHHomeKingKongBlockModel
(
type
:
"
6
"
,
iconName
:
"kingkong_xgbs"
,
title
:
"香港办事"
),
YHHomeKingKongBlockModel
(
type
:
"
2
"
,
iconName
:
"kingkong_sfys"
,
title
:
"身份优势"
),
YHHomeKingKongBlockModel
(
type
:
"
3
"
,
iconName
:
"kingkong_yqyl"
,
title
:
"邀请有礼"
),
YHHomeKingKongBlockModel
(
type
:
"
4
"
,
iconName
:
"kingkong_khxs"
,
title
:
"客户心声"
),
YHHomeKingKongBlockModel
(
type
:
"
5
"
,
iconName
:
"kingkong_xgbs"
,
title
:
"香港办事"
),
]
}
...
...
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