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
8d93d41c
Commit
8d93d41c
authored
Sep 30, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 名片
parent
ecc5dafd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
YHMatchUserInfo.swift
...axy/Classes/Modules/Community(社区)/M/YHMatchUserInfo.swift
+8
-11
YHNameCardHomePageViewController.swift
...我的)/NameCard(名片)/C/YHNameCardHomePageViewController.swift
+6
-2
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/M/YHMatchUserInfo.swift
View file @
8d93d41c
...
...
@@ -67,17 +67,14 @@ class YHMatchUserAddress: SmartCodable {
class
YHAuthorizationModel
:
SmartCodable
{
var
educationExperience
:
Int
=
0
var
workExperience
:
Int
=
0
var
public_education_experience
:
Int
=
0
var
public_work_experience
:
Int
=
0
var
friend_education_experience
:
Int
=
0
var
friend_work_experience
:
Int
=
0
required
init
()
{
}
enum
CodingKeys
:
String
,
CodingKey
{
case
educationExperience
=
"public_education_experience"
case
workExperience
=
"public_work_experience"
}
}
enum
YHNameCardInfoType
:
Int
{
...
...
@@ -118,12 +115,12 @@ class YHUserNameCardInfo: SmartCodable {
var
isHiddenEducation
:
Bool
{
get
{
return
self
.
authorization
.
educationE
xperience
!=
2
return
self
.
authorization
.
public_education_experience
!=
2
||
self
.
authorization
.
friend_education_e
xperience
!=
2
}
}
var
isHiddenWorkExperience
:
Bool
{
get
{
return
self
.
authorization
.
workE
xperience
!=
2
return
self
.
authorization
.
public_work_experience
!=
2
||
self
.
authorization
.
friend_work_e
xperience
!=
2
}
}
...
...
@@ -150,8 +147,8 @@ class YHUserNameCardInfo: SmartCodable {
self
.
position
=
model
.
position
self
.
industry
=
model
.
industry
self
.
honor
=
model
.
honor
self
.
authorization
.
educationExperience
=
model
.
authorization
.
educationE
xperience
self
.
authorization
.
workExperience
=
model
.
authorization
.
workE
xperience
self
.
authorization
.
public_education_experience
=
model
.
authorization
.
public_education_e
xperience
self
.
authorization
.
public_work_experience
=
model
.
authorization
.
public_work_e
xperience
self
.
topics
.
removeAll
()
self
.
topics
.
append
(
contentsOf
:
model
.
topics
)
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/C/YHNameCardHomePageViewController.swift
View file @
8d93d41c
...
...
@@ -103,7 +103,9 @@ class YHNameCardHomePageViewController: YHBaseViewController {
// 教育经历信息
var
isShowEducation
=
true
if
!
self
.
isCurrentUser
{
isShowEducation
=
!
self
.
viewModel
.
nameCardInfo
.
isHiddenEducation
let
isFriend
=
self
.
viewModel
.
nameCardInfo
.
type
==
YHContactRelation
.
friend
.
rawValue
isShowEducation
=
(
isFriend
&&
self
.
viewModel
.
nameCardInfo
.
authorization
.
friend_education_experience
==
2
)
||
(
!
isFriend
&&
self
.
viewModel
.
nameCardInfo
.
authorization
.
public_education_experience
==
2
)
if
isShowEducation
{
isShowEducation
=
(
!
self
.
viewModel
.
nameCardInfo
.
college
.
isEmpty
||
!
self
.
viewModel
.
nameCardInfo
.
background
.
isEmpty
||
!
self
.
viewModel
.
nameCardInfo
.
major
.
isEmpty
)
}
...
...
@@ -119,7 +121,9 @@ class YHNameCardHomePageViewController: YHBaseViewController {
// 工作经历信息
var
isShowWorkExperience
=
true
if
!
self
.
isCurrentUser
{
isShowWorkExperience
=
!
self
.
viewModel
.
nameCardInfo
.
isHiddenWorkExperience
let
isFriend
=
self
.
viewModel
.
nameCardInfo
.
type
==
YHContactRelation
.
friend
.
rawValue
isShowWorkExperience
=
(
isFriend
&&
self
.
viewModel
.
nameCardInfo
.
authorization
.
friend_work_experience
==
2
)
||
(
!
isFriend
&&
self
.
viewModel
.
nameCardInfo
.
authorization
.
public_work_experience
==
2
)
if
isShowWorkExperience
{
isShowWorkExperience
=
(
!
self
.
viewModel
.
nameCardInfo
.
companyName
.
isEmpty
||
!
self
.
viewModel
.
nameCardInfo
.
position
.
isEmpty
||
!
self
.
viewModel
.
nameCardInfo
.
industry
.
isEmpty
)
}
...
...
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