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
6d84cc71
Commit
6d84cc71
authored
Jun 25, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 人脉
parent
d83d2bab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
YHMyGoodFriendsVC.swift
...y/Classes/Modules/Community(社区)/C/YHMyGoodFriendsVC.swift
+19
-3
YHAddFriendCardCell.swift
...Classes/Modules/Community(社区)/V/YHAddFriendCardCell.swift
+6
-3
YHMyInterestTopicCell.swift
...asses/Modules/Community(社区)/V/YHMyInterestTopicCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMyGoodFriendsVC.swift
View file @
6d84cc71
...
@@ -107,9 +107,25 @@ extension YHMyGoodFriendsVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -107,9 +107,25 @@ extension YHMyGoodFriendsVC: UITableViewDelegate, UITableViewDataSource {
cell
.
acceptBlock
=
{
cell
.
acceptBlock
=
{
[
weak
self
]
accept
in
[
weak
self
]
accept
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
receiveFriendApply
()
if
self
.
friendRequestArr
.
count
>
0
{
self
.
friendRequestArr
.
removeFirst
()
let
user
=
self
.
friendRequestArr
[
0
]
self
.
tableView
.
reloadData
()
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
receiveFriendApply
(
userId
:
user
.
yhId
,
isReceive
:
accept
)
{
[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
if
success
{
self
.
friendRequestArr
.
removeFirst
()
self
.
tableView
.
reloadData
()
}
else
{
var
msg
=
"处理失败"
if
let
errMsg
=
error
?
.
errorMsg
,
!
errMsg
.
isEmpty
{
msg
=
errMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
}
}
}
return
cell
return
cell
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHAddFriendCardCell.swift
View file @
6d84cc71
...
@@ -48,6 +48,11 @@ class YHAddFriendCardCell: UITableViewCell {
...
@@ -48,6 +48,11 @@ class YHAddFriendCardCell: UITableViewCell {
self
.
professionalLabel
.
text
=
self
.
friendModel
.
position
self
.
professionalLabel
.
text
=
self
.
friendModel
.
position
self
.
msgLabel
.
text
=
self
.
friendModel
.
verifyInfo
self
.
msgLabel
.
text
=
self
.
friendModel
.
verifyInfo
self
.
signImgV
.
isHidden
=
!
self
.
friendModel
.
isSign
self
.
signImgV
.
isHidden
=
!
self
.
friendModel
.
isSign
self
.
scrollView
.
snp
.
updateConstraints
{
make
in
let
msgHeight
=
self
.
getHeight
(
text
:
self
.
friendModel
.
verifyInfo
,
font
:
self
.
msgLabel
.
font
!
,
width
:
KScreenWidth
-
40.0
*
2
)
make
.
height
.
equalTo
(
msgHeight
>=
55.0
?
52
+
12
:
msgHeight
+
12
)
}
}
}
}
}
...
@@ -229,9 +234,7 @@ class YHAddFriendCardCell: UITableViewCell {
...
@@ -229,9 +234,7 @@ class YHAddFriendCardCell: UITableViewCell {
make
.
right
.
equalTo
(
-
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
self
.
headImgV
.
snp
.
bottom
)
.
offset
(
16
)
make
.
top
.
equalTo
(
self
.
headImgV
.
snp
.
bottom
)
.
offset
(
16
)
make
.
bottom
.
equalTo
(
self
.
ignoreBtn
.
snp
.
top
)
.
offset
(
-
16
)
make
.
bottom
.
equalTo
(
self
.
ignoreBtn
.
snp
.
top
)
.
offset
(
-
16
)
make
.
height
.
equalTo
(
62
)
let
msgHeight
=
self
.
getHeight
(
text
:
self
.
msgLabel
.
text
!
,
font
:
self
.
msgLabel
.
font
!
,
width
:
KScreenWidth
-
40.0
*
2
)
make
.
height
.
equalTo
(
msgHeight
>=
55.0
?
52
+
12
:
msgHeight
+
12
)
}
}
self
.
scrollContentView
.
snp
.
makeConstraints
{
make
in
self
.
scrollContentView
.
snp
.
makeConstraints
{
make
in
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyInterestTopicCell.swift
View file @
6d84cc71
...
@@ -59,7 +59,7 @@ class YHMyInterestTopicCell: UITableViewCell {
...
@@ -59,7 +59,7 @@ class YHMyInterestTopicCell: UITableViewCell {
var
isShowList
=
true
var
isShowList
=
true
if
self
.
userModel
.
isCurrentUser
{
if
self
.
userModel
.
isCurrentUser
{
if
self
.
topicArr
.
count
<=
0
{
if
self
.
userModel
.
topics
.
count
<=
0
{
isShowList
=
false
isShowList
=
false
}
}
}
}
...
...
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