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
1a348bec
Commit
1a348bec
authored
Jul 24, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 添加H5交互方法, 切换服务页的index
parent
a69a2f0d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletion
+25
-1
YHServerCenterHoldViewController.swift
.../OrderList(服务订单)/C/YHServerCenterHoldViewController.swift
+5
-0
YHServiceCenterViewController.swift
...中心)/OrderList(服务订单)/C/YHServiceCenterViewController.swift
+10
-1
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+9
-0
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+1
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/OrderList(服务订单)/C/YHServerCenterHoldViewController.swift
View file @
1a348bec
...
...
@@ -16,6 +16,11 @@ class YHServerCenterHoldViewController: UIViewController {
var
mobile
:
String
=
""
var
orderType
:
Int
=
0
var
productInfoMode
:
YHContactItemModel
=
YHContactItemModel
()
var
defaultSelectedIndex
:
Int
=
0
{
didSet
{
segmentedView
.
defaultSelectedIndex
=
defaultSelectedIndex
}
}
var
orderId
:
Int
=
0
{
didSet
{
for
i
in
0
..<
arrItemTitles
.
count
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/OrderList(服务订单)/C/YHServiceCenterViewController.swift
View file @
1a348bec
...
...
@@ -75,7 +75,7 @@ class YHServiceCenterViewController: YHBaseViewController {
didSet
{
DispatchQueue
.
global
()
.
asyncAfter
(
wallDeadline
:
.
now
()
)
{[
weak
self
]
in
DispatchQueue
.
main
.
async
{
// self?.cellView.myDefaultNavItem
Index = self?.myDefaultIndex ?? 0
self
?
.
cellView
.
defaultSelected
Index
=
self
?
.
myDefaultIndex
??
0
}
}
}
...
...
@@ -124,6 +124,8 @@ class YHServiceCenterViewController: YHBaseViewController {
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
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didSwitchIndex(_:)
)
,
name
:
YhConstant
.
YhNotification
.
didJumpToServicePageSwitchIndexNotification
,
object
:
nil
)
}
private
func
goToServiceProgressVC
()
{
...
...
@@ -154,6 +156,13 @@ class YHServiceCenterViewController: YHBaseViewController {
}
}
@objc
func
didSwitchIndex
(
_
notification
:
Notification
)
{
if
let
userInfo
=
notification
.
userInfo
,
let
status
=
userInfo
[
"status"
]
as?
String
{
let
index
=
Int
(
status
)
??
0
self
.
myDefaultIndex
=
index
}
}
@objc
func
logoutSuccess
()
{
self
.
model
=
YHContactItemModel
()
self
.
oldModel
=
YHContactItemModel
()
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
1a348bec
...
...
@@ -818,4 +818,13 @@ extension YHJsApi {
}
}
}
@objc
func
goServiceStatus
(
_
status
:
String
)
{
DispatchQueue
.
main
.
async
{
UIViewController
.
current
?
.
navigationController
?
.
popToRootViewController
(
animated
:
false
)
goTabBarBy
(
tabType
:
.
service
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didJumpToServicePageSwitchIndexNotification
,
object
:
nil
,
userInfo
:
[
"status"
:
status
])
}
}
}
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
1a348bec
...
...
@@ -411,6 +411,7 @@ extension YhConstant {
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"
)
public
static
let
didJumpToServicePageSwitchIndexNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.service.tab.switch"
)
// txIM未读消息数量变化
public
static
let
didTxIMUnReadMsgCountChangeNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.txIM.unReadMsgCountChange"
)
...
...
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