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
e919abec
Commit
e919abec
authored
Mar 13, 2025
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放入主线程
parent
55a8d4fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
+19
-23
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+19
-23
No files found.
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
e919abec
...
@@ -146,14 +146,13 @@ extension YHJsApi {
...
@@ -146,14 +146,13 @@ extension YHJsApi {
//21、使用safari WebView打开Url
//21、使用safari WebView打开Url
@objc
func
openUrlWithSafariSyn
(
_
payUrl
:
String
)
{
@objc
func
openUrlWithSafariSyn
(
_
payUrl
:
String
)
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"openUrlWithSafariSyn"
,
"payUrl"
:
payUrl
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"openUrlWithSafariSyn"
,
"payUrl"
:
payUrl
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
if
!
payUrl
.
isEmpty
,
let
url
=
URL
(
string
:
payUrl
)
{
if
!
payUrl
.
isEmpty
,
let
url
=
URL
(
string
:
payUrl
)
{
let
safariViewController
=
SFSafariViewController
(
url
:
url
)
let
safariViewController
=
SFSafariViewController
(
url
:
url
)
safariViewController
.
dismissButtonStyle
=
.
close
safariViewController
.
dismissButtonStyle
=
.
close
...
@@ -184,12 +183,10 @@ extension YHJsApi {
...
@@ -184,12 +183,10 @@ extension YHJsApi {
//19、返回时刷新界面
//19、返回时刷新界面
@objc
func
reloadwebVeiwSyn
(
_
tag
:
Any
)
{
@objc
func
reloadwebVeiwSyn
(
_
tag
:
Any
)
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"reloadwebVeiwSyn"
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"reloadwebVeiwSyn"
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
if
let
delegate
=
self
.
delegate
as?
YHH5WebViewVC
{
if
let
delegate
=
self
.
delegate
as?
YHH5WebViewVC
{
delegate
.
reloadwebVeiwSyn
()
delegate
.
reloadwebVeiwSyn
()
}
}
...
@@ -451,13 +448,12 @@ extension YHJsApi {
...
@@ -451,13 +448,12 @@ extension YHJsApi {
//7、跳转 首页-生活 tab
//7、跳转 首页-生活 tab
@objc
func
goHomeLifeTabSyn
(
_
fake
:
Any
)
{
@objc
func
goHomeLifeTabSyn
(
_
fake
:
Any
)
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"goHomeLifeTabSyn"
,
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"goHomeLifeTabSyn"
,
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
UIViewController
.
current
?
.
navigationController
?
.
popToRootViewController
(
animated
:
false
)
UIViewController
.
current
?
.
navigationController
?
.
popToRootViewController
(
animated
:
false
)
goTabBarBy
(
tabType
:
.
home
)
goTabBarBy
(
tabType
:
.
home
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didJumpToHomePageLifeTabNotification
,
object
:
nil
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didJumpToHomePageLifeTabNotification
,
object
:
nil
)
...
@@ -546,12 +542,12 @@ extension YHJsApi {
...
@@ -546,12 +542,12 @@ extension YHJsApi {
//5、返回App上一个界面
//5、返回App上一个界面
@objc
func
backToAppPreView
(
_
fake
:
Any
)
{
@objc
func
backToAppPreView
(
_
fake
:
Any
)
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"backToAppPreView"
,
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
let
dic
:
[
AnyHashable
:
Any
]
=
[
"function"
:
"backToAppPreView"
,
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
h5InteractionType
,
remark
:
dic
)
if
let
delegate
=
self
.
delegate
as?
YHH5WebViewVC
{
if
let
delegate
=
self
.
delegate
as?
YHH5WebViewVC
{
delegate
.
backToAppPreView
()
delegate
.
backToAppPreView
()
}
}
...
...
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