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
beba6688
Commit
beba6688
authored
Nov 27, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播bannar接口
parent
efaebc22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
YHBannerModel.swift
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHBannerModel.swift
+6
-1
YHHomeBannerView.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
+10
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHBannerModel.swift
View file @
beba6688
...
@@ -18,7 +18,12 @@ class YHBannerModel: SmartCodable {
...
@@ -18,7 +18,12 @@ class YHBannerModel: SmartCodable {
var
skip_type
:
Int
=
0
var
skip_type
:
Int
=
0
var
id
:
Int
=
0
var
id
:
Int
=
0
var
img_url_compress
:
String
=
""
var
img_url_compress
:
String
=
""
var
media_type
:
Int
=
1
//投放类型:1 图片,2 直播
var
live_id
:
Int
=
0
//直播ID
var
live_status
:
Int
=
0
//直播状态 1:直播中 2:未直播 0:未知状态 3:结束直播
var
live_type
:
Int
=
0
// 播放类型:1 展示最新直播,2指定直播,3 指定录播
var
live_pull_url
:
String
=
""
//直播拉流链接
var
video_url
:
String
=
""
//视频链接
//是否为本地
//是否为本地
var
isLocalItemFlag
:
Bool
=
false
var
isLocalItemFlag
:
Bool
=
false
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
View file @
beba6688
...
@@ -200,6 +200,16 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
...
@@ -200,6 +200,16 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
let
vc
=
YHHomeWebViewController
()
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
model
.
skip_url
vc
.
url
=
model
.
skip_url
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
case
10
:
// 直播
// media_type 投放类型:1 图片,2 直播
// live_id 直播ID
// live_status 直播状态 1:直播中 2:未直播 0:未知状态 3:结束直播
// live_type 播放类型:1 展示最新直播,2指定直播,3 指定录播
// live_pull_url 直播拉流链接
// video_url 视频链接
printLog
(
"跳转直播"
)
case
11
:
//录播
printLog
(
"跳转录播"
)
case
0
:
//0 不需要跳转
case
0
:
//0 不需要跳转
printLog
(
"0 不需要跳转"
)
printLog
(
"0 不需要跳转"
)
default
:
default
:
...
...
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