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
0866b758
Commit
0866b758
authored
Apr 16, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转解决
parent
f695370a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
23 deletions
+6
-23
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+1
-0
YHHkLifeAndIdItemView.swift
...xy/Classes/Modules/Home(首页)/V/YHHkLifeAndIdItemView.swift
+2
-23
YHServiceViewController.swift
.../IntelligentService(服务中心)/C/YHServiceViewController.swift
+3
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
0866b758
...
@@ -30,6 +30,7 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -30,6 +30,7 @@ class YHHomePageViewController: YHBaseViewController {
collectinoView
.
dataSource
=
self
collectinoView
.
dataSource
=
self
collectinoView
.
translatesAutoresizingMaskIntoConstraints
=
false
collectinoView
.
translatesAutoresizingMaskIntoConstraints
=
false
collectinoView
.
alwaysBounceVertical
=
true
collectinoView
.
alwaysBounceVertical
=
true
collectinoView
.
isPagingEnabled
=
false
return
collectinoView
return
collectinoView
}()
}()
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHkLifeAndIdItemView.swift
View file @
0866b758
...
@@ -122,34 +122,13 @@ private extension YHHkLifeAndIdItemView {
...
@@ -122,34 +122,13 @@ private extension YHHkLifeAndIdItemView {
if
itemType
==
.
hkID
{
if
itemType
==
.
hkID
{
//香港身份
//香港身份
let
vc
=
YHServiceViewController
()
let
vc
=
YHServiceViewController
()
vc
.
jumpToItemIndex
(
itemIndex
:
0
)
vc
.
defaltIndex
=
0
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
// if let vc = UIApplication.shared.keyWindow?.rootViewController as? YHTabBarViewController {
// vc.selectedIndex = 1
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
// if let vcs = vc.viewControllers,vcs.count > 1 {
// if let nvc = vcs[1] as? YHNavigationController,let vvc = nvc.topViewController as? YHServiceViewController {
// vvc.jumpToItemIndex(itemIndex: 0)
// }
// }
// }
// }
}
else
if
itemType
==
.
hklife
{
}
else
if
itemType
==
.
hklife
{
//香港生活
//香港生活
let
vc
=
YHServiceViewController
()
let
vc
=
YHServiceViewController
()
vc
.
jumpToItemIndex
(
itemIndex
:
1
)
vc
.
defaltIndex
=
1
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
// if let vc = UIApplication.shared.keyWindow?.rootViewController as? YHTabBarViewController {
// vc.selectedIndex = 1
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
// if let vcs = vc.viewControllers,vcs.count > 1 {
// if let nvc = vcs[1] as? YHNavigationController,let vvc = nvc.topViewController as? YHServiceViewController {
// vvc.jumpToItemIndex(itemIndex: 1)
// }
// }
// }
// }
}
else
{
}
else
{
printLog
(
"errorr:未处理"
)
printLog
(
"errorr:未处理"
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceViewController.swift
View file @
0866b758
...
@@ -18,6 +18,7 @@ class YHServiceViewController: YHBaseViewController {
...
@@ -18,6 +18,7 @@ class YHServiceViewController: YHBaseViewController {
}
}
}
}
var
defaltIndex
:
Int
=
0
let
arrItemTitles
=
[
"香港身份"
,
"香港生活"
]
let
arrItemTitles
=
[
"香港身份"
,
"香港生活"
]
...
@@ -108,6 +109,8 @@ class YHServiceViewController: YHBaseViewController {
...
@@ -108,6 +109,8 @@ class YHServiceViewController: YHBaseViewController {
make
.
height
.
equalTo
(
k_Height_NavContentBar
)
make
.
height
.
equalTo
(
k_Height_NavContentBar
)
make
.
width
.
equalTo
(
47
)
make
.
width
.
equalTo
(
47
)
}
}
segmentedView
.
defaultSelectedIndex
=
defaltIndex
}
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
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