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
292298db
Commit
292298db
authored
May 31, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// URL包含中文处理
parent
69015503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
YHHomeBannerView.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
+2
-2
YHServiceBannerView.swift
...ules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
View file @
292298db
...
@@ -126,13 +126,13 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
...
@@ -126,13 +126,13 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
switch
model
.
skip_type
{
switch
model
.
skip_type
{
case
1
:
//跳转H5
case
1
:
//跳转H5
let
vc
=
YHHomeWebViewController
()
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
2
:
//跳转APP内Tab
case
2
:
//跳转APP内Tab
goAppTab
(
tabBarName
:
model
.
skip_url
)
goAppTab
(
tabBarName
:
model
.
skip_url
)
case
3
:
//3-跳转资讯页
case
3
:
//3-跳转资讯页
let
vc
=
YHHomeWebViewController
()
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
0
:
//0 不需要跳转
case
0
:
//0 不需要跳转
printLog
(
"0 不需要跳转"
)
printLog
(
"0 不需要跳转"
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
View file @
292298db
...
@@ -123,13 +123,13 @@ extension YHServiceBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
...
@@ -123,13 +123,13 @@ extension YHServiceBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
switch
model
.
skip_type
{
switch
model
.
skip_type
{
case
1
:
//跳转H5
case
1
:
//跳转H5
let
vc
=
YHHomeWebViewController
()
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
2
:
//跳转APP内Tab
case
2
:
//跳转APP内Tab
goAppTab
(
tabBarName
:
model
.
skip_url
)
goAppTab
(
tabBarName
:
model
.
skip_url
)
case
3
:
//3-跳转资讯页
case
3
:
//3-跳转资讯页
let
vc
=
YHHomeWebViewController
()
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
0
:
//0 不需要跳转
case
0
:
//0 不需要跳转
printLog
(
"0 不需要跳转"
)
printLog
(
"0 不需要跳转"
)
...
...
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