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
3717647d
Commit
3717647d
authored
Apr 12, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决闪频问题
parent
378d92de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
YHHomeListModel.swift
...y/galaxy/Classes/Modules/Home(首页)/M/YHHomeListModel.swift
+1
-2
YHHomeCollectionViewCell.swift
...IntelligentService(服务中心)/V/YHHomeCollectionViewCell.swift
+0
-1
YHServiceSectionView.swift
...les/IntelligentService(服务中心)/V/YHServiceSectionView.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHHomeListModel.swift
View file @
3717647d
...
...
@@ -39,7 +39,7 @@ class YHHomeListModel: YHBaseModel {
var
img_height_cell
:
CGFloat
=
0
//描述的高度
var
textH
:
CGFloat
=
20
.0
var
textH
:
CGFloat
=
16
.0
...
...
@@ -80,6 +80,5 @@ class YHHomeListModel: YHBaseModel {
self
.
img_width_cell
=
width
self
.
img_height_cell
=
totalHeight
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHHomeCollectionViewCell.swift
View file @
3717647d
...
...
@@ -172,7 +172,6 @@ extension YHHomeCollectionViewCell {
make
.
top
.
equalToSuperview
()
.
offset
(
10
)
make
.
left
.
equalToSuperview
()
.
offset
(
8
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
8
)
make
.
height
.
equalTo
(
listModel
.
textH
)
make
.
bottom
.
equalTo
(
-
36
)
}
numLable
.
text
=
listModel
.
collect_count
.
string
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceSectionView.swift
View file @
3717647d
...
...
@@ -39,7 +39,7 @@ class YHServiceSectionView: UIView {
let
collectinoView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
collectinoView
.
backgroundColor
=
.
white
collectinoView
.
contentInset
=
UIEdgeInsets
(
top
:
10
,
left
:
20
,
bottom
:
0
,
right
:
20
)
collectinoView
.
contentInset
=
UIEdgeInsets
(
top
:
8
,
left
:
20
,
bottom
:
0
,
right
:
20
)
collectinoView
.
register
(
YHServiceSectionCollectionViewCell
.
self
,
forCellWithReuseIdentifier
:
YHServiceSectionCollectionViewCell
.
cellReuseIdentifier
)
collectinoView
.
delegate
=
self
collectinoView
.
dataSource
=
self
...
...
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