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
b817302d
Commit
b817302d
authored
Jun 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的名片
parent
6bc5484c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
3 deletions
+59
-3
YHMyNameCardViewController.swift
.../Modules/Community(社区)/C/YHMyNameCardViewController.swift
+27
-2
YHMessageBellView.swift
...galaxy/Classes/Modules/Home(首页)/V/YHMessageBellView.swift
+4
-0
YHCustomNavigationBar.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCustomNavigationBar.swift
+6
-1
Contents.json
...cassets/People/people_card_setting.imageset/Contents.json
+22
-0
Vector@2x.png
...cassets/People/people_card_setting.imageset/Vector@2x.png
+0
-0
Vector@3x.png
...cassets/People/people_card_setting.imageset/Vector@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMyNameCardViewController.swift
View file @
b817302d
...
...
@@ -33,17 +33,42 @@ class YHMyNameCardViewController: YHBaseViewController {
return
view
}()
lazy
var
navBar
:
YHCustomNavigationBar
=
{
let
bar
=
YHCustomNavigationBar
.
navBar
()
bar
.
backgroundColor
=
.
clear
bar
.
title
=
"我的名片"
bar
.
titleColor
=
.
white
bar
.
rightButton
.
setImage
(
UIImage
(
named
:
"people_card_setting"
),
for
:
.
normal
)
bar
.
backButton
.
setImage
(
UIImage
(
named
:
"back_icon_for_code_input"
),
for
:
.
normal
)
bar
.
backBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
bar
.
rightBtnClick
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
}
return
bar
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
createUI
()
}
func
createUI
()
{
gk_navTitle
=
"我的名片"
gk_navTitleColor
=
.
white
gk_navigationBar
.
isHidden
=
true
self
.
view
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF8FAFB
)
self
.
view
.
addSubview
(
bgImgView
)
self
.
view
.
addSubview
(
self
.
tableView
)
self
.
view
.
addSubview
(
self
.
navBar
)
self
.
navBar
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_statusBar
())
make
.
height
.
equalTo
(
k_Height_NavContentBar
)
}
self
.
bgImgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
self
.
bgImgView
.
snp
.
width
)
.
multipliedBy
(
834.0
/
750.0
)
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHMessageBellView.swift
View file @
b817302d
...
...
@@ -87,6 +87,10 @@ class YHMessageBellView: UIView {
}
@objc
func
didBellBtnClicked
()
{
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
YHOneKeyLoginManager
.
shared
.
oneKeyLogin
()
return
}
let
vc
=
YHMessageListVC
()
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCustomNavigationBar.swift
View file @
b817302d
...
...
@@ -28,6 +28,11 @@ class YHCustomNavigationBar: UIView {
titleLabel
.
text
=
title
}
}
var
titleColor
:
UIColor
?
{
didSet
{
titleLabel
.
textColor
=
titleColor
}
}
var
backBlock
:(()
->
())?
var
leftSecondBtnClick
:(()
->
())?
var
rightBtnClick
:(()
->
())?
...
...
@@ -54,7 +59,7 @@ class YHCustomNavigationBar: UIView {
return
btn
}()
private
lazy
var
rightButton
:
UIButton
=
{
lazy
var
rightButton
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
20
,
left
:
20
,
bottom
:
20
,
right
:
20
)
btn
.
addTarget
(
self
,
action
:
#selector(
didRightButtonClicked
)
,
for
:
.
touchUpInside
)
...
...
galaxy/galaxy/Res/Assets.xcassets/People/people_card_setting.imageset/Contents.json
0 → 100644
View file @
b817302d
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Vector@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Vector@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/People/people_card_setting.imageset/Vector@2x.png
0 → 100644
View file @
b817302d
626 Bytes
galaxy/galaxy/Res/Assets.xcassets/People/people_card_setting.imageset/Vector@3x.png
0 → 100644
View file @
b817302d
970 Bytes
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