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
aff3a438
Commit
aff3a438
authored
Jul 11, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动行程单 返回
parent
38199d25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
1 deletion
+79
-1
YHActivityTravelViewController.swift
...y(社区)/Activity(活动)/C/YHActivityTravelViewController.swift
+79
-0
YHApplyActivityResultViewController.swift
.../Activity(活动)/C/YHApplyActivityResultViewController.swift
+0
-1
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/C/YHActivityTravelViewController.swift
View file @
aff3a438
...
@@ -57,9 +57,88 @@ class YHActivityTravelViewController: YHBaseViewController {
...
@@ -57,9 +57,88 @@ class YHActivityTravelViewController: YHBaseViewController {
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
loadData
()
loadData
()
}
}
override
func
backItemClick
(
_
sender
:
Any
)
{
// if viewModel.didChange {
// YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
// self.navigationController?.popViewController()
// } callBack: {
// }
// } else {
// self.navigationController?.popViewController()
// }
gotoActivityVC
()
}
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
// if viewModel.didChange {
// YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
// self.navigationController?.popViewController()
// } callBack: {
// }
// return false
// }
gotoActivityVC
()
return
false
}
}
}
extension
YHActivityTravelViewController
{
extension
YHActivityTravelViewController
{
func
gotoActivityVC
()
{
if
let
vc
=
UIApplication
.
shared
.
keyWindow
?
.
rootViewController
as?
YHTabBarViewController
{
if
vc
.
selectedIndex
==
3
{
if
let
nav
=
self
.
navigationController
{
let
rrr
=
nav
.
viewControllers
.
contains
{
$0
.
isKind
(
of
:
YHActivityListViewController
.
self
)
}
if
rrr
{
var
targetVc
:
UIViewController
?
for
(
_
,
value
)
in
nav
.
viewControllers
.
enumerated
()
{
if
value
.
isKind
(
of
:
YHActivityListViewController
.
self
)
{
targetVc
=
value
break
}
}
if
let
vc
=
targetVc
{
navigationController
?
.
popToViewController
(
vc
,
animated
:
true
)
}
return
}
}
}
else
if
vc
.
selectedIndex
==
2
{
if
let
nav
=
self
.
navigationController
{
let
rrr
=
nav
.
viewControllers
.
contains
{
$0
.
isKind
(
of
:
YHCommunityViewController
.
self
)
}
if
rrr
{
var
targetVc
:
UIViewController
?
for
(
_
,
value
)
in
nav
.
viewControllers
.
enumerated
()
{
if
value
.
isKind
(
of
:
YHCommunityViewController
.
self
)
{
targetVc
=
value
break
}
}
if
let
vc
=
targetVc
{
navigationController
?
.
popToViewController
(
vc
,
animated
:
true
)
}
return
}
}
}
}
}
func
setupUI
()
{
func
setupUI
()
{
gk_navigationBar
.
isHidden
=
false
gk_navigationBar
.
isHidden
=
false
gk_navigationBar
.
backgroundColor
=
.
clear
gk_navigationBar
.
backgroundColor
=
.
clear
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/C/YHApplyActivityResultViewController.swift
View file @
aff3a438
...
@@ -76,7 +76,6 @@ extension YHApplyActivityResultViewController {
...
@@ -76,7 +76,6 @@ extension YHApplyActivityResultViewController {
gk_navigationBar
.
backgroundColor
=
.
clear
gk_navigationBar
.
backgroundColor
=
.
clear
gk_navTitle
=
"报名结果"
gk_navTitle
=
"报名结果"
// view.backgroundColor = UIColor.pageBkgColor
view
.
backgroundColor
=
UIColor
.
white
view
.
backgroundColor
=
UIColor
.
white
view
.
addSubview
(
statusImageV
)
view
.
addSubview
(
statusImageV
)
...
...
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