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
e6668800
Commit
e6668800
authored
Oct 14, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除动态刷新的代码
parent
5fe60bf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
52 deletions
+53
-52
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-8
YHCircleViewController.swift
...Community(社区)/Circle(下属社区)/C/YHCircleViewController.swift
+9
-8
YHCircleCollectionViewCell.swift
...unity(社区)/Circle(下属社区)/V/YHCircleCollectionViewCell.swift
+36
-36
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
e6668800
...
@@ -8936,7 +8936,7 @@
...
@@ -8936,7 +8936,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
@@ -8966,7 +8966,7 @@
...
@@ -8966,7 +8966,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
@@ -8996,7 +8996,7 @@
...
@@ -8996,7 +8996,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
@@ -9026,7 +9026,7 @@
...
@@ -9026,7 +9026,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
@@ -9115,7 +9115,7 @@
...
@@ -9115,7 +9115,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -9264,7 +9264,7 @@
...
@@ -9264,7 +9264,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -9475,7 +9475,7 @@
...
@@ -9475,7 +9475,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
@@ -9526,7 +9526,7 @@
...
@@ -9526,7 +9526,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Circle(下属社区)/C/YHCircleViewController.swift
View file @
e6668800
...
@@ -251,14 +251,15 @@ extension YHCircleViewController: UICollectionViewDelegate, UICollectionViewData
...
@@ -251,14 +251,15 @@ extension YHCircleViewController: UICollectionViewDelegate, UICollectionViewData
}
}
let
model
=
arr
[
indexPath
.
row
]
let
model
=
arr
[
indexPath
.
row
]
cell
.
listModel
=
model
cell
.
listModel
=
model
cell
.
onImageHeightChanged
=
{
[
weak
self
]
in
// 暂不处理,可能出现渲染问题
guard
let
self
=
self
else
{
// cell.onImageHeightChanged = { [weak self] in
return
// guard let self = self else {
}
// return
UIView
.
performWithoutAnimation
{
// }
self
.
circleCollectView
.
reloadData
()
// UIView.performWithoutAnimation {
}
// self.circleCollectView.reloadData()
}
// }
// }
cell
.
clickHeartEvent
=
{
[
weak
self
,
weak
cell
]
in
cell
.
clickHeartEvent
=
{
[
weak
self
,
weak
cell
]
in
guard
let
self
=
self
else
{
guard
let
self
=
self
else
{
return
return
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Circle(下属社区)/V/YHCircleCollectionViewCell.swift
View file @
e6668800
...
@@ -207,42 +207,42 @@ class YHCircleCollectionViewCell: UICollectionViewCell {
...
@@ -207,42 +207,42 @@ class YHCircleCollectionViewCell: UICollectionViewCell {
}
}
if
let
firstResource
=
model
.
firstImageResource
,
!
firstResource
.
url
.
isEmpty
,
let
url
=
URL
(
string
:
firstResource
.
url
)
{
if
let
firstResource
=
model
.
firstImageResource
,
!
firstResource
.
url
.
isEmpty
,
let
url
=
URL
(
string
:
firstResource
.
url
)
{
titleImageView
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"plan_product_default"
))
{
result
in
titleImageView
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"plan_product_default"
))
{
_
in
switch
result
{
//
switch result {
case
let
.
success
(
value
):
//
case let .success(value):
DispatchQueue
.
global
()
.
async
{
//
DispatchQueue.global().async {
var
needRefreshHeight
=
false
//
var needRefreshHeight = false
let
size
=
value
.
image
.
size
//
let size = value.image.size
let
scale
=
size
.
width
>
0
?
Double
(
size
.
height
/
size
.
width
)
:
0.0
//
let scale = size.width > 0 ? Double(size.height / size.width) : 0.0
if
scale
>
0
{
//
if scale > 0 {
let
width
=
(
KScreenWidth
-
47
)
/
2
//
let width = (KScreenWidth - 47) / 2
let
height
=
scale
*
width
//
let height = scale * width
if
height
>=
model
.
maxImageHeight
,
model
.
img_height_use
>=
model
.
maxImageHeight
{
//
if height >= model.maxImageHeight, model.img_height_use >= model.maxImageHeight {
return
//
return
}
//
}
if
height
<=
model
.
minImageHeight
,
model
.
img_height_use
<=
model
.
minImageHeight
{
//
if height <= model.minImageHeight, model.img_height_use <= model.minImageHeight {
return
//
return
}
//
}
if
abs
(
height
-
model
.
img_height_use
)
>
10
{
//
if abs(height - model.img_height_use) > 10 {
model
.
calHeightParam
(
height
)
//
model.calHeightParam(height)
needRefreshHeight
=
true
//
needRefreshHeight = true
}
//
}
}
//
}
//
DispatchQueue
.
main
.
async
{
//
DispatchQueue.main.async {
if
needRefreshHeight
{
//
if needRefreshHeight {
self
.
titleImageView
.
snp
.
remakeConstraints
{
make
in
//
self.titleImageView.snp.remakeConstraints { make in
make
.
left
.
right
.
top
.
equalToSuperview
()
//
make.left.right.top.equalToSuperview()
make
.
height
.
equalTo
(
model
.
img_height_use
)
//
make.height.equalTo(model.img_height_use)
}
//
}
self
.
onImageHeightChanged
?()
//
self.onImageHeightChanged?()
}
//
}
}
//
}
}
//
}
//
case
.
failure
:
//
case .failure:
printLog
(
"kf setImage failed"
)
//
printLog("kf setImage failed")
}
//
}
}
}
}
else
{
}
else
{
titleImageView
.
image
=
UIImage
(
named
:
"plan_product_default"
)
titleImageView
.
image
=
UIImage
(
named
:
"plan_product_default"
)
...
...
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