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
1c7b6356
Commit
1c7b6356
authored
Jun 26, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 人脉
parent
20802338
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
YHAddFriendCardCell.swift
...Classes/Modules/Community(社区)/V/YHAddFriendCardCell.swift
+6
-5
YHFriendRequestView.swift
...Classes/Modules/Community(社区)/V/YHFriendRequestView.swift
+4
-4
YHMyFriendsCell.swift
...axy/Classes/Modules/Community(社区)/V/YHMyFriendsCell.swift
+1
-1
YHMyNameCardAvatarInfoCell.swift
.../Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
+3
-3
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHAddFriendCardCell.swift
View file @
1c7b6356
...
@@ -71,8 +71,9 @@ class YHAddFriendCardCell: UITableViewCell {
...
@@ -71,8 +71,9 @@ class YHAddFriendCardCell: UITableViewCell {
}()
}()
lazy
var
headImgV
:
UIImageView
=
{
lazy
var
headImgV
:
UIImageView
=
{
let
view
=
UIImageView
()
let
view
=
UIImageView
(
image
:
UIImage
(
named
:
"people_head_default"
)
)
view
.
layer
.
cornerRadius
=
23.0
view
.
layer
.
cornerRadius
=
23.0
view
.
clipsToBounds
=
true
return
view
return
view
}()
}()
...
@@ -165,11 +166,11 @@ class YHAddFriendCardCell: UITableViewCell {
...
@@ -165,11 +166,11 @@ class YHAddFriendCardCell: UITableViewCell {
}
}
@objc
func
didIgnoreBtnClicked
()
{
@objc
func
didIgnoreBtnClicked
()
{
self
.
acceptBlock
?(
tru
e
)
self
.
acceptBlock
?(
fals
e
)
}
}
@objc
func
didAcceptBtnClicked
()
{
@objc
func
didAcceptBtnClicked
()
{
self
.
acceptBlock
?(
fals
e
)
self
.
acceptBlock
?(
tru
e
)
}
}
func
createUI
()
{
func
createUI
()
{
...
@@ -265,7 +266,7 @@ class YHAddFriendCardCell: UITableViewCell {
...
@@ -265,7 +266,7 @@ class YHAddFriendCardCell: UITableViewCell {
self
.
secondCardView
.
snp
.
makeConstraints
{
make
in
self
.
secondCardView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
self
.
cardView
)
.
offset
(
5
)
make
.
left
.
equalTo
(
self
.
cardView
)
.
offset
(
5
)
make
.
right
.
equalTo
(
self
.
cardView
)
.
offset
(
-
5
)
make
.
right
.
equalTo
(
self
.
cardView
)
.
offset
(
-
5
)
make
.
height
.
equalTo
(
50
)
make
.
height
.
equalTo
(
6
)
make
.
bottom
.
equalTo
(
self
.
thirdCardView
)
.
offset
(
-
6
)
make
.
bottom
.
equalTo
(
self
.
thirdCardView
)
.
offset
(
-
6
)
}
}
...
@@ -273,7 +274,7 @@ class YHAddFriendCardCell: UITableViewCell {
...
@@ -273,7 +274,7 @@ class YHAddFriendCardCell: UITableViewCell {
make
.
left
.
equalTo
(
self
.
cardView
)
.
offset
(
10
)
make
.
left
.
equalTo
(
self
.
cardView
)
.
offset
(
10
)
make
.
right
.
equalTo
(
self
.
cardView
)
.
offset
(
-
10
)
make
.
right
.
equalTo
(
self
.
cardView
)
.
offset
(
-
10
)
make
.
bottom
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
50
)
make
.
height
.
equalTo
(
6
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHFriendRequestView.swift
View file @
1c7b6356
...
@@ -43,7 +43,7 @@ class YHFriendRequestView: UIView {
...
@@ -43,7 +43,7 @@ class YHFriendRequestView: UIView {
}()
}()
lazy
var
headImgV
:
UIImageView
=
{
lazy
var
headImgV
:
UIImageView
=
{
let
view
=
UIImageView
()
let
view
=
UIImageView
(
image
:
UIImage
(
named
:
"people_head_default"
)
)
view
.
layer
.
cornerRadius
=
23.0
view
.
layer
.
cornerRadius
=
23.0
view
.
clipsToBounds
=
true
view
.
clipsToBounds
=
true
return
view
return
view
...
@@ -159,7 +159,7 @@ class YHFriendRequestView: UIView {
...
@@ -159,7 +159,7 @@ class YHFriendRequestView: UIView {
@objc
func
didSendBtnClicked
()
{
@objc
func
didSendBtnClicked
()
{
if
isEmptyString
(
self
.
textView
.
text
)
{
if
isEmptyString
(
self
.
textView
.
text
)
{
YHHUD
.
flash
(
message
:
"请输入
好友
申请信息"
)
YHHUD
.
flash
(
message
:
"请输入
发送
申请信息"
)
return
return
}
}
self
.
sendBlock
?(
self
.
textView
.
text
)
self
.
sendBlock
?(
self
.
textView
.
text
)
...
@@ -251,7 +251,7 @@ class YHFriendRequestView: UIView {
...
@@ -251,7 +251,7 @@ class YHFriendRequestView: UIView {
self
.
placeHolderLabel
.
snp
.
makeConstraints
{
make
in
self
.
placeHolderLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
self
.
textView
.
snp
.
top
)
.
offset
(
7
)
make
.
top
.
equalTo
(
self
.
textView
.
snp
.
top
)
.
offset
(
7
)
make
.
left
.
equalTo
(
self
.
textView
.
snp
.
left
)
.
offset
(
4
)
make
.
left
.
equalTo
(
self
.
textView
.
snp
.
left
)
.
offset
(
7
)
make
.
right
.
equalTo
(
self
.
textView
)
make
.
right
.
equalTo
(
self
.
textView
)
}
}
...
@@ -285,7 +285,7 @@ class YHFriendRequestView: UIView {
...
@@ -285,7 +285,7 @@ class YHFriendRequestView: UIView {
guard
let
keyboardFrame
=
(
notification
.
userInfo
?[
UIResponder
.
keyboardFrameEndUserInfoKey
]
as
AnyObject
)
.
cgRectValue
else
{
return
}
guard
let
keyboardFrame
=
(
notification
.
userInfo
?[
UIResponder
.
keyboardFrameEndUserInfoKey
]
as
AnyObject
)
.
cgRectValue
else
{
return
}
let
isKeyboardShow
=
notification
.
name
==
UIResponder
.
keyboardWillShowNotification
let
isKeyboardShow
=
notification
.
name
==
UIResponder
.
keyboardWillShowNotification
let
bottomMargin
=
(
isKeyboardShow
?
keyboardFrame
.
height
+
1
0
:
(
KScreenHeight
-
YHFriendRequestView
.
cardHeight
)
/
2.0
)
let
bottomMargin
=
(
isKeyboardShow
?
keyboardFrame
.
height
+
2
0
:
(
KScreenHeight
-
YHFriendRequestView
.
cardHeight
)
/
2.0
)
self
.
cardView
.
snp
.
updateConstraints
{
make
in
self
.
cardView
.
snp
.
updateConstraints
{
make
in
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
bottomMargin
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
bottomMargin
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyFriendsCell.swift
View file @
1c7b6356
...
@@ -25,7 +25,7 @@ class YHMyFriendsCell: UITableViewCell {
...
@@ -25,7 +25,7 @@ class YHMyFriendsCell: UITableViewCell {
}
}
lazy
var
headImgV
:
UIImageView
=
{
lazy
var
headImgV
:
UIImageView
=
{
let
view
=
UIImageView
()
let
view
=
UIImageView
(
image
:
UIImage
(
named
:
"people_head_default"
)
)
view
.
layer
.
cornerRadius
=
23.0
view
.
layer
.
cornerRadius
=
23.0
view
.
clipsToBounds
=
true
view
.
clipsToBounds
=
true
return
view
return
view
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHMyNameCardAvatarInfoCell.swift
View file @
1c7b6356
...
@@ -208,16 +208,16 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
...
@@ -208,16 +208,16 @@ class YHMyNameCardAvatarInfoCell: UITableViewCell {
}
}
self
.
nameTextView
.
snp
.
makeConstraints
{
make
in
self
.
nameTextView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
1
6
)
make
.
left
.
equalTo
(
1
0
)
make
.
right
.
equalTo
(
-
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
headWidth
/
2.0
+
10.0
)
make
.
top
.
equalTo
(
headWidth
/
2.0
)
}
}
self
.
professionalLabel
.
snp
.
makeConstraints
{
make
in
self
.
professionalLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
right
.
equalTo
(
-
16
)
// make.height.equalTo(20)
// make.height.equalTo(20)
make
.
top
.
equalTo
(
self
.
nameTextView
.
snp
.
bottom
)
.
offset
(
8
)
make
.
top
.
equalTo
(
self
.
nameTextView
.
snp
.
bottom
)
.
offset
(
0
)
}
}
self
.
detailLabel
.
snp
.
makeConstraints
{
make
in
self
.
detailLabel
.
snp
.
makeConstraints
{
make
in
...
...
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