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
474bf546
Commit
474bf546
authored
Apr 17, 2025
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
香港行程添加
parent
e87e2474
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
YHHKEventWebViewController.swift
...asses/Modules/Home(首页)/C/YHHKEventWebViewController.swift
+8
-2
YHHomePageViewModel.swift
...axy/Classes/Modules/Home(首页)/VM/YHHomePageViewModel.swift
+5
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHKEventWebViewController.swift
View file @
474bf546
...
...
@@ -33,11 +33,17 @@ class YHHKEventWebViewController: YHBaseViewController {
extension
YHHKEventWebViewController
{
func
loadData
()
{
guard
let
urlString
=
model
.
list
.
first
else
{
return
}
if
let
url
=
URL
(
string
:
urlString
)
{
var
currentUrl
=
urlString
if
model
.
tag
.
contains
(
"香港行程"
)
{
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
as?
Int
{
currentUrl
=
urlString
+
"?paramO=
\(
orderID
)
"
+
"¶m="
+
YHLoginManager
.
shared
.
h5Token
}
}
if
let
url
=
URL
(
string
:
currentUrl
)
{
let
request
=
URLRequest
(
url
:
url
)
webview
.
load
(
request
)
}
else
{
let
tmpUrl
=
YHURLEncodeHelper
.
urlEncodedString
(
urlString
)
let
tmpUrl
=
YHURLEncodeHelper
.
urlEncodedString
(
currentUrl
)
if
let
url
=
URL
(
string
:
tmpUrl
)
{
let
request
=
URLRequest
(
url
:
url
)
webview
.
load
(
request
)
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/VM/YHHomePageViewModel.swift
View file @
474bf546
...
...
@@ -398,8 +398,12 @@ extension YHHomePageViewModel {
}
func
getHKEvent
(
param
:
[
String
:
Int
]
=
[:],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
var
params
=
param
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
as?
Int
{
params
=
[
"order_id"
:
orderID
]
}
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Common
.
hklistApi
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
param
)
{
[
weak
self
]
json
,
_
in
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
param
s
)
{
[
weak
self
]
json
,
_
in
guard
let
self
=
self
else
{
return
}
// 1. json字符串 转 对象
if
json
.
code
==
200
{
...
...
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