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
29663b1c
Commit
29663b1c
authored
May 31, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 重置URL中有中文处理
parent
0a9f5bf2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
YHSearchInfomationVC.swift
...axy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
+1
-1
YHHomeBannerView.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
+2
-2
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+1
-1
YHServiceBannerView.swift
...ules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
+2
-2
YHVideoPlayerVC.swift
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
View file @
29663b1c
...
...
@@ -352,7 +352,7 @@ extension YHSearchInfomationVC: UITableViewDelegate, UITableViewDataSource {
if
model
.
type
==
1
{
// 视频
if
!
model
.
media_url
.
isEmpty
,
let
url
=
URL
(
string
:
model
.
media_url
)
{
let
vc
=
YHVideoPlayerVC
()
vc
.
url
=
model
.
media_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
url
=
model
.
media_url
vc
.
id
=
model
.
id
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
View file @
29663b1c
...
...
@@ -126,13 +126,13 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
switch
model
.
skip_type
{
case
1
:
//跳转H5
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
url
=
model
.
skip_url
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
2
:
//跳转APP内Tab
goAppTab
(
tabBarName
:
model
.
skip_url
)
case
3
:
//3-跳转资讯页
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
url
=
model
.
skip_url
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
0
:
//0 不需要跳转
printLog
(
"0 不需要跳转"
)
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
29663b1c
...
...
@@ -94,7 +94,7 @@ extension YHHomeCollectionViewCell {
if
listModel
.
media_url
.
isEmpty
==
false
,
let
url
=
URL
(
string
:
listModel
.
media_url
)
{
let
vc
=
YHVideoPlayerVC
()
vc
.
url
=
listModel
.
media_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
url
=
listModel
.
media_url
vc
.
id
=
listModel
.
id
vc
.
updateBlock
=
{
[
weak
self
]
item
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceBannerView.swift
View file @
29663b1c
...
...
@@ -123,13 +123,13 @@ extension YHServiceBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
switch
model
.
skip_type
{
case
1
:
//跳转H5
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
url
=
model
.
skip_url
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
2
:
//跳转APP内Tab
goAppTab
(
tabBarName
:
model
.
skip_url
)
case
3
:
//3-跳转资讯页
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
url
=
model
.
skip_url
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
0
:
//0 不需要跳转
printLog
(
"0 不需要跳转"
)
...
...
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
View file @
29663b1c
...
...
@@ -267,7 +267,7 @@ extension YHVideoPlayerVC {
}
let
title
:
String
=
self
.
viewModel
.
mainModel
?
.
title
??
""
let
link
:
String
=
self
.
viewModel
.
mainModel
?
.
media_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
??
""
let
link
:
String
=
self
.
viewModel
.
mainModel
?
.
media_url
??
""
let
thumbUrl
=
self
.
viewModel
.
mainModel
?
.
img_url
??
""
if
thumbUrl
.
isEmpty
{
YHHUD
.
flash
(
message
:
"分享失败"
)
...
...
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