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
efd95b0e
Commit
efd95b0e
authored
Jun 27, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的名片
parent
01a550b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
YHMyNameCardAvatarInfoCell.swift
.../Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
+12
-3
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
View file @
efd95b0e
...
@@ -29,7 +29,7 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
...
@@ -29,7 +29,7 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
}
}
var
cityStr
=
self
.
userModel
.
address
.
city
var
cityStr
=
self
.
userModel
.
address
.
city
var
specialArea
=
[
"北京市"
,
"上海市"
,
"天津市"
,
"重庆市"
,
"香港"
,
"澳门"
,
"台湾"
]
let
specialArea
=
[
"北京市"
,
"上海市"
,
"天津市"
,
"重庆市"
,
"香港"
,
"澳门"
,
"台湾"
]
for
provinceName
in
specialArea
{
for
provinceName
in
specialArea
{
if
self
.
userModel
.
address
.
province
.
contains
(
provinceName
)
{
if
self
.
userModel
.
address
.
province
.
contains
(
provinceName
)
{
cityStr
=
self
.
userModel
.
address
.
province
cityStr
=
self
.
userModel
.
address
.
province
...
@@ -56,9 +56,18 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
...
@@ -56,9 +56,18 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
self
.
nameTextView
.
attributed
.
text
=
name
self
.
nameTextView
.
attributed
.
text
=
name
var
text1
=
""
var
text1
=
""
var
text1Arr
:[
String
]
=
[]
if
!
self
.
userModel
.
position
.
isEmpty
{
if
!
self
.
userModel
.
position
.
isEmpty
{
text1
=
self
.
userModel
.
position
text1Arr
.
append
(
self
.
userModel
.
position
)
}
else
{
}
if
!
self
.
userModel
.
industry
.
isEmpty
{
text1Arr
.
append
(
self
.
userModel
.
industry
)
}
if
text1Arr
.
count
>
0
{
text1
=
text1Arr
.
joined
(
separator
:
" | "
)
}
if
text1
.
isEmpty
{
if
self
.
userModel
.
isCurrentUser
{
// 当前用户默认文案
if
self
.
userModel
.
isCurrentUser
{
// 当前用户默认文案
self
.
professionalLabel
.
textColor
=
UIColor
.
mainTextColor30
self
.
professionalLabel
.
textColor
=
UIColor
.
mainTextColor30
text1
=
"填写职位 | 填写所属行业"
text1
=
"填写职位 | 填写所属行业"
...
...
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