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
c6004983
Commit
c6004983
authored
Oct 18, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 openUrlWithSafariSyn
parent
c9d86b2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
YHHomeBannerView.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
+3
-0
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+14
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
View file @
c6004983
...
@@ -150,6 +150,9 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
...
@@ -150,6 +150,9 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
//for test hjl 贤宇IP
//for test hjl 贤宇IP
// model.skip_url = "http://192.168.23.35:10300/signatureQrcode/EcqtQYs%2Bxey7t6jLbn6JkQ%3D%3D"
// model.skip_url = "http://192.168.23.35:10300/signatureQrcode/EcqtQYs%2Bxey7t6jLbn6JkQ%3D%3D"
// model.skip_url = "http://192.168.23.71:10300/superAppBridge.html#/double11-home"
//1.增加app token
//1.增加app token
var
url
=
""
var
url
=
""
if
YHLoginManager
.
shared
.
isLogin
()
{
if
YHLoginManager
.
shared
.
isLogin
()
{
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
c6004983
...
@@ -18,6 +18,20 @@ class YHJsApi: NSObject {
...
@@ -18,6 +18,20 @@ class YHJsApi: NSObject {
}
}
extension
YHJsApi
{
extension
YHJsApi
{
//21、使用safari WebView打开Url
@objc
func
openUrlWithSafariSyn
(
_
payUrl
:
String
)
{
DispatchQueue
.
main
.
async
{
if
!
payUrl
.
isEmpty
,
let
url
=
URL
(
string
:
payUrl
)
{
let
safariViewController
=
SFSafariViewController
(
url
:
url
)
safariViewController
.
dismissButtonStyle
=
.
close
safariViewController
.
modalPresentationStyle
=
.
fullScreen
UIViewController
.
current
?
.
present
(
safariViewController
,
animated
:
true
,
completion
:
nil
)
}
else
{
printLog
(
"hjl : 这个url不合法 -- "
+
payUrl
)
}
}
}
//20、导航栏上是否展示title
//20、导航栏上是否展示title
@objc
func
hideNavigationTitleSyn
(
_
tag
:
Any
)
{
@objc
func
hideNavigationTitleSyn
(
_
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