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
1ab75951
Commit
1ab75951
authored
Jan 03, 2025
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
和 H5 联调 30
parent
7dd6e839
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
11 deletions
+38
-11
YHServiceCenterViewController.swift
...中心)/OrderList(服务订单)/C/YHServiceCenterViewController.swift
+23
-10
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+11
-1
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+4
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/OrderList(服务订单)/C/YHServiceCenterViewController.swift
View file @
1ab75951
...
@@ -116,6 +116,28 @@ class YHServiceCenterViewController: YHBaseViewController {
...
@@ -116,6 +116,28 @@ class YHServiceCenterViewController: YHBaseViewController {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
leaveTopOp
)
,
name
:
Notification
.
Name
(
rawValue
:
"leaveTop0"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
leaveTopOp
)
,
name
:
Notification
.
Name
(
rawValue
:
"leaveTop0"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
beginDragging
)
,
name
:
Notification
.
Name
(
rawValue
:
"scrollViewWillBeginDragging0"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
beginDragging
)
,
name
:
Notification
.
Name
(
rawValue
:
"scrollViewWillBeginDragging0"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
endDragging
)
,
name
:
Notification
.
Name
(
rawValue
:
"scrollViewDidEndDragging0"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
endDragging
)
,
name
:
Notification
.
Name
(
rawValue
:
"scrollViewDidEndDragging0"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didJumpToServiceProgess
)
,
name
:
YhConstant
.
YhNotification
.
didJumpToServiceProgressNotification
,
object
:
nil
)
}
private
func
goToServiceProgressVC
()
{
let
vc
=
YHOrderDetailViewController
()
vc
.
model
=
oldModel
vc
.
backDate
=
{
[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
self
.
model
=
model
self
.
state
=
0
self
.
headIndex
=
0
self
.
isCanSelectStep
=
false
}
self
.
navigationController
?
.
pushViewController
(
vc
)
}
@objc
func
didJumpToServiceProgess
()
{
/// 服务进度
goToServiceProgressVC
()
}
}
@objc
func
logoutSuccess
()
{
@objc
func
logoutSuccess
()
{
...
@@ -245,16 +267,7 @@ extension YHServiceCenterViewController {
...
@@ -245,16 +267,7 @@ extension YHServiceCenterViewController {
YHServiceMoreAlertView
.
show
(
flag
)
{[
weak
self
]
index
in
YHServiceMoreAlertView
.
show
(
flag
)
{[
weak
self
]
index
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
index
==
1
{
if
index
==
1
{
let
vc
=
YHOrderDetailViewController
()
self
.
goToServiceProgressVC
()
vc
.
model
=
oldModel
vc
.
backDate
=
{
[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
self
.
model
=
model
self
.
state
=
0
self
.
headIndex
=
0
self
.
isCanSelectStep
=
false
}
self
.
navigationController
?
.
pushViewController
(
vc
)
}
else
{
}
else
{
if
self
.
state
==
1
{
if
self
.
state
==
1
{
let
view
=
YHServiceOrderGuideTipsView
.
sheetView
(
serviceCenterMainReqVM
.
hasTTPS
,
model
.
product_type
)
let
view
=
YHServiceOrderGuideTipsView
.
sheetView
(
serviceCenterMainReqVM
.
hasTTPS
,
model
.
product_type
)
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
1ab75951
...
@@ -19,8 +19,18 @@ class YHJsApi: NSObject {
...
@@ -19,8 +19,18 @@ class YHJsApi: NSObject {
extension
YHJsApi
{
extension
YHJsApi
{
// 返回tab服务页
// 30、跳转到APP底部的服务Tab-再推出服务进度页面
@objc
func
goServiceProgressPage
(
_
tag
:
Any
)
{
DispatchQueue
.
main
.
async
{
UIViewController
.
current
?
.
navigationController
?
.
popToRootViewController
(
animated
:
false
)
goTabBarBy
(
tabType
:
.
service
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didJumpToServiceProgressNotification
,
object
:
nil
)
}
}
// 29、返回tab服务页
@objc
func
goAppTab
(
_
tag
:
Any
)
{
@objc
func
goAppTab
(
_
tag
:
Any
)
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
if
let
tag
=
tag
as?
String
{
if
let
tag
=
tag
as?
String
{
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
1ab75951
...
@@ -406,5 +406,9 @@ extension YhConstant {
...
@@ -406,5 +406,9 @@ extension YhConstant {
//关闭直播间弹出的分享界面
//关闭直播间弹出的分享界面
public
static
let
closeShareUIInLiveRoomNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.app.close.share.ui"
)
public
static
let
closeShareUIInLiveRoomNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.app.close.share.ui"
)
// 跳转到服务Tab 中的 服务进度
public
static
let
didJumpToServiceProgressNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.service.tab.serviceprogress"
)
}
}
}
}
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