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
d41e6aa9
Commit
d41e6aa9
authored
Jun 25, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的名片
parent
28598d31
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
4 deletions
+51
-4
YHMatchPeopleViewController.swift
...Modules/Community(社区)/C/YHMatchPeopleViewController.swift
+7
-0
YHMyEducationCell.swift
...y/Classes/Modules/Community(社区)/V/YHMyEducationCell.swift
+8
-0
YHMyNameCardAvatarInfoCell.swift
.../Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
+5
-4
YHMyWorkExperienceCell.swift
...sses/Modules/Community(社区)/V/YHMyWorkExperienceCell.swift
+31
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatchPeopleViewController.swift
View file @
d41e6aa9
...
...
@@ -400,5 +400,12 @@ extension YHMatchPeopleViewController: DragCardDelegate {
public
func
dragCard
(
_
dragCard
:
DragCardContainer
,
didSelectTopCardAt
index
:
Int
,
with
cardView
:
DragCardView
)
{
print
(
"didSelectTopCardAt:
\(
index
)
"
)
if
0
<=
index
&&
index
<
self
.
matchUsersArr
.
count
{
if
let
userModel
=
self
.
matchUsersArr
[
index
]
{
let
vc
=
YHMyNameCardViewController
()
vc
.
userId
=
userModel
.
yhId
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyEducationCell.swift
View file @
d41e6aa9
...
...
@@ -40,6 +40,13 @@ class YHMyEducationCell: UITableViewCell {
}
}
if
self
.
userModel
.
isCurrentUser
{
self
.
hiddenBtn
.
isHidden
=
(
self
.
userModel
.
authorization
.
educationExperience
==
1
)
}
else
{
self
.
hiddenBtn
.
isHidden
=
true
}
}
}
...
...
@@ -88,6 +95,7 @@ class YHMyEducationCell: UITableViewCell {
lazy
var
hiddenBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
isHidden
=
true
btn
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF4F6FA
)
btn
.
layer
.
cornerRadius
=
3.0
btn
.
setImage
(
UIImage
(
named
:
"people_card_hidden"
),
for
:
.
normal
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
View file @
d41e6aa9
...
...
@@ -85,6 +85,7 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
lazy
var
cardView
:
UIView
=
{
let
view
=
UIView
()
view
.
layer
.
cornerRadius
=
3.0
view
.
backgroundColor
=
.
white
return
view
}()
...
...
@@ -168,7 +169,7 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
self
.
backgroundColor
=
.
clear
self
.
contentView
.
backgroundColor
=
.
clear
self
.
contentView
.
addSubview
(
self
.
bgImgV
)
//
self.contentView.addSubview(self.bgImgV)
self
.
contentView
.
addSubview
(
self
.
cardView
)
self
.
contentView
.
addSubview
(
self
.
headImgV
)
self
.
contentView
.
addSubview
(
self
.
signImgV
)
...
...
@@ -183,9 +184,9 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
make
.
top
.
equalTo
(
headWidth
/
2.0
)
}
self
.
bgImgV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalTo
(
self
.
cardView
)
}
//
self.bgImgV.snp.makeConstraints { make in
//
make.edges.equalTo(self.cardView)
//
}
self
.
editBtn
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
20
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyWorkExperienceCell.swift
View file @
d41e6aa9
...
...
@@ -96,6 +96,13 @@ class YHMyWorkExperienceCell: UITableViewCell {
self
.
industryView
.
detailLabel
.
text
=
"请填写最近一份工作经历"
}
}
if
self
.
userModel
.
isCurrentUser
{
self
.
hiddenBtn
.
isHidden
=
(
self
.
userModel
.
authorization
.
workExperience
==
1
)
}
else
{
self
.
hiddenBtn
.
isHidden
=
true
}
}
}
...
...
@@ -124,6 +131,21 @@ class YHMyWorkExperienceCell: UITableViewCell {
return
btn
}()
lazy
var
hiddenBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
isHidden
=
true
btn
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF4F6FA
)
btn
.
layer
.
cornerRadius
=
3.0
btn
.
setImage
(
UIImage
(
named
:
"people_card_hidden"
),
for
:
.
normal
)
btn
.
setTitle
(
"已隐藏"
,
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
.
mainTextColor50
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
10
)
btn
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
-
11
,
bottom
:
0
,
right
:
11
)
btn
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
31
,
bottom
:
0
,
right
:
-
31
)
return
btn
}()
lazy
var
companyView
:
YHExperienceItemView
=
{
let
view
=
YHExperienceItemView
()
view
.
titleLabel
.
text
=
"所在企业"
...
...
@@ -159,6 +181,7 @@ class YHMyWorkExperienceCell: UITableViewCell {
self
.
contentView
.
addSubview
(
self
.
cardView
)
cardView
.
addSubview
(
self
.
titleLabel
)
cardView
.
addSubview
(
self
.
hiddenBtn
)
cardView
.
addSubview
(
self
.
editBtn
)
cardView
.
addSubview
(
self
.
companyView
)
cardView
.
addSubview
(
self
.
professionView
)
...
...
@@ -180,6 +203,14 @@ class YHMyWorkExperienceCell: UITableViewCell {
make
.
centerY
.
equalTo
(
titleLabel
)
}
hiddenBtn
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
50
)
make
.
height
.
equalTo
(
18
)
make
.
centerY
.
equalTo
(
self
.
titleLabel
)
make
.
left
.
equalTo
(
self
.
titleLabel
.
snp
.
right
)
.
offset
(
8
)
make
.
right
.
lessThanOrEqualTo
(
self
.
editBtn
.
snp
.
left
)
.
offset
(
-
15
)
}
companyView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
...
...
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