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
2ca12173
Commit
2ca12173
authored
Jun 20, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tabbar相关细节修改
parent
916e6faa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
3 deletions
+74
-3
YHCommunityViewController.swift
...s/Modules/Community(社区)/C/YHCommunityViewController.swift
+23
-2
YHPeopleViewController.swift
...sses/Modules/Community(社区)/C/YHPeopleViewController.swift
+29
-1
Contents.json
...ssets/People/people_first_bg_image.imageset/Contents.json
+22
-0
people_first_bg_image@2x.png
...ople_first_bg_image.imageset/people_first_bg_image@2x.png
+0
-0
people_first_bg_image@3x.png
...ople_first_bg_image.imageset/people_first_bg_image@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHCommunityViewController.swift
View file @
2ca12173
...
...
@@ -22,7 +22,7 @@ class YHCommunityViewController: YHBaseViewController {
return
view
}()
lazy
var
segmentedDataSource
:
JXSegmented
Bas
eDataSource
=
{
lazy
var
segmentedDataSource
:
JXSegmented
Titl
eDataSource
=
{
let
dataSource
=
JXSegmentedTitleDataSource
()
dataSource
.
isTitleColorGradientEnabled
=
true
dataSource
.
titles
=
arrItemTitles
...
...
@@ -74,7 +74,7 @@ class YHCommunityViewController: YHBaseViewController {
super
.
viewDidLoad
()
gk_navBarAlpha
=
0
gk_navigationBar
.
isHidden
=
true
self
.
view
.
backgroundColor
=
.
white
self
.
view
.
addSubview
(
bgImgV
)
self
.
bgImgV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
...
...
@@ -143,6 +143,27 @@ class YHCommunityViewController: YHBaseViewController {
extension
YHCommunityViewController
:
JXSegmentedViewDelegate
{
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
(
segmentedView
.
selectedIndex
==
0
)
if
segmentedView
.
selectedIndex
==
0
{
bgImgV
.
isHidden
=
false
friendsBtn
.
isHidden
=
false
segmentedDataSource
.
titleNormalColor
=
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
)
segmentedDataSource
.
titleSelectedColor
=
.
white
let
indicator
=
JXSegmentedIndicatorLineView
()
indicator
.
indicatorWidth
=
16
indicator
.
indicatorColor
=
UIColor
.
white
segmentedView
.
indicators
=
[
indicator
]
}
else
{
bgImgV
.
isHidden
=
true
friendsBtn
.
isHidden
=
true
segmentedDataSource
.
titleNormalColor
=
UIColor
(
hex
:
0x94a3b8
)
segmentedDataSource
.
titleSelectedColor
=
UIColor
.
mainTextColor
let
indicator
=
JXSegmentedIndicatorLineView
()
indicator
.
indicatorWidth
=
16
indicator
.
indicatorColor
=
UIColor
.
brandMainColor
segmentedView
.
indicators
=
[
indicator
]
}
segmentedView
.
dataSource
=
segmentedDataSource
segmentedView
.
reloadData
()
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHPeopleViewController.swift
View file @
2ca12173
...
...
@@ -30,6 +30,21 @@ class YHPeopleViewController: YHBaseViewController {
btn
.
addTarget
(
self
,
action
:
#selector(
didMatchBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
lazy
var
bottomLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textAlignment
=
.
center
label
.
textColor
=
UIColor
.
mainTextColor70
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
label
.
text
=
"授权基础信息,获取更多人脉"
return
label
}()
lazy
var
firstImageView
:
UIImageView
=
{
let
imageView
=
UIImageView
()
imageView
.
image
=
UIImage
(
named
:
"people_first_bg_image"
)
return
imageView
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -47,8 +62,14 @@ class YHPeopleViewController: YHBaseViewController {
self
.
view
.
addSubview
(
wingRightImgV
)
self
.
view
.
addSubview
(
topLabel
)
self
.
view
.
addSubview
(
firstImageView
)
self
.
view
.
addSubview
(
self
.
bottomBtn
)
self
.
view
.
addSubview
(
self
.
bottomLabel
)
firstImageView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
547
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
())
}
self
.
topLabel
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
top
.
equalTo
(
50
)
...
...
@@ -62,6 +83,13 @@ class YHPeopleViewController: YHBaseViewController {
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
48
-
60
)
}
self
.
bottomLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
24
)
make
.
right
.
equalTo
(
-
24
)
make
.
height
.
equalTo
(
18.0
)
make
.
top
.
equalTo
(
self
.
bottomBtn
.
snp
.
bottom
)
.
offset
(
12
)
}
wingLeftImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
19
)
make
.
right
.
equalTo
(
self
.
topLabel
.
snp
.
left
)
...
...
galaxy/galaxy/Res/Assets.xcassets/People/people_first_bg_image.imageset/Contents.json
0 → 100644
View file @
2ca12173
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"people_first_bg_image@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"people_first_bg_image@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/People/people_first_bg_image.imageset/people_first_bg_image@2x.png
0 → 100644
View file @
2ca12173
473 KB
galaxy/galaxy/Res/Assets.xcassets/People/people_first_bg_image.imageset/people_first_bg_image@3x.png
0 → 100644
View file @
2ca12173
919 KB
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