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
359c5619
Commit
359c5619
authored
Jul 25, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生意星deeplink跳转
parent
36e795a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+67
-0
YHBaseUrlManager.swift
galaxy/galaxy/Classes/Tools/NetWork/YHBaseUrlManager.swift
+15
-0
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
359c5619
...
@@ -203,9 +203,76 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
...
@@ -203,9 +203,76 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
}
}
}
}
}
else
if
iType
==
7
{
}
else
if
iType
==
7
{
/*
店铺页 https://test-businessh5.galaxy-immi.com/pre-sale/business
店单页 https://test-businessh5.galaxy-immi.com/pre-sale/store
*/
// 生意星店铺页面
// 生意星店铺页面
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.25
)
{
if
!
YHLoginManager
.
shared
.
isLogin
()
{
printLog
(
"需要登录"
)
return
}
var
url
=
YHBaseUrlManager
.
shared
.
curBusinessStarUrl
()
if
YHLoginManager
.
shared
.
isLogin
()
{
let
token
=
YHLoginManager
.
shared
.
h5Token
let
urlHasParam
=
String
.
hasQueryParameters
(
urlString
:
url
)
if
urlHasParam
{
url
=
url
+
"¶m="
+
token
}
else
{
url
=
url
+
"?param="
+
token
}
}
// 2.增加导航栏高度
var
tUrl
=
url
if
!
url
.
contains
(
"navigationH="
)
{
tUrl
=
url
+
"?navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
if
url
.
contains
(
"?"
)
{
tUrl
=
url
+
"&navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
}
}
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
tUrl
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
else
if
iType
==
8
{
}
else
if
iType
==
8
{
// 生意星看店单页面
// 生意星看店单页面
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.25
)
{
if
!
YHLoginManager
.
shared
.
isLogin
()
{
printLog
(
"需要登录"
)
return
}
var
url
=
YHBaseUrlManager
.
shared
.
curBusinessStarStoreUrl
()
if
YHLoginManager
.
shared
.
isLogin
()
{
let
token
=
YHLoginManager
.
shared
.
h5Token
let
urlHasParam
=
String
.
hasQueryParameters
(
urlString
:
url
)
if
urlHasParam
{
url
=
url
+
"¶m="
+
token
}
else
{
url
=
url
+
"?param="
+
token
}
}
// 2.增加导航栏高度
var
tUrl
=
url
if
!
url
.
contains
(
"navigationH="
)
{
tUrl
=
url
+
"?navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
if
url
.
contains
(
"?"
)
{
tUrl
=
url
+
"&navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
}
}
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
tUrl
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
else
{
}
else
{
printLog
(
"未处理的类型
\(
iType
)
"
)
printLog
(
"未处理的类型
\(
iType
)
"
)
}
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHBaseUrlManager.swift
View file @
359c5619
...
@@ -65,6 +65,21 @@ class YHBaseUrlManager {
...
@@ -65,6 +65,21 @@ class YHBaseUrlManager {
url
=
"https://businessh5.galaxy-immi.com/pre-sale/business"
url
=
"https://businessh5.galaxy-immi.com/pre-sale/business"
#else
#else
url
=
"https://businessh5.galaxy-immi.com/pre-sale/business"
url
=
"https://businessh5.galaxy-immi.com/pre-sale/business"
#endif
return
url
}
// 生意星
func
curBusinessStarStoreUrl
()
->
String
{
var
url
=
""
#if DEBUG
url
=
"https://test-businessh5.galaxy-immi.com/pre-sale/store"
#elseif TESTENV
url
=
"https://test-businessh5.galaxy-immi.com/pre-sale/store"
#elseif UATENV
url
=
"https://businessh5.galaxy-immi.com/pre-sale/store"
#else
url
=
"https://businessh5.galaxy-immi.com/pre-sale/store"
#endif
#endif
return
url
return
url
}
}
...
...
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