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
1634f9a9
Commit
1634f9a9
authored
Apr 11, 2024
by
David黄金龙
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除 不使用的代码
parent
e3ece8c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
34 deletions
+21
-34
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+0
-22
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+5
-11
YHHkLifeAndIdItemView.swift
...xy/Classes/Modules/Home(首页)/V/YHHkLifeAndIdItemView.swift
+16
-0
YHHomeKingKongBlockItem.swift
.../Classes/Modules/Home(首页)/V/YHHomeKingKongBlockItem.swift
+0
-1
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
1634f9a9
...
...
@@ -138,35 +138,13 @@ extension AppDelegate {
v3
.
tabBarItem
=
ESTabBarItem
.
init
(
YHBasicContentView
(),
title
:
"我的"
,
image
:
UIImage
(
named
:
"me"
),
selectedImage
:
UIImage
(
named
:
"me_1"
))
tabBarController
.
viewControllers
=
[
v0
,
v1
,
v2
,
v3
]
// tabBarController.viewControllers = [v1,v2] //for test hjl 配合测试同学做自动化测试 Moon 2023.03.12
tabBarController
.
tabBar
.
backgroundColor
=
.
white
window
=
UIWindow
(
frame
:
UIScreen
.
main
.
bounds
)
// window?.rootViewController = tabBarController
window
?
.
rootViewController
=
YHStartPageViewController
()
window
?
.
makeKeyAndVisible
()
}
// private func requestData() {
// self.homeReqVM.getHomeConfig { flag, error in
// if flag == true {
// //1. 调用model 刷新界面
// YHHUD.flash(message: "数据已更新")
// } else {
// //2. 给出 错误提示
// if let error = error {
// YHHUD.flash(message: error.errorMsg)
// }
// }
// }
// }
}
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
1634f9a9
...
...
@@ -38,20 +38,14 @@ extension YHTabBarViewController {
//展示tabbar上的横线
func
handleTabBarLine
()
->
Void
{
let
rect
=
CGRect
.
init
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
0.5
)
let
fillColor
=
UIColor
(
hex
:
0x
888888
)
let
fillColor
=
UIColor
(
hex
:
0x
222222
,
transparency
:
0.2
)
!
let
img
=
UIImage
.
from
(
color
:
fillColor
,
rect
:
rect
)
UIView
.
transition
(
with
:
self
.
tabBar
,
duration
:
0.5
,
options
:
.
transitionCrossDissolve
)
{
if
#available(iOS 13.0, *)
{
let
appearance
=
self
.
tabBar
.
standardAppearance
.
copy
()
appearance
.
backgroundImage
=
UIImage
()
appearance
.
shadowImage
=
img
self
.
tabBar
.
standardAppearance
=
appearance
}
else
{
self
.
tabBar
.
backgroundImage
=
UIImage
()
self
.
tabBar
.
shadowImage
=
img
}
let
appearance
=
self
.
tabBar
.
standardAppearance
.
copy
()
appearance
.
backgroundImage
=
UIImage
()
appearance
.
shadowImage
=
img
self
.
tabBar
.
standardAppearance
=
appearance
}
completion
:
{
Bool
in
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHkLifeAndIdItemView.swift
View file @
1634f9a9
...
...
@@ -95,6 +95,9 @@ private extension YHHkLifeAndIdItemView {
make
.
height
.
equalTo
(
16
)
make
.
right
.
equalTo
(
titleLable
.
snp
.
right
)
}
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
tapView(gestureRecognizer:)
)
)
addGestureRecognizer
(
tap
)
}
...
...
@@ -113,4 +116,17 @@ private extension YHHkLifeAndIdItemView {
printLog
(
"errorr:未处理"
)
}
}
@objc
func
tapView
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
if
itemType
==
.
hkID
{
//香港身份
}
else
if
itemType
==
.
hklife
{
//香港生活
}
else
{
printLog
(
"errorr:未处理"
)
}
}
}
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeKingKongBlockItem.swift
View file @
1634f9a9
...
...
@@ -31,7 +31,6 @@ class YHHomeKingKongBlockItem: UIView {
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
12
)
label
.
lineBreakMode
=
.
byTruncatingMiddle
label
.
textAlignment
=
.
center
// label.minimumScaleFactor = 0.5
return
label
}()
...
...
pete谢兆麟
@pete
mentioned in commit
378d92de
·
Apr 11, 2024
mentioned in commit
378d92de
mentioned in commit 378d92def315f93dd41348a82f292090876d8d48
Toggle commit list
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