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
38de71cd
Commit
38de71cd
authored
Jun 26, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 社区
parent
032bc955
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
YHCommunityViewController.swift
...s/Modules/Community(社区)/C/YHCommunityViewController.swift
+2
-3
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHCommunityViewController.swift
View file @
38de71cd
...
@@ -163,7 +163,7 @@ class YHCommunityViewController: YHBaseViewController {
...
@@ -163,7 +163,7 @@ class YHCommunityViewController: YHBaseViewController {
make
.
top
.
equalTo
(
12
+
k_Height_safeAreaInsetsTop
())
make
.
top
.
equalTo
(
12
+
k_Height_safeAreaInsetsTop
())
}
}
self
.
view
.
addSubview
(
self
.
unreadLabel
)
self
.
friendsBtn
.
addSubview
(
self
.
unreadLabel
)
self
.
unreadLabel
.
snp
.
makeConstraints
{
make
in
self
.
unreadLabel
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
unreadHeight
)
make
.
width
.
height
.
equalTo
(
unreadHeight
)
make
.
left
.
equalTo
(
self
.
friendsBtn
.
snp
.
right
)
.
offset
(
-
8
)
make
.
left
.
equalTo
(
self
.
friendsBtn
.
snp
.
right
)
.
offset
(
-
8
)
...
@@ -197,6 +197,7 @@ class YHCommunityViewController: YHBaseViewController {
...
@@ -197,6 +197,7 @@ class YHCommunityViewController: YHBaseViewController {
self
.
friendViewModel
.
getMyFriendList
{
success
,
error
in
self
.
friendViewModel
.
getMyFriendList
{
success
,
error
in
let
unreadCount
=
self
.
friendViewModel
.
friendListModel
.
applyFriends
.
count
let
unreadCount
=
self
.
friendViewModel
.
friendListModel
.
applyFriends
.
count
self
.
unreadCount
=
unreadCount
self
.
unreadCount
=
unreadCount
self
.
friendsBtn
.
isHidden
=
self
.
segmentedView
.
selectedIndex
!=
0
}
}
}
else
{
}
else
{
self
.
unreadCount
=
0
self
.
unreadCount
=
0
...
@@ -210,7 +211,6 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
...
@@ -210,7 +211,6 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
if
segmentedView
.
selectedIndex
==
0
{
if
segmentedView
.
selectedIndex
==
0
{
bgImgV
.
isHidden
=
false
bgImgV
.
isHidden
=
false
friendsBtn
.
isHidden
=
false
friendsBtn
.
isHidden
=
false
self
.
updateUnreadCount
(
self
.
unreadCount
)
segmentedDataSource
.
titleNormalColor
=
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
)
segmentedDataSource
.
titleNormalColor
=
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
)
segmentedDataSource
.
titleSelectedColor
=
.
white
segmentedDataSource
.
titleSelectedColor
=
.
white
let
indicator
=
JXSegmentedIndicatorLineView
()
let
indicator
=
JXSegmentedIndicatorLineView
()
...
@@ -220,7 +220,6 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
...
@@ -220,7 +220,6 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
}
else
{
}
else
{
bgImgV
.
isHidden
=
true
bgImgV
.
isHidden
=
true
friendsBtn
.
isHidden
=
true
friendsBtn
.
isHidden
=
true
self
.
updateUnreadCount
(
0
)
segmentedDataSource
.
titleNormalColor
=
UIColor
(
hex
:
0x94a3b8
)
segmentedDataSource
.
titleNormalColor
=
UIColor
(
hex
:
0x94a3b8
)
segmentedDataSource
.
titleSelectedColor
=
UIColor
.
mainTextColor
segmentedDataSource
.
titleSelectedColor
=
UIColor
.
mainTextColor
let
indicator
=
JXSegmentedIndicatorLineView
()
let
indicator
=
JXSegmentedIndicatorLineView
()
...
...
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