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
03a679d5
Commit
03a679d5
authored
Sep 27, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通篇支持
parent
7f625161
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
YHH5WebViewVC.swift
.../Classes/Modules/InteractionH5(与H5交互)/YHH5WebViewVC.swift
+27
-0
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+12
-0
No files found.
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHH5WebViewVC.swift
View file @
03a679d5
...
@@ -368,6 +368,33 @@ extension YHH5WebViewVC {
...
@@ -368,6 +368,33 @@ extension YHH5WebViewVC {
// MARK: - h5实现的接口
// MARK: - h5实现的接口
extension
YHH5WebViewVC
{
extension
YHH5WebViewVC
{
//是否支持通屏
func
supportFullScreenSyn
(
_
tag
:
String
)
{
if
tag
.
contains
(
"1"
)
{
//支持
isFullScreenFlag
=
true
}
else
{
//不支持
isFullScreenFlag
=
false
}
webview
.
snp
.
removeConstraints
()
if
isFullScreenFlag
{
webview
.
snp
.
remakeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
}
else
{
webview
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
}
//是否支持内部跳转
func
supportInnerBackSyn
(
_
tag
:
String
)
{
func
supportInnerBackSyn
(
_
tag
:
String
)
{
if
tag
.
contains
(
"1"
)
{
if
tag
.
contains
(
"1"
)
{
isSupportWebviewInterBackFlag
=
true
isSupportWebviewInterBackFlag
=
true
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
03a679d5
...
@@ -17,6 +17,18 @@ class YHJsApi: NSObject {
...
@@ -17,6 +17,18 @@ class YHJsApi: NSObject {
}
}
extension
YHJsApi
{
extension
YHJsApi
{
//13、是否支持通屏
@objc
func
supportFullScreenSyn
(
_
tag
:
Any
)
{
DispatchQueue
.
main
.
async
{
if
let
tag
=
tag
as?
String
,
tag
.
count
==
1
{
if
let
delegate
=
self
.
delegate
as?
YHH5WebViewVC
{
delegate
.
supportFullScreenSyn
(
tag
)
}
}
}
}
//12、webView内支持内部一级一级返回
//12、webView内支持内部一级一级返回
@objc
func
supportInnerBackSyn
(
_
tag
:
Any
)
{
@objc
func
supportInnerBackSyn
(
_
tag
:
Any
)
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
...
...
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