调整UI
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
|
||||
// Index 首页 SSR:拉取 GET /api/app/playlet/home,按接口字段注入模板。
|
||||
// 接口文档:http://172.104.181.99:25319/swagger/index.html#/app短剧相关接口/get_api_app_playlet_home
|
||||
// 继续观看:GET /api/app/playlet/history/list?pageNum=1&pageSize=6
|
||||
// 热播榜:短剧 hot/rank/list;剧集 video/all/list sortType=最热
|
||||
func Index(c *gin.Context) {
|
||||
raw := playletser.FetchHomeOrEmpty(c)
|
||||
@@ -17,12 +16,6 @@ func Index(c *gin.Context) {
|
||||
if raw != nil && raw.SeoInfo.Title != "" {
|
||||
title = raw.SeoInfo.Title
|
||||
}
|
||||
history := playletser.FetchHistoryListOrEmpty(c, playletser.HistoryListQuery{PageNum: 1, PageSize: 6})
|
||||
continueWatch := history.List
|
||||
if len(continueWatch) > 6 {
|
||||
continueWatch = continueWatch[:6]
|
||||
}
|
||||
|
||||
hotPlaylets := playletser.FetchHotRankListOrEmpty(c, playletser.HotRankQuery{
|
||||
PageNum: 1,
|
||||
PageSize: 10,
|
||||
@@ -52,7 +45,6 @@ func Index(c *gin.Context) {
|
||||
"homeConfigData": playletser.ActiveHomeConfigs(raw.HomeConfigData),
|
||||
// GET /api/app/playlet/tag/options → list(已上架标签)
|
||||
"tagOptions": playletser.FetchTagOptionsOrEmpty(c),
|
||||
"continueWatch": continueWatch,
|
||||
"hotRankPlaylets": hotPlaylets,
|
||||
"hotRankVideos": hotVideos,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user