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
08a43dc3
Commit
08a43dc3
authored
Sep 28, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 名片
parent
59b41db5
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
381 additions
and
27 deletions
+381
-27
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-0
YHConnectListViewController.swift
...y(社区)/Connections(人脉)/C/YHConnectListViewController.swift
+3
-0
YHMyNewViewController.swift
...xy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
+3
-0
YHEditBaseUserInfoViewController.swift
...我的)/MyCard(我的名片)/C/YHEditBaseUserInfoViewController.swift
+9
-9
YHEditHonorViewController.swift
...s/Mine(我的)/MyCard(我的名片)/C/YHEditHonorViewController.swift
+1
-1
YHEditPersonalProfileViewController.swift
.../MyCard(我的名片)/C/YHEditPersonalProfileViewController.swift
+1
-1
YHEditSchoolViewController.swift
.../Mine(我的)/MyCard(我的名片)/C/YHEditSchoolViewController.swift
+5
-5
YHEditWorkViewController.swift
...es/Mine(我的)/MyCard(我的名片)/C/YHEditWorkViewController.swift
+5
-5
YHNameCardContainerViewController.swift
...的)/NameCard(名片)/C/YHNameCardContainerViewController.swift
+25
-5
YHNameCardDynamicViewController.swift
...(我的)/NameCard(名片)/C/YHNameCardDynamicViewController.swift
+81
-0
YHNameCardHomePageViewController.swift
...我的)/NameCard(名片)/C/YHNameCardHomePageViewController.swift
+0
-1
YHNameCardDynamicCell.swift
...dules/Mine(我的)/NameCard(名片)/V/YHNameCardDynamicCell.swift
+218
-0
16pt@2x.png
...ets.xcassets/nameCard/name_card_tips.imageset/16pt@2x.png
+0
-0
16pt@3x.png
...ets.xcassets/nameCard/name_card_tips.imageset/16pt@3x.png
+0
-0
Contents.json
...s.xcassets/nameCard/name_card_tips.imageset/Contents.json
+22
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
08a43dc3
...
...
@@ -1257,6 +1257,8 @@
04B00FCA2D9AAD6100F640C5
/* YHMakePlanTopView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00FC92D9AAD6100F640C5
/* YHMakePlanTopView.swift */
;
};
04B30B7B2E86307C004E4B12
/* YHNameCardHomePageViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B30B7A2E86307C004E4B12
/* YHNameCardHomePageViewController.swift */
;
};
04B30B8C2E869717004E4B12
/* YHGrayCommonAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B30B8B2E869717004E4B12
/* YHGrayCommonAlertView.swift */
;
};
04B30B8E2E88C837004E4B12
/* YHNameCardDynamicViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B30B8D2E88C837004E4B12
/* YHNameCardDynamicViewController.swift */
;
};
04B30B902E88CA0B004E4B12
/* YHNameCardDynamicCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B30B8F2E88CA0B004E4B12
/* YHNameCardDynamicCell.swift */
;
};
04D4EC312E839C1000B0329B
/* YHCircleViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D4EC302E839C1000B0329B
/* YHCircleViewController.swift */
;
};
04D4EC332E839C2B00B0329B
/* YHResourceViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D4EC322E839C2B00B0329B
/* YHResourceViewController.swift */
;
};
04D4EC442E83D0D500B0329B
/* YHCircleViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D4EC432E83D0D500B0329B
/* YHCircleViewModel.swift */
;
};
...
...
@@ -2611,6 +2613,8 @@
04B00FC92D9AAD6100F640C5
/* YHMakePlanTopView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanTopView.swift
;
sourceTree
=
"<group>"
;
};
04B30B7A2E86307C004E4B12
/* YHNameCardHomePageViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNameCardHomePageViewController.swift
;
sourceTree
=
"<group>"
;
};
04B30B8B2E869717004E4B12
/* YHGrayCommonAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHGrayCommonAlertView.swift
;
sourceTree
=
"<group>"
;
};
04B30B8D2E88C837004E4B12
/* YHNameCardDynamicViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNameCardDynamicViewController.swift
;
sourceTree
=
"<group>"
;
};
04B30B8F2E88CA0B004E4B12
/* YHNameCardDynamicCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNameCardDynamicCell.swift
;
sourceTree
=
"<group>"
;
};
04D4EC302E839C1000B0329B
/* YHCircleViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCircleViewController.swift
;
sourceTree
=
"<group>"
;
};
04D4EC322E839C2B00B0329B
/* YHResourceViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResourceViewController.swift
;
sourceTree
=
"<group>"
;
};
04D4EC432E83D0D500B0329B
/* YHCircleViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCircleViewModel.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -6909,6 +6913,7 @@
children
=
(
0426E09B2E851A91005C9F5D
/* YHNameCardContainerViewController.swift */
,
04B30B7A2E86307C004E4B12
/* YHNameCardHomePageViewController.swift */
,
04B30B8D2E88C837004E4B12
/* YHNameCardDynamicViewController.swift */
,
);
path
=
C
;
sourceTree
=
"<group>"
;
...
...
@@ -6916,6 +6921,7 @@
04B30B7E2E863761004E4B12
/* V */
=
{
isa
=
PBXGroup
;
children
=
(
04B30B8F2E88CA0B004E4B12
/* YHNameCardDynamicCell.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -7893,6 +7899,7 @@
045C10DD2D12CA5F00BD2DC0
/* YHWorkExperienceCompanySelectView.swift in Sources */
,
045C10DE2D12CA5F00BD2DC0
/* YHResignUploadDocDetailViewController.swift in Sources */
,
045C10DF2D12CA5F00BD2DC0
/* Array+Extension.swift in Sources */
,
04B30B8E2E88C837004E4B12
/* YHNameCardDynamicViewController.swift in Sources */
,
045C10E02D12CA5F00BD2DC0
/* YHAIChatConfiguration.swift in Sources */
,
045C10E12D12CA5F00BD2DC0
/* YHEditPersonalProfileViewController.swift in Sources */
,
045C10E22D12CA5F00BD2DC0
/* YHInvitationWithGiftsDetailView.swift in Sources */
,
...
...
@@ -8372,6 +8379,7 @@
045C12632D12CA5F00BD2DC0
/* YHTotalIncomeCell.swift in Sources */
,
04307B6A2D1A4C6500ED8E8D
/* YHIncomeInfoSelectCell.swift in Sources */
,
045C12642D12CA5F00BD2DC0
/* YHPayMemberContentItem.swift in Sources */
,
04B30B902E88CA0B004E4B12
/* YHNameCardDynamicCell.swift in Sources */
,
045C12652D12CA5F00BD2DC0
/* YHSheetPickerView.swift in Sources */
,
045C12662D12CA5F00BD2DC0
/* YHScorePersonInfoCell.swift in Sources */
,
045C12672D12CA5F00BD2DC0
/* YHServiceOrderTipsView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Connections(人脉)/C/YHConnectListViewController.swift
View file @
08a43dc3
...
...
@@ -66,6 +66,9 @@ extension YHConnectListViewController: UITableViewDelegate, UITableViewDataSourc
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
arr
.
count
{
let
vc
=
YHNameCardContainerViewController
()
if
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
{
vc
.
userId
=
userId
}
navigationController
?
.
pushViewController
(
vc
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
View file @
08a43dc3
...
...
@@ -668,6 +668,9 @@ extension YHMyNewViewController {
switch
item
.
type
{
case
.
myCard
:
// 我的名片
let
vc
=
YHNameCardContainerViewController
()
if
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
{
vc
.
userId
=
userId
}
self
.
navigationController
?
.
pushViewController
(
vc
)
// enterMyNameCard()
case
.
myMessage
:
// 我的消息
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditBaseUserInfoViewController.swift
View file @
08a43dc3
...
...
@@ -34,10 +34,10 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
tableView
.
reloadData
()
if
self
.
viewModel
.
isCanNext
(
step
:
1
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor8
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
.
withAlphaComponent
(
0.4
)
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor4
}
}
...
...
@@ -92,7 +92,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
nextButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brand
MainColor
button
.
backgroundColor
=
UIColor
.
brand
GrayColor8
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"保存"
,
for
:
.
normal
)
...
...
@@ -157,10 +157,10 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
viewModel
.
model
.
avatar
=
replacedString
if
self
.
viewModel
.
isCanNext
(
step
:
1
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor8
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
.
withAlphaComponent
(
0.4
)
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor4
}
self
.
viewModel
.
didChange
=
true
}
...
...
@@ -193,7 +193,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
override
func
backItemClick
(
_
sender
:
Any
)
{
if
viewModel
.
didChange
{
view
.
resignAllFirstResponders
()
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"仍然关闭"
,
"继续编辑"
,
fullGuestureEnable
:
false
)
{
YH
Gray
CommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"仍然关闭"
,
"继续编辑"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -206,7 +206,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
override
func
navigationShouldPop
()
->
Bool
{
if
viewModel
.
didChange
{
view
.
resignAllFirstResponders
()
YHCommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"仍然关闭"
,
"继续编辑"
,
fullGuestureEnable
:
false
)
{
YH
Gray
CommonAlertView
.
show
(
""
,
"您尚未保存修改,确定关闭吗?"
,
"仍然关闭"
,
"继续编辑"
,
fullGuestureEnable
:
false
)
{
self
.
navigationController
?
.
popViewController
()
}
callBack
:
{
}
...
...
@@ -232,10 +232,10 @@ extension YHEditBaseUserInfoViewController: UITableViewDelegate, UITableViewData
}
if
self
.
viewModel
.
isCanNext
(
step
:
1
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
nextButton
.
backgroundColor
=
.
brandGrayColor8
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brandMainColor
.
withAlphaComponent
(
0.4
)
nextButton
.
backgroundColor
=
.
brandGrayColor4
}
}
return
cell
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditHonorViewController.swift
View file @
08a43dc3
...
...
@@ -95,7 +95,7 @@ class YHEditHonorViewController: YHBaseViewController {
}
nextButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brand
MainColor
button
.
backgroundColor
=
UIColor
.
brand
GrayColor8
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"保存"
,
for
:
.
normal
)
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditPersonalProfileViewController.swift
View file @
08a43dc3
...
...
@@ -95,7 +95,7 @@ class YHEditPersonalProfileViewController: YHBaseViewController {
}
nextButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brand
MainColor
button
.
backgroundColor
=
UIColor
.
brand
GrayColor8
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"保存"
,
for
:
.
normal
)
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditSchoolViewController.swift
View file @
08a43dc3
...
...
@@ -27,10 +27,10 @@ class YHEditSchoolViewController: YHBaseViewController {
tableView
.
reloadData
()
if
self
.
viewModel
.
isCanNext
(
step
:
3
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor8
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
.
withAlphaComponent
(
0.4
)
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor4
}
}
...
...
@@ -40,7 +40,7 @@ class YHEditSchoolViewController: YHBaseViewController {
nextButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brand
MainColor
button
.
backgroundColor
=
UIColor
.
brand
GrayColor8
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"保存"
,
for
:
.
normal
)
...
...
@@ -130,10 +130,10 @@ extension YHEditSchoolViewController: UITableViewDelegate, UITableViewDataSource
}
if
self
.
viewModel
.
isCanNext
(
step
:
3
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor8
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
.
withAlphaComponent
(
0.4
)
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor4
}
}
return
cell
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditWorkViewController.swift
View file @
08a43dc3
...
...
@@ -27,10 +27,10 @@ class YHEditWorkViewController: YHBaseViewController {
tableView
.
reloadData
()
if
self
.
viewModel
.
isCanNext
(
step
:
4
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor8
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
.
withAlphaComponent
(
0.4
)
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor4
}
}
...
...
@@ -40,7 +40,7 @@ class YHEditWorkViewController: YHBaseViewController {
nextButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brand
MainColor
button
.
backgroundColor
=
UIColor
.
brand
GrayColor8
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"保存"
,
for
:
.
normal
)
...
...
@@ -130,10 +130,10 @@ extension YHEditWorkViewController: UITableViewDelegate, UITableViewDataSource {
}
if
self
.
viewModel
.
isCanNext
(
step
:
4
)
{
nextButton
.
isEnabled
=
true
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor8
}
else
{
nextButton
.
isEnabled
=
false
nextButton
.
backgroundColor
=
UIColor
.
brand
MainColor
.
withAlphaComponent
(
0.4
)
nextButton
.
backgroundColor
=
UIColor
.
brand
GrayColor4
}
}
return
cell
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/C/YHNameCardContainerViewController.swift
View file @
08a43dc3
...
...
@@ -12,8 +12,11 @@ import UIKit
class
YHNameCardContainerViewController
:
YHBaseViewController
{
var
userId
:
String
=
""
var
defaultIndex
=
0
let
viewModel
=
YHMatchUserViewModel
()
lazy
var
containerScrollView
:
UIScrollView
=
{
let
scrollView
=
UIScrollView
(
frame
:
.
zero
)
scrollView
.
delegate
=
self
...
...
@@ -83,9 +86,10 @@ class YHNameCardContainerViewController: YHBaseViewController {
lazy
var
editBtn
:
UIButton
=
{
let
btn
=
UIButton
(
type
:
.
custom
)
btn
.
setBackgroundImage
(
UIImage
(
named
:
"name_card_edit"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
didBasciInfoBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
lazy
var
nameTextView
:
UITextView
=
{
let
textView
=
UITextView
()
textView
.
textColor
=
UIColor
.
brandGrayColor8
...
...
@@ -164,9 +168,7 @@ class YHNameCardContainerViewController: YHBaseViewController {
}()
lazy
var
childrenVC
:
[
YHBaseViewController
]
=
{
let
vc2
=
YHNameCardHomePageViewController
()
let
vcs
:
[
YHBaseViewController
]
=
[
homePageVC
,
vc2
]
let
vcs
:
[
YHBaseViewController
]
=
[
homePageVC
,
dynamicVC
]
return
vcs
}()
...
...
@@ -177,6 +179,11 @@ class YHNameCardContainerViewController: YHBaseViewController {
}
return
vc
}()
lazy
var
dynamicVC
:
YHNameCardDynamicViewController
=
{
let
vc
=
YHNameCardDynamicViewController
()
return
vc
}()
lazy
var
bottomBtn
:
UIButton
=
{
let
btn
=
UIButton
(
type
:
.
custom
)
...
...
@@ -204,8 +211,21 @@ class YHNameCardContainerViewController: YHBaseViewController {
deinit
{
NotificationCenter
.
default
.
removeObserver
(
self
)
}
func
requestNameCardInfo
()
{
self
.
viewModel
.
getUserNameCardInfo
(
uid
:
self
.
userId
)
{
_
,
_
in
}
}
@objc
func
authorizeBtnClicked
()
{
}
@objc
func
didBasciInfoBtnClicked
()
{
let
vc
=
YHEditBaseUserInfoViewController
()
vc
.
model
=
self
.
viewModel
.
nameCardInfo
self
.
navigationController
?
.
pushViewController
(
vc
)
}
func
createUI
()
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/C/YHNameCardDynamicViewController.swift
0 → 100644
View file @
08a43dc3
//
// YHNameCardDynamicViewController.swift
// galaxy
//
// Created by Dufet on 2025/9/28.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
JXSegmentedView
class
YHNameCardDynamicViewController
:
YHBaseViewController
{
var
arr
:
[
String
]
=
[
""
,
""
,
""
,
""
]
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
estimatedSectionHeaderHeight
=
100
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
.
clear
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHNameCardDynamicCell
.
self
,
forCellReuseIdentifier
:
YHNameCardDynamicCell
.
cellReuseIdentifier
)
return
tableView
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
view
.
backgroundColor
=
.
white
gk_navigationBar
.
isHidden
=
true
view
.
addSubview
(
self
.
tableView
)
self
.
tableView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
bottom
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
}
}
}
extension
YHNameCardDynamicViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
self
.
arr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
guard
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHNameCardDynamicCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as?
YHNameCardDynamicCell
else
{
return
UITableViewCell
()
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
1.0
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
1.0
}
}
extension
YHNameCardDynamicViewController
:
JXSegmentedListContainerViewListDelegate
{
func
listView
()
->
UIView
{
return
view
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/C/YHNameCardHomePageViewController.swift
View file @
08a43dc3
...
...
@@ -41,7 +41,6 @@ class YHNameCardHomePageViewController: YHBaseViewController {
tableView
.
register
(
YHMyEducationCell
.
self
,
forCellReuseIdentifier
:
YHMyEducationCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHMyWorkExperienceCell
.
self
,
forCellReuseIdentifier
:
YHMyWorkExperienceCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHMyInterestTopicCell
.
self
,
forCellReuseIdentifier
:
YHMyInterestTopicCell
.
cellReuseIdentifier
)
tableView
.
contentInset
=
UIEdgeInsets
(
top
:
41
,
left
:
0
,
bottom
:
0
,
right
:
0
)
return
tableView
}()
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/V/YHNameCardDynamicCell.swift
0 → 100644
View file @
08a43dc3
//
// YHNameCardDynamicCell.swift
// galaxy
//
// Created by Dufet on 2025/9/28.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHNameCardDynamicCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHNameCardDynamicCell"
static
let
imgH
:
CGFloat
=
(
KScreenWidth
-
20*
2
-
4*
2
)
/
3.0
private
lazy
var
publishLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
brandGrayColor6
label
.
text
=
"发布了动态"
return
label
}()
private
lazy
var
timeLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
brandGrayColor6
label
.
text
=
"00-00"
label
.
textAlignment
=
.
right
return
label
}()
private
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
16
)
label
.
textColor
=
UIColor
.
brandGrayColor8
label
.
numberOfLines
=
2
label
.
text
=
"阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法"
return
label
}()
private
lazy
var
detailLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
16
)
label
.
textColor
=
UIColor
.
brandGrayColor8
label
.
numberOfLines
=
2
label
.
text
=
"阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法"
return
label
}()
private
lazy
var
imgContentV
:
UIView
=
{
let
v
=
UIView
()
v
.
backgroundColor
=
.
red
return
v
}()
private
lazy
var
img1V
:
UIImageView
=
{
let
v
=
UIImageView
()
v
.
backgroundColor
=
.
green
return
v
}()
private
lazy
var
img2V
:
UIImageView
=
{
let
v
=
UIImageView
()
v
.
backgroundColor
=
.
blue
return
v
}()
private
lazy
var
img3V
:
UIImageView
=
{
let
v
=
UIImageView
()
v
.
backgroundColor
=
.
yellow
return
v
}()
private
lazy
var
lineView
:
UIView
=
{
let
v
=
UIView
()
v
.
backgroundColor
=
UIColor
.
brandGrayColor3
return
v
}()
private
var
reviewContentV
:
UIView
=
{
let
v
=
UIView
()
v
.
backgroundColor
=
UIColor
.
brandGrayColor2
return
v
}()
private
lazy
var
rejectLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
let
a
:
ASAttributedString
=
.
init
(
"审核不通过:"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
failColor
))
let
b
:
ASAttributedString
=
.
init
(
"侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
failColor
))
label
.
attributed
.
text
=
a
+
b
return
label
}()
private
lazy
var
publishBtn
:
UIButton
=
{
let
btn
=
UIButton
(
type
:
.
custom
)
btn
.
setTitle
(
"重新发布"
,
for
:
.
normal
)
btn
.
setTitleColor
(
.
brandGrayColor8
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
11
)
btn
.
layer
.
borderColor
=
UIColor
.
brandGrayColor8
.
cgColor
btn
.
layer
.
borderWidth
=
1.0
btn
.
layer
.
cornerRadius
=
12.0
return
btn
}()
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
self
.
backgroundColor
=
.
clear
contentView
.
addSubview
(
reviewContentV
)
contentView
.
addSubview
(
publishLabel
)
contentView
.
addSubview
(
timeLabel
)
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
detailLabel
)
contentView
.
addSubview
(
imgContentV
)
contentView
.
addSubview
(
lineView
)
imgContentV
.
addSubview
(
img1V
)
imgContentV
.
addSubview
(
img2V
)
imgContentV
.
addSubview
(
img3V
)
reviewContentV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
top
.
equalTo
(
24
)
}
let
iconV
:
UIImageView
=
UIImageView
()
iconV
.
image
=
UIImage
(
named
:
"name_card_tips"
)
reviewContentV
.
addSubview
(
iconV
)
iconV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
8
)
make
.
top
.
equalTo
(
10
)
make
.
width
.
height
.
equalTo
(
14
)
}
reviewContentV
.
addSubview
(
rejectLabel
)
rejectLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
iconV
.
snp
.
right
)
.
offset
(
4
)
make
.
top
.
equalTo
(
8
)
make
.
bottom
.
equalTo
(
-
8
)
}
reviewContentV
.
addSubview
(
publishBtn
)
publishBtn
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
8
)
make
.
left
.
equalTo
(
rejectLabel
.
snp
.
right
)
.
offset
(
8
)
make
.
width
.
equalTo
(
72
)
make
.
height
.
equalTo
(
24
)
make
.
centerY
.
equalToSuperview
()
}
publishLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
0
)
make
.
top
.
equalTo
(
reviewContentV
.
snp
.
bottom
)
.
offset
(
16
)
make
.
height
.
equalTo
(
17
)
}
timeLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
publishLabel
)
make
.
left
.
equalTo
(
publishLabel
.
snp
.
right
)
.
offset
(
10
)
make
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
17
)
}
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
top
.
equalTo
(
publishLabel
.
snp
.
bottom
)
.
offset
(
10
)
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
10
)
}
imgContentV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
Self
.
imgH
)
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
16
)
make
.
bottom
.
equalTo
(
-
24
)
}
lineView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalTo
(
0
)
make
.
height
.
equalTo
(
1
)
}
img1V
.
snp
.
makeConstraints
{
make
in
make
.
left
.
top
.
bottom
.
equalToSuperview
()
make
.
width
.
equalTo
(
Self
.
imgH
)
}
img2V
.
snp
.
makeConstraints
{
make
in
make
.
top
.
bottom
.
equalToSuperview
()
make
.
left
.
equalTo
(
img1V
.
snp
.
right
)
.
offset
(
4
)
make
.
width
.
equalTo
(
Self
.
imgH
)
}
img3V
.
snp
.
makeConstraints
{
make
in
make
.
top
.
bottom
.
equalToSuperview
()
make
.
left
.
equalTo
(
img2V
.
snp
.
right
)
.
offset
(
4
)
make
.
width
.
equalTo
(
Self
.
imgH
)
}
}
}
galaxy/galaxy/Res/Assets.xcassets/nameCard/name_card_tips.imageset/16pt@2x.png
0 → 100644
View file @
08a43dc3
857 Bytes
galaxy/galaxy/Res/Assets.xcassets/nameCard/name_card_tips.imageset/16pt@3x.png
0 → 100644
View file @
08a43dc3
1.25 KB
galaxy/galaxy/Res/Assets.xcassets/nameCard/name_card_tips.imageset/Contents.json
0 → 100644
View file @
08a43dc3
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"16pt@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"16pt@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
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