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
cab40a64
Commit
cab40a64
authored
Sep 30, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 名片
parent
8d93d41c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
+34
-2
YHMatchUserInfo.swift
...axy/Classes/Modules/Community(社区)/M/YHMatchUserInfo.swift
+2
-0
YHNameCardHomePageViewController.swift
...我的)/NameCard(名片)/C/YHNameCardHomePageViewController.swift
+21
-2
YHWholeScreenTipsView.swift
...y/galaxy/Classes/Tools/Helper/YHWholeScreenTipsView.swift
+11
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/M/YHMatchUserInfo.swift
View file @
cab40a64
...
@@ -149,6 +149,8 @@ class YHUserNameCardInfo: SmartCodable {
...
@@ -149,6 +149,8 @@ class YHUserNameCardInfo: SmartCodable {
self
.
honor
=
model
.
honor
self
.
honor
=
model
.
honor
self
.
authorization
.
public_education_experience
=
model
.
authorization
.
public_education_experience
self
.
authorization
.
public_education_experience
=
model
.
authorization
.
public_education_experience
self
.
authorization
.
public_work_experience
=
model
.
authorization
.
public_work_experience
self
.
authorization
.
public_work_experience
=
model
.
authorization
.
public_work_experience
self
.
authorization
.
friend_education_experience
=
model
.
authorization
.
friend_education_experience
self
.
authorization
.
friend_work_experience
=
model
.
authorization
.
friend_work_experience
self
.
topics
.
removeAll
()
self
.
topics
.
removeAll
()
self
.
topics
.
append
(
contentsOf
:
model
.
topics
)
self
.
topics
.
append
(
contentsOf
:
model
.
topics
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/C/YHNameCardHomePageViewController.swift
View file @
cab40a64
...
@@ -208,7 +208,16 @@ extension YHNameCardHomePageViewController: UITableViewDelegate, UITableViewData
...
@@ -208,7 +208,16 @@ extension YHNameCardHomePageViewController: UITableViewDelegate, UITableViewData
eduCell
.
hiddenBtnBlock
=
{
eduCell
.
hiddenBtnBlock
=
{
[
weak
self
]
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
YHWholeScreenTipsView
.
show
(
type
:
.
nameCardEducation
,
targetView
:
eduCell
.
hiddenBtn
)
var
targetText
=
""
if
self
.
viewModel
.
nameCardInfo
.
authorization
.
friend_education_experience
!=
2
&&
self
.
viewModel
.
nameCardInfo
.
authorization
.
public_education_experience
!=
2
{
targetText
=
"好友与陌生人"
}
else
if
self
.
viewModel
.
nameCardInfo
.
authorization
.
friend_education_experience
!=
2
{
targetText
=
"好友"
}
else
if
self
.
viewModel
.
nameCardInfo
.
authorization
.
public_education_experience
!=
2
{
targetText
=
"陌生人"
}
let
tips
=
"该栏目已对"
+
targetText
+
"隐藏,若需重新开启,请前往信息授权处更新设置"
YHWholeScreenTipsView
.
show
(
message
:
tips
,
targetView
:
eduCell
.
hiddenBtn
)
}
}
eduCell
.
editBlock
=
{
[
weak
self
]
in
eduCell
.
editBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
@@ -225,7 +234,17 @@ extension YHNameCardHomePageViewController: UITableViewDelegate, UITableViewData
...
@@ -225,7 +234,17 @@ extension YHNameCardHomePageViewController: UITableViewDelegate, UITableViewData
workCell
.
hiddenBtnBlock
=
{
workCell
.
hiddenBtnBlock
=
{
[
weak
self
]
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
YHWholeScreenTipsView
.
show
(
type
:
.
nameCardWorkExperience
,
targetView
:
workCell
.
hiddenBtn
)
var
targetText
=
""
if
self
.
viewModel
.
nameCardInfo
.
authorization
.
friend_work_experience
!=
2
&&
self
.
viewModel
.
nameCardInfo
.
authorization
.
public_work_experience
!=
2
{
targetText
=
"好友与陌生人"
}
else
if
self
.
viewModel
.
nameCardInfo
.
authorization
.
friend_work_experience
!=
2
{
targetText
=
"好友"
}
else
if
self
.
viewModel
.
nameCardInfo
.
authorization
.
public_work_experience
!=
2
{
targetText
=
"陌生人"
}
let
tips
=
"该栏目已对"
+
targetText
+
"隐藏,若需重新开启,请前往信息授权处更新设置"
YHWholeScreenTipsView
.
show
(
message
:
tips
,
targetView
:
workCell
.
hiddenBtn
)
}
}
workCell
.
editBlock
=
{
[
weak
self
]
in
workCell
.
editBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YHWholeScreenTipsView.swift
View file @
cab40a64
...
@@ -71,6 +71,12 @@ class YHWholeScreenTipsView: UIView {
...
@@ -71,6 +71,12 @@ class YHWholeScreenTipsView: UIView {
self
.
createUI
(
targetView
:
targetView
)
self
.
createUI
(
targetView
:
targetView
)
}
}
init
(
message
:
String
,
targetView
:
UIView
)
{
super
.
init
(
frame
:
UIScreen
.
main
.
bounds
)
contentLable
.
text
=
message
self
.
createUI
(
targetView
:
targetView
)
}
required
init
?(
coder
:
NSCoder
)
{
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
fatalError
(
"init(coder:) has not been implemented"
)
}
}
...
@@ -122,6 +128,11 @@ class YHWholeScreenTipsView: UIView {
...
@@ -122,6 +128,11 @@ class YHWholeScreenTipsView: UIView {
view
.
show
()
view
.
show
()
}
}
static
func
show
(
message
:
String
,
targetView
:
UIView
)
{
let
view
=
YHWholeScreenTipsView
(
message
:
message
,
targetView
:
targetView
)
view
.
show
()
}
@objc
func
dismiss
()
{
@objc
func
dismiss
()
{
self
.
removeFromSuperview
()
self
.
removeFromSuperview
()
}
}
...
...
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