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
316aad51
Commit
316aad51
authored
Jun 27, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的名片
parent
a4aa219d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
YHMyNameCardAvatarInfoCell.swift
.../Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
+6
-4
YHNameCardInfoView.swift
.../Classes/Modules/Community(社区)/V/YHNameCardInfoView.swift
+20
-22
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
View file @
316aad51
...
@@ -106,6 +106,7 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
...
@@ -106,6 +106,7 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
let
view
=
UIView
()
let
view
=
UIView
()
view
.
layer
.
cornerRadius
=
3.0
view
.
layer
.
cornerRadius
=
3.0
view
.
backgroundColor
=
.
white
view
.
backgroundColor
=
.
white
view
.
clipsToBounds
=
true
return
view
return
view
}()
}()
...
@@ -189,12 +190,12 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
...
@@ -189,12 +190,12 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
self
.
backgroundColor
=
.
clear
self
.
backgroundColor
=
.
clear
self
.
contentView
.
backgroundColor
=
.
clear
self
.
contentView
.
backgroundColor
=
.
clear
// self.contentView.addSubview(self.bgImgV)
self
.
contentView
.
addSubview
(
self
.
cardView
)
self
.
contentView
.
addSubview
(
self
.
cardView
)
self
.
contentView
.
addSubview
(
self
.
headBgImgV
)
self
.
contentView
.
addSubview
(
self
.
headBgImgV
)
self
.
contentView
.
addSubview
(
self
.
headImgV
)
self
.
contentView
.
addSubview
(
self
.
headImgV
)
self
.
contentView
.
addSubview
(
self
.
signImgV
)
self
.
contentView
.
addSubview
(
self
.
signImgV
)
cardView
.
addSubview
(
self
.
bgImgV
)
cardView
.
addSubview
(
self
.
nameTextView
)
cardView
.
addSubview
(
self
.
nameTextView
)
cardView
.
addSubview
(
self
.
professionalLabel
)
cardView
.
addSubview
(
self
.
professionalLabel
)
cardView
.
addSubview
(
self
.
detailLabel
)
cardView
.
addSubview
(
self
.
detailLabel
)
...
@@ -205,9 +206,10 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
...
@@ -205,9 +206,10 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
make
.
top
.
equalTo
(
headWidth
/
2.0
)
make
.
top
.
equalTo
(
headWidth
/
2.0
)
}
}
// self.bgImgV.snp.makeConstraints { make in
self
.
bgImgV
.
snp
.
makeConstraints
{
make
in
// make.edges.equalTo(self.cardView)
make
.
left
.
right
.
right
.
equalToSuperview
()
// }
make
.
height
.
equalTo
(
160
)
}
self
.
editBtn
.
snp
.
makeConstraints
{
make
in
self
.
editBtn
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
20
)
make
.
width
.
height
.
equalTo
(
20
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHNameCardInfoView.swift
View file @
316aad51
...
@@ -23,32 +23,32 @@ class YHNameCardInfoView: DragCardView {
...
@@ -23,32 +23,32 @@ class YHNameCardInfoView: DragCardView {
self
.
headImgV
.
image
=
UIImage
(
named
:
"people_head_default"
)
self
.
headImgV
.
image
=
UIImage
(
named
:
"people_head_default"
)
}
}
self
.
nameLabel
.
text
=
self
.
userModel
.
username
self
.
nameLabel
.
text
=
self
.
userModel
.
username
var
result
=
""
var
resultArr
:[
String
]
=
[]
var
isFirst
=
true
if
!
self
.
userModel
.
address
.
city
.
isEmpty
{
// 城市文字
if
isFirst
{
var
cityStr
=
self
.
userModel
.
address
.
city
result
+=
self
.
userModel
.
address
.
city
if
cityStr
.
contains
(
"区"
)
{
isFirst
=
false
cityStr
=
self
.
userModel
.
address
.
province
}
}
if
!
cityStr
.
isEmpty
{
resultArr
.
append
(
cityStr
)
}
}
// 职位
if
!
self
.
userModel
.
position
.
isEmpty
{
if
!
self
.
userModel
.
position
.
isEmpty
{
if
isFirst
{
resultArr
.
append
(
self
.
userModel
.
position
)
result
+=
self
.
userModel
.
position
isFirst
=
false
}
else
{
result
+=
" | "
+
self
.
userModel
.
position
}
}
}
// 行业
if
!
self
.
userModel
.
industry
.
isEmpty
{
if
!
self
.
userModel
.
industry
.
isEmpty
{
if
isFirst
{
resultArr
.
append
(
self
.
userModel
.
industry
)
result
+=
self
.
userModel
.
industry
}
isFirst
=
false
var
resultStr
=
""
}
else
{
if
resultArr
.
count
>
0
{
result
+=
" | "
+
self
.
userModel
.
industry
resultStr
=
resultArr
.
joined
(
separator
:
" | "
)
}
}
}
self
.
professionalLabel
.
text
=
result
self
.
professionalLabel
.
text
=
resultStr
let
detail
=
self
.
userModel
.
signature
let
detail
=
self
.
userModel
.
signature
self
.
detailLabel
.
text
=
detail
self
.
detailLabel
.
text
=
detail
self
.
grayContentView
.
isHidden
=
detail
.
isEmpty
self
.
grayContentView
.
isHidden
=
detail
.
isEmpty
...
@@ -98,8 +98,6 @@ class YHNameCardInfoView: DragCardView {
...
@@ -98,8 +98,6 @@ class YHNameCardInfoView: DragCardView {
return
view
return
view
}()
}()
lazy
var
signImgV
:
UIImageView
=
{
lazy
var
signImgV
:
UIImageView
=
{
let
view
=
UIImageView
()
let
view
=
UIImageView
()
view
.
image
=
UIImage
(
named
:
"people_sign"
)
view
.
image
=
UIImage
(
named
:
"people_sign"
)
...
...
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