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
56ca53e9
Commit
56ca53e9
authored
Oct 13, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_1013' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into dev_1013
parents
ee35fa3a
223ffa34
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
60 deletions
+17
-60
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
YHCirclePublishViewController.swift
...ty(社区)/Circle(下属社区)/C/YHCirclePublishViewController.swift
+6
-13
YHCircleViewController.swift
...Community(社区)/Circle(下属社区)/C/YHCircleViewController.swift
+1
-15
YHCircleCollectionViewCell.swift
...unity(社区)/Circle(下属社区)/V/YHCircleCollectionViewCell.swift
+1
-1
YHResourceViewController.swift
...mmunity(社区)/Resource(资源)/C/YHResourceViewController.swift
+1
-23
YHResourceListModel.swift
...es/Community(社区)/Resource(资源)/M/YHResourceListModel.swift
+2
-2
YHResourceViewModel.swift
...s/Community(社区)/Resource(资源)/VM/YHResourceViewModel.swift
+1
-1
YHDynamicItem.swift
...asses/Modules/Mine(我的)/NameCard(名片)/M/YHDynamicItem.swift
+1
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
56ca53e9
...
...
@@ -8936,7 +8936,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
0
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
...
@@ -8966,7 +8966,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
0
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
...
@@ -8996,7 +8996,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
0
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
...
@@ -9026,7 +9026,7 @@
CODE_SIGN_ENTITLEMENTS
=
yinheReplayExt/yinheReplayExt.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
0
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
GENERATE_INFOPLIST_FILE
=
YES
;
INFOPLIST_FILE
=
yinheReplayExt/Info.plist
;
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Circle(下属社区)/C/YHCirclePublishViewController.swift
View file @
56ca53e9
...
...
@@ -384,7 +384,11 @@ class YHCirclePublishViewController: YHBaseViewController {
@objc
private
func
publishButtonTapped
()
{
view
.
endEditing
(
true
)
guard
hasContent
()
else
{
guard
!
textView
.
text
.
isEmpty
else
{
YHHUD
.
flash
(
message
:
"标题不能为空"
)
return
}
guard
!
mediaItems
.
isEmpty
else
{
YHHUD
.
flash
(
message
:
"请至少添加一张图片"
)
return
}
...
...
@@ -491,14 +495,7 @@ class YHCirclePublishViewController: YHBaseViewController {
// MARK: - Helper Methods
private
func
hasContent
()
->
Bool
{
return
!
mediaItems
.
isEmpty
// 目前卡图片
// return !textView.text.isEmpty || !detailTextView.text.isEmpty || !mediaItems.isEmpty
}
private
func
updatePublishButton
()
{
let
hasContent
=
hasContent
()
rightButton
.
isEnabled
=
hasContent
rightButton
.
backgroundColor
=
hasContent
?
UIColor
.
brandGrayColor8
:
UIColor
.
brandGrayColor4
return
!
textView
.
text
.
isEmpty
||
!
detailTextView
.
text
.
isEmpty
||
!
mediaItems
.
isEmpty
}
private
func
updateCollectionViewHeight
()
{
...
...
@@ -533,7 +530,6 @@ extension YHCirclePublishViewController: UITextViewDelegate {
detailPlaceholderLabel
.
isHidden
=
!
textView
.
text
.
isEmpty
updateTextViewHeight
(
textView
)
}
// updatePublishButton()
}
func
textView
(
_
textView
:
UITextView
,
shouldChangeTextIn
range
:
NSRange
,
replacementText
text
:
String
)
->
Bool
{
...
...
@@ -611,7 +607,6 @@ extension YHCirclePublishViewController: UICollectionViewDataSource, UICollectio
// 刷新集合视图
self
.
mediaCollectionView
.
reloadData
()
self
.
updateCollectionViewHeight
()
// self.updatePublishButton()
printLog
(
"已从发布页面删除媒体项,剩余:
\(
self
.
mediaItems
.
count
)
"
)
}
...
...
@@ -630,7 +625,6 @@ extension YHCirclePublishViewController: UICollectionViewDataSource, UICollectio
mediaItems
.
remove
(
at
:
index
)
mediaCollectionView
.
reloadData
()
updateCollectionViewHeight
()
// updatePublishButton()
}
private
func
showMediaUploadSheet
()
{
...
...
@@ -650,7 +644,6 @@ extension YHCirclePublishViewController: UICollectionViewDataSource, UICollectio
mediaCollectionView
.
reloadData
()
updateCollectionViewHeight
()
// updatePublishButton()
printLog
(
"获得
\(
itemsToAdd
.
count
)
个媒体文件"
)
// 为每个新添加的 item 开始上传
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Circle(下属社区)/C/YHCircleViewController.swift
View file @
56ca53e9
...
...
@@ -130,6 +130,7 @@ private extension YHCircleViewController {
self
.
circleCollectView
.
es
.
stopPullToRefresh
()
if
!
self
.
viewModel
.
hasMore
,
self
.
arr
.
count
>
0
{
self
.
circleCollectView
.
es
.
noticeNoMoreData
()
self
.
circleCollectView
.
footer
?
.
alpha
=
1
}
}
}
...
...
@@ -323,21 +324,6 @@ extension YHCircleViewController: CollectionViewWaterfallLayoutDelegate {
}
}
// MARK: - UIScrollViewDelegate
extension
YHCircleViewController
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
let
itemNumber
=
viewModel
.
preloadItemIndex
let
section
=
0
let
itemIndex
=
itemNumber
-
1
let
indexPathToCheck
=
IndexPath
(
item
:
itemIndex
,
section
:
section
)
if
circleCollectView
.
indexPathsForVisibleItems
.
contains
(
indexPathToCheck
)
{
requestList
(
false
)
}
}
}
// MARK: - JXSegmentedListContainerViewListDelegate
extension
YHCircleViewController
:
JXSegmentedListContainerViewListDelegate
{
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Circle(下属社区)/V/YHCircleCollectionViewCell.swift
View file @
56ca53e9
...
...
@@ -259,7 +259,7 @@ class YHCircleCollectionViewCell: UICollectionViewCell {
}
// 内容文本
contentLabel
.
text
=
model
.
content
.
isEmpty
?
model
.
title
:
model
.
content
contentLabel
.
text
=
model
.
title
contentLabel
.
snp
.
removeConstraints
()
contentLabel
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
12
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Resource(资源)/C/YHResourceViewController.swift
View file @
56ca53e9
...
...
@@ -343,14 +343,6 @@ private extension YHResourceViewController {
DispatchQueue
.
main
.
async
{
YHHUD
.
hide
()
// if success, let arrData = self.viewModel.arrResourceData, arrData.count > 0 {
// let arrString = arrData.toJSONString()
// UserDefaults.standard.set(arrString, forKey: "resourceFirstPageData")
// UserDefaults.standard.synchronize()
// } else if !success, let errorMessage = message {
// YHHUD.flash(message: errorMessage)
// }
if
!
success
,
let
errorMessage
=
message
{
YHHUD
.
flash
(
message
:
errorMessage
)
}
...
...
@@ -374,7 +366,7 @@ private extension YHResourceViewController {
self
.
resourceTableView
.
reloadData
()
self
.
resourceTableView
.
es
.
stopLoadingMore
()
if
self
.
viewModel
.
hasMoreForResource
==
false
{
if
self
.
viewModel
.
hasMoreForResource
==
false
,
(
self
.
viewModel
.
arrResourceData
?
.
count
??
0
)
>
0
{
self
.
resourceTableView
.
es
.
noticeNoMoreData
()
self
.
resourceTableView
.
footer
?
.
alpha
=
1
}
...
...
@@ -615,20 +607,6 @@ extension YHResourceViewController: UITableViewDelegate, UITableViewDataSource {
}
}
// MARK: - UIScrollViewDelegate
extension
YHResourceViewController
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
let
itemNumber
=
viewModel
.
preloadItemIndex
let
visibleRows
=
resourceTableView
.
indexPathsForVisibleRows
??
[]
let
lastVisibleRow
=
visibleRows
.
last
?
.
row
??
0
if
lastVisibleRow
>=
itemNumber
-
1
{
loadMoreData
()
}
}
}
// MARK: - JXSegmentedListContainerViewListDelegate
extension
YHResourceViewController
:
JXSegmentedListContainerViewListDelegate
{
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Resource(资源)/M/YHResourceListModel.swift
View file @
56ca53e9
...
...
@@ -107,7 +107,7 @@ class YHResourceListModel: SmartCodable {
/// 显示名称(优先显示中文名)
var
displayName
:
String
{
return
company_name
.
isEmpty
?
company_english_name
:
company_name
return
company_name
.
isEmpty
?
"-"
:
company_name
}
/// 是否有英文名
...
...
@@ -117,7 +117,7 @@ class YHResourceListModel: SmartCodable {
/// 行业类型显示文本
var
industryDisplayText
:
String
{
return
industry_type_str
.
isEmpty
?
"
其他
"
:
industry_type_str
return
industry_type_str
.
isEmpty
?
"
-
"
:
industry_type_str
}
/// 是否提供服务
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Resource(资源)/VM/YHResourceViewModel.swift
View file @
56ca53e9
...
...
@@ -14,7 +14,7 @@ class YHResourceViewModel: NSObject {
var
arrResourceData
:
[
YHResourceListModel
]?
var
hasMoreForResource
:
Bool
=
true
var
currentPage
:
Int
=
1
var
pageSize
:
Int
=
2
0
var
pageSize
:
Int
=
1
0
var
preloadItemIndex
:
Int
=
10
var
totalCount
:
Int
=
0
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/M/YHDynamicItem.swift
View file @
56ca53e9
...
...
@@ -88,7 +88,7 @@ class YHDynamicItem: SmartCodable {
return
}
isCalHeight
=
true
let
text
=
content
.
isEmpty
?
title
:
content
let
text
=
title
let
width
=
(
KScreenWidth
-
47
)
/
2
let
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
// 字体大小改为15
let
maxWidth
=
width
-
16
// 最大宽度限制(左右各8的内边距)
...
...
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