@quicktvui/ai 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rules/.clinerules +1 -0
- package/rules/.cursorrules +1 -0
- package/rules/.github/copilot-instructions.md +1 -0
- package/rules/.source/hellotv/PROJECT-README.md +52 -0
- package/rules/.source/hellotv/app.d.ts +11 -0
- package/rules/.source/hellotv/package.json +146 -0
- package/rules/.source/hellotv/scripts/build-apk.ts +12 -0
- package/rules/.source/hellotv/scripts/build.ts +35 -0
- package/rules/.source/hellotv/scripts/dev.ts +12 -0
- package/rules/.source/hellotv/scripts/pack.ts +24 -0
- package/rules/.source/hellotv/scripts/process.ts +37 -0
- package/rules/.source/hellotv/scripts/quicktvui-webpack.android.ts +187 -0
- package/rules/.source/hellotv/scripts/quicktvui-webpack.dev.ts +147 -0
- package/rules/.source/hellotv/scripts/webpack-watch.ts +24 -0
- package/rules/.source/hellotv/src/App.vue +192 -0
- package/rules/.source/hellotv/src/api/my/index.ts +198 -0
- package/rules/.source/hellotv/src/api/user/impl-user.ts +52 -0
- package/rules/.source/hellotv/src/api/user/qr-code-mock.ts +2 -0
- package/rules/.source/hellotv/src/api/user/request-url.ts +11 -0
- package/rules/.source/hellotv/src/api/user/user-manager.ts +258 -0
- package/rules/.source/hellotv/src/app.scss +8 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_pause.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_play.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_collect_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_collect_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_full_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_full_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_info_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_info_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_introduction_bg.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_pause.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_placeholder.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_play.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_vip_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_vip_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/skeleton.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_empty.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/history/ic_delete.png +0 -0
- package/rules/.source/hellotv/src/assets/history/ic_empty.png +0 -0
- package/rules/.source/hellotv/src/assets/home/bg_history_item.png +0 -0
- package/rules/.source/hellotv/src/assets/home/bg_shadow.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_logo.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_play_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_subtitle_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_arrow_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_arrow_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_exit_corner.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_exit_header.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_play.png +0 -0
- package/rules/.source/hellotv/src/assets/live/bg-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/bg-play-info.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-arrow-left.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-arrow-right.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-back.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-change.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-corner-vip-tips.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-corner-vip.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-key.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-loading-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu-ext-arrow.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu-ext.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-mine.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-network-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-ok.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing2.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing3.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-service.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic_live_broadcast.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic_live_broadcast_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_collect_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_collect_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_order_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_order_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_record_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_record_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_user.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_vip_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_back.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_back_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear_dark.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_search.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_logo.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_search_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_search_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_user_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_user_normal.png +0 -0
- package/rules/.source/hellotv/src/components/bg-animation.scss +14 -0
- package/rules/.source/hellotv/src/components/bg-animation.vue +176 -0
- package/rules/.source/hellotv/src/components/btn-pack-view.vue +172 -0
- package/rules/.source/hellotv/src/components/btn-pack.scss +53 -0
- package/rules/.source/hellotv/src/components/grid-item-horizontal.vue +203 -0
- package/rules/.source/hellotv/src/components/grid-item-vertical.vue +201 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-config.ts +4 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-control-adapter.ts +378 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-imp.ts +44 -0
- package/rules/.source/hellotv/src/components/media/view/media-loading-component.vue +50 -0
- package/rules/.source/hellotv/src/components/media/view/media-loading-view.vue +154 -0
- package/rules/.source/hellotv/src/components/media/view/media-manager-view.vue +931 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-detail-item.vue +42 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-detail-view.vue +109 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-icon-item.vue +43 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-text-item.vue +27 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-view.vue +88 -0
- package/rules/.source/hellotv/src/components/media/view/media-player-view.vue +408 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-loading.scss +51 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-manager.scss +79 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-menu.scss +114 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-player.scss +6 -0
- package/rules/.source/hellotv/src/components/qt-tabs-component.ts +268 -0
- package/rules/.source/hellotv/src/components/qt-ul-component.ts +792 -0
- package/rules/.source/hellotv/src/components/top-view.scss +38 -0
- package/rules/.source/hellotv/src/components/top-view.vue +114 -0
- package/rules/.source/hellotv/src/config/README.md +22 -0
- package/rules/.source/hellotv/src/config/build-config.ts +22 -0
- package/rules/.source/hellotv/src/config/private-theme-config.ts +21 -0
- package/rules/.source/hellotv/src/config/public-config.scss +16 -0
- package/rules/.source/hellotv/src/config/test.scss +45 -0
- package/rules/.source/hellotv/src/config/theme-config.ts +51 -0
- package/rules/.source/hellotv/src/main.ts +45 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/config.ts +37 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/index.ts +849 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/interface.ts +173 -0
- package/rules/.source/hellotv/src/pages/activity/api/index.ts +36 -0
- package/rules/.source/hellotv/src/pages/activity/api/interface.ts +11 -0
- package/rules/.source/hellotv/src/pages/activity/api/request-url.ts +10 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/focus-change-img-item.vue +40 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/inner-out-title-item.vue +59 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/no-title-item.vue +45 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/placeholder-item.vue +25 -0
- package/rules/.source/hellotv/src/pages/activity/index.vue +219 -0
- package/rules/.source/hellotv/src/pages/activity/scss/index.scss +46 -0
- package/rules/.source/hellotv/src/pages/activity/scss/item.scss +69 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/index.ts +317 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/interface.ts +150 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/media-player.ts +378 -0
- package/rules/.source/hellotv/src/pages/detail/api/index.ts +77 -0
- package/rules/.source/hellotv/src/pages/detail/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-definition.vue +192 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-list-item.vue +108 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-media-series.vue +349 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-order.vue +194 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-speed.vue +192 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/index.vue +404 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-small-view.vue +382 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-view.vue +1099 -0
- package/rules/.source/hellotv/src/pages/detail/components/recommend-item.vue +167 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/basic-section.vue +218 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/config.ts +6 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/header-section.vue +15 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/button-menu.vue +259 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/media-introduction.vue +238 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/media-series.vue +308 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/player-placeholder.vue +88 -0
- package/rules/.source/hellotv/src/pages/detail/index.vue +571 -0
- package/rules/.source/hellotv/src/pages/detail/scss/index.scss +22 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-loading.vue +78 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-menu-view.vue +803 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-view.vue +219 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/index.vue +101 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/scss/full-player-view.scss +6 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/index.ts +0 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/interface.ts +133 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/api/index.ts +77 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-info.vue +263 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-player.vue +42 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-series-section.vue +26 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/recommend-item.vue +167 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/index.vue +163 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/scss/index.scss +41 -0
- package/rules/.source/hellotv/src/pages/device-info/index.vue +106 -0
- package/rules/.source/hellotv/src/pages/device-info/scss/device-info.scss +49 -0
- package/rules/.source/hellotv/src/pages/filter/README.md +66 -0
- package/rules/.source/hellotv/src/pages/filter/adapter/index.ts +180 -0
- package/rules/.source/hellotv/src/pages/filter/adapter/interface.ts +111 -0
- package/rules/.source/hellotv/src/pages/filter/api/index.ts +38 -0
- package/rules/.source/hellotv/src/pages/filter/api/interface.ts +44 -0
- package/rules/.source/hellotv/src/pages/filter/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/index.vue +469 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/list-item-record.vue +16 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/list-item.vue +78 -0
- package/rules/.source/hellotv/src/pages/filter/components/expand/index.vue +83 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/index.vue +81 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter-title.vue +78 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter.vue +68 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-line.vue +11 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-text.vue +43 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-title.vue +14 -0
- package/rules/.source/hellotv/src/pages/filter/config.ts +10 -0
- package/rules/.source/hellotv/src/pages/filter/expand-sidebar-contents.vue +203 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-content-list-item.scss +42 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-content.scss +60 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-expand.scss +30 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-sidebar.scss +45 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter.scss +21 -0
- package/rules/.source/hellotv/src/pages/filter/sidebar-contents.vue +145 -0
- package/rules/.source/hellotv/src/pages/filter/single-contents.vue +61 -0
- package/rules/.source/hellotv/src/pages/history/adapter/index.ts +51 -0
- package/rules/.source/hellotv/src/pages/history/adapter/interface.ts +22 -0
- package/rules/.source/hellotv/src/pages/history/api/index.ts +54 -0
- package/rules/.source/hellotv/src/pages/history/api/interface.ts +41 -0
- package/rules/.source/hellotv/src/pages/history/api/request-url.ts +10 -0
- package/rules/.source/hellotv/src/pages/history/components/confirm-dialog.vue +155 -0
- package/rules/.source/hellotv/src/pages/history/config.ts +8 -0
- package/rules/.source/hellotv/src/pages/history/index-raw.vue +540 -0
- package/rules/.source/hellotv/src/pages/history/index.vue +431 -0
- package/rules/.source/hellotv/src/pages/history/mock.ts +32 -0
- package/rules/.source/hellotv/src/pages/history/scss/history-raw.scss +181 -0
- package/rules/.source/hellotv/src/pages/history/scss/history.scss +148 -0
- package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-adapter.ts +20 -0
- package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-imp.ts +13 -0
- package/rules/.source/hellotv/src/pages/home/adapter/media/create-home-player-interceptor.ts +50 -0
- package/rules/.source/hellotv/src/pages/home/adapter/media/home-media-imp.ts +74 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-adapter.ts +151 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-config.ts +17 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-imp.ts +53 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-item-type.ts +6 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-adapter.ts +1304 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-config.ts +30 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-imp.ts +173 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-item-type.ts +17 -0
- package/rules/.source/hellotv/src/pages/home/api/index.ts +157 -0
- package/rules/.source/hellotv/src/pages/home/api/interface.ts +56 -0
- package/rules/.source/hellotv/src/pages/home/api/request-url.ts +22 -0
- package/rules/.source/hellotv/src/pages/home/components/exit-dialog.vue +148 -0
- package/rules/.source/hellotv/src/pages/home/components/media/bg-player.vue +440 -0
- package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-img-item.vue +39 -0
- package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-text-item.vue +100 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-img.vue +54 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-text.vue +67 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-list-player-item.vue +74 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-player-item.vue +40 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/focus-change-img-item.vue +41 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/history-item.vue +362 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/inner-out-title-item.vue +60 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/no-title-item.vue +46 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/placeholder-item.vue +25 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section-item.vue +80 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section.vue +70 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/small-4k/small-four-section.vue +76 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section-item.vue +90 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section.vue +57 -0
- package/rules/.source/hellotv/src/pages/home/components/waterfall-tabs.vue +1307 -0
- package/rules/.source/hellotv/src/pages/home/index.vue +117 -0
- package/rules/.source/hellotv/src/pages/home/scss/bar-img-item.scss +11 -0
- package/rules/.source/hellotv/src/pages/home/scss/bar-text-item.scss +80 -0
- package/rules/.source/hellotv/src/pages/home/scss/base.scss +8 -0
- package/rules/.source/hellotv/src/pages/home/scss/bg-player-cell-list-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/bg-player.scss +50 -0
- package/rules/.source/hellotv/src/pages/home/scss/cell-player-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/exit-dialog.scss +89 -0
- package/rules/.source/hellotv/src/pages/home/scss/focus-change-img-item.scss +12 -0
- package/rules/.source/hellotv/src/pages/home/scss/home.scss +32 -0
- package/rules/.source/hellotv/src/pages/home/scss/inner-out-title-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/no-title-item.scss +15 -0
- package/rules/.source/hellotv/src/pages/home/scss/placeholder-item.scss +14 -0
- package/rules/.source/hellotv/src/pages/home/scss/short-video-section.scss +59 -0
- package/rules/.source/hellotv/src/pages/home/scss/small-four-section.scss +14 -0
- package/rules/.source/hellotv/src/pages/home/scss/waterfall-tabs.scss +50 -0
- package/rules/.source/hellotv/src/pages/home/scss/world-four-section.scss +106 -0
- package/rules/.source/hellotv/src/pages/introduction/index.vue +227 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-icon-text.vue +35 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-img.vue +16 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-text.vue +16 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/index.vue +266 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/second-list-item.vue +80 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/third-list-item.vue +68 -0
- package/rules/.source/hellotv/src/pages/live/components/player/index.vue +168 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-error.vue +48 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-loading.vue +50 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-tips.vue +125 -0
- package/rules/.source/hellotv/src/pages/live/components/player/tips-icon-text.vue +27 -0
- package/rules/.source/hellotv/src/pages/live/css/menu.css +109 -0
- package/rules/.source/hellotv/src/pages/live/css/player.css +56 -0
- package/rules/.source/hellotv/src/pages/live/index.vue +128 -0
- package/rules/.source/hellotv/src/pages/live/mock/index.ts +263 -0
- package/rules/.source/hellotv/src/pages/live/types/index.ts +42 -0
- package/rules/.source/hellotv/src/pages/login/index.vue +116 -0
- package/rules/.source/hellotv/src/pages/login/scss/login.scss +61 -0
- package/rules/.source/hellotv/src/pages/m-test.vue +84 -0
- package/rules/.source/hellotv/src/pages/my/README.md +87 -0
- package/rules/.source/hellotv/src/pages/my/index.vue +177 -0
- package/rules/.source/hellotv/src/pages/my/my-data-manager.ts +606 -0
- package/rules/.source/hellotv/src/pages/my/my-templates.vue +24 -0
- package/rules/.source/hellotv/src/pages/my/poster/index.vue +98 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-card2.vue +90 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-col.vue +72 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-row.vue +72 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-info.vue +50 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-user.vue +126 -0
- package/rules/.source/hellotv/src/pages/play-test.vue +95 -0
- package/rules/.source/hellotv/src/pages/search/README.md +57 -0
- package/rules/.source/hellotv/src/pages/search/adapter/index.ts +285 -0
- package/rules/.source/hellotv/src/pages/search/adapter/interface.ts +60 -0
- package/rules/.source/hellotv/src/pages/search/api/index.ts +100 -0
- package/rules/.source/hellotv/src/pages/search/api/interface.ts +64 -0
- package/rules/.source/hellotv/src/pages/search/api/request-url.ts +20 -0
- package/rules/.source/hellotv/src/pages/search/components/search-content-tabs.vue +153 -0
- package/rules/.source/hellotv/src/pages/search/components/search-content.vue +282 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyboard.vue +252 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyword-grid.vue +85 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyword.vue +346 -0
- package/rules/.source/hellotv/src/pages/search/config.ts +10 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-content.scss +130 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyboard.scss +91 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyword-grid.scss +30 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyword.scss +104 -0
- package/rules/.source/hellotv/src/pages/search/scss/search.scss +18 -0
- package/rules/.source/hellotv/src/pages/search/three-columns.vue +164 -0
- package/rules/.source/hellotv/src/pages/search/two-columns.vue +128 -0
- package/rules/.source/hellotv/src/pages/tabs-test.vue +339 -0
- package/rules/.source/hellotv/src/pages/webview/load-web-view.vue +44 -0
- package/rules/.source/hellotv/src/routes.ts +142 -0
- package/rules/.source/hellotv/src/tools/common.ts +18 -0
- package/rules/.source/hellotv/src/tools/format-date.ts +16 -0
- package/rules/.source/hellotv/src/tools/index.ts +58 -0
- package/rules/.source/hellotv/src/tools/launch.ts +339 -0
- package/rules/.source/hellotv/src/tools/request/index.ts +206 -0
- package/rules/.source/hellotv/src/tools/request/interface.ts +64 -0
- package/rules/.source/hellotv/src/typings/shims-vue.d.ts +6 -0
- package/rules/.source/hellotv/src/vue.config.js +3 -0
- package/rules/.source/hellotv/tsconfig.json +34 -0
- package/rules/.windsurfrules +1 -0
- package/rules/AGENTS.md +1 -0
- package/rules/CLAUDE.md +1 -0
- package/rules/GEMINI.md +1 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CellListItemType } from "../media/home-media-imp";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
//首页播放器sid
|
|
5
|
+
homeBgPlaySid: "bg-player",
|
|
6
|
+
//4k section item 名称
|
|
7
|
+
world4kSectionItemName: "home-4k-list-section-item",
|
|
8
|
+
worldSmall4kSectionItemName: "home-small-4k-list-section-item",
|
|
9
|
+
shortVideoSectionItemName: "short-video-section-item",
|
|
10
|
+
cellListSectionItemName: "cell-list-section-item",
|
|
11
|
+
cellListItemType: CellListItemType.TYPE_TEXT,
|
|
12
|
+
//首页内容请求数量
|
|
13
|
+
sectionLoadLimit: 10,
|
|
14
|
+
//板块间距
|
|
15
|
+
sectionGap: 40,
|
|
16
|
+
//板块标题字体大小
|
|
17
|
+
sectionTitleFontSize: 42,
|
|
18
|
+
//板块标题默认高度,后台如果是图片标题,高度从后台获取
|
|
19
|
+
sectionTitleHeightDefault: 60,
|
|
20
|
+
//格子和板块标题,格子之间间距
|
|
21
|
+
sectionItemGap: 40,
|
|
22
|
+
//格子标题高度
|
|
23
|
+
sectionItemHeight: 60,
|
|
24
|
+
//整体距离左侧距离
|
|
25
|
+
decorationLeftGap: 80,
|
|
26
|
+
//首个板块距离顶部距离
|
|
27
|
+
firstSectionTop: 219,
|
|
28
|
+
//单 tab 时,首个section 距离顶部的偏移量
|
|
29
|
+
firstSectionOffsetY: -80,
|
|
30
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { IMediaUrl } from "../../../../components/media/build-data/media-imp";
|
|
2
|
+
import { LaunchParams } from "../../../../tools/launch";
|
|
3
|
+
/**
|
|
4
|
+
* tabContent
|
|
5
|
+
*/
|
|
6
|
+
export interface TabContent {
|
|
7
|
+
//板块总数
|
|
8
|
+
total?: number;
|
|
9
|
+
//二屏背景图
|
|
10
|
+
backgroundImage?: string;
|
|
11
|
+
//板块列表
|
|
12
|
+
sections: Array<Section>;
|
|
13
|
+
//自定义参数
|
|
14
|
+
customParams?: any;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 板块类型
|
|
19
|
+
*/
|
|
20
|
+
export enum SectionType {
|
|
21
|
+
//普通板块
|
|
22
|
+
TYPE_DEFAULT = 1,
|
|
23
|
+
//一行滚动板块
|
|
24
|
+
TYPE_LINE_SCROLL = 2,
|
|
25
|
+
//放映厅板块
|
|
26
|
+
TYPE_SWIPER_PLAY = 3,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 板块数据
|
|
31
|
+
*/
|
|
32
|
+
export interface Section {
|
|
33
|
+
id: string;
|
|
34
|
+
//板块类型 1:普通类型,2:一行滚动, 3:轮播播放(小 4K)
|
|
35
|
+
type: SectionType;
|
|
36
|
+
//板块标题
|
|
37
|
+
title: {
|
|
38
|
+
text?: string;
|
|
39
|
+
image?: string;
|
|
40
|
+
style?: {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
floatTitle?: string;
|
|
46
|
+
subTitle?: string;
|
|
47
|
+
//是否展示板块标题
|
|
48
|
+
showTitle: boolean;
|
|
49
|
+
//板块高度样式
|
|
50
|
+
style: {
|
|
51
|
+
height: number;
|
|
52
|
+
};
|
|
53
|
+
//板块中数据列表
|
|
54
|
+
items: Array<SectionItem>;
|
|
55
|
+
//自定义参数
|
|
56
|
+
customParams?: any;
|
|
57
|
+
contentId?: string;
|
|
58
|
+
contentType?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 格子类型
|
|
63
|
+
*/
|
|
64
|
+
export enum SectionItemType {
|
|
65
|
+
//无标题
|
|
66
|
+
TYPE_DEFAULT = 0,
|
|
67
|
+
//内标题
|
|
68
|
+
TYPE_INNER = 1,
|
|
69
|
+
//外表体
|
|
70
|
+
TYPE_OUT = 2,
|
|
71
|
+
//占位
|
|
72
|
+
TYPE_PLACE_HOLDER = 3,
|
|
73
|
+
//文字历史格子
|
|
74
|
+
TYPE_TEXT_HISTORY = 4,
|
|
75
|
+
//图片历史格子
|
|
76
|
+
TYPE_IMG_HISTORY = 5,
|
|
77
|
+
//焦点变图
|
|
78
|
+
TYPE_FOCUS_CHANGE_IMG = 6,
|
|
79
|
+
//小窗播放格子
|
|
80
|
+
TYPE_SMALL_PLAY = 7,
|
|
81
|
+
//小窗列表播放格子
|
|
82
|
+
TYPE_SMALL_LIST_PLAY = 8,
|
|
83
|
+
//轮播图片格子
|
|
84
|
+
TYPE_LOOP_IMAGE = 9,
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 格子数据
|
|
89
|
+
*/
|
|
90
|
+
export interface SectionItem {
|
|
91
|
+
id: string;
|
|
92
|
+
//格子类型:0:无标题,1:内标题,2:外标题,3:占位,4:文字历史,5:图片历史,6:焦点变图,7:小窗播放,8:小窗列表播放
|
|
93
|
+
type: SectionItemType;
|
|
94
|
+
//X坐标
|
|
95
|
+
posX: number;
|
|
96
|
+
//Y坐标
|
|
97
|
+
posY: number;
|
|
98
|
+
//标题
|
|
99
|
+
title: string;
|
|
100
|
+
//副标题
|
|
101
|
+
subTitle?: string;
|
|
102
|
+
//封面图
|
|
103
|
+
image: string;
|
|
104
|
+
//封面图图片宽
|
|
105
|
+
width: number;
|
|
106
|
+
//封面图图片高
|
|
107
|
+
height: number;
|
|
108
|
+
//焦点图
|
|
109
|
+
imageFocus?: string;
|
|
110
|
+
//焦点背景图
|
|
111
|
+
imageFocusBackground?: string;
|
|
112
|
+
corner: Corner;
|
|
113
|
+
//背景播放内容Id
|
|
114
|
+
playBackgroundId?: string;
|
|
115
|
+
//背景播放url
|
|
116
|
+
playBackgroundUrl?: string;
|
|
117
|
+
//小窗播放、小窗列表播放数据
|
|
118
|
+
playData?: Array<PlayData>;
|
|
119
|
+
//跳转数据
|
|
120
|
+
jumpParams: LaunchParams;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface Section4KItem {
|
|
124
|
+
id: string;
|
|
125
|
+
//标题
|
|
126
|
+
title: string;
|
|
127
|
+
//副标题
|
|
128
|
+
subTitle: string;
|
|
129
|
+
//封面图
|
|
130
|
+
image: string;
|
|
131
|
+
//播放数据
|
|
132
|
+
playData: Array<PlayData>;
|
|
133
|
+
//跳转数据
|
|
134
|
+
jumpParams: LaunchParams;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface Corner {
|
|
138
|
+
text: string;
|
|
139
|
+
textGradient?: Array<string>;
|
|
140
|
+
image: string;
|
|
141
|
+
imageStyle: {
|
|
142
|
+
width: number;
|
|
143
|
+
height: number;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 视频类型
|
|
149
|
+
*/
|
|
150
|
+
export enum PlayType {
|
|
151
|
+
//正片长视频类型
|
|
152
|
+
TYPE_LONG = 1,
|
|
153
|
+
//短视频类型
|
|
154
|
+
TYPE_SHORT = 2,
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* 播放内容
|
|
159
|
+
*/
|
|
160
|
+
export interface PlayData {
|
|
161
|
+
id: string;
|
|
162
|
+
type: PlayType;
|
|
163
|
+
//标题
|
|
164
|
+
title: string;
|
|
165
|
+
//封面图
|
|
166
|
+
cover: string;
|
|
167
|
+
//缩略图
|
|
168
|
+
thumbnail?: string;
|
|
169
|
+
//是否请求播放地址
|
|
170
|
+
isRequestUrl: boolean;
|
|
171
|
+
//播放地址
|
|
172
|
+
url?: Array<IMediaUrl>;
|
|
173
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
TYPE_ITEM_SECTION_NO_TITLE: 0, //带边框无标题格子
|
|
3
|
+
TYPE_ITEM_SECTION_HAS_TITLE: 1, //带标题格子(上方/下方)
|
|
4
|
+
TYPE_ITEM_SECTION_PLACEHOLDER: 3, //占位格子
|
|
5
|
+
TYPE_ITEM_HISTORY_TEXT: 4, //历史格子-文字
|
|
6
|
+
TYPE_ITEM_HISTORY_IMG: 5, //历史格子-图片
|
|
7
|
+
TYPE_ITEM_SECTION_FOCUS_CHANGE_IMG: 6, //焦点变图格子
|
|
8
|
+
TYPE_ITEM_SECTION_CELL_PLAYER: 7, //小窗播放
|
|
9
|
+
TYPE_ITEM_SECTION_CELL_PLAYER_LIST: 8, //小窗列表播放
|
|
10
|
+
TYPE_ITEM_SECTION_LOOP_IMG: 9, //轮播图片格子
|
|
11
|
+
TYPE_WATERFALL_SECTION_4K: 101, //4K section
|
|
12
|
+
TYPE_WATERFALL_SECTION_4K_ITEM: 10, //4K item格子
|
|
13
|
+
TYPE_WATERFALL_SECTION_SMALL_4K: 102, //放映厅 小 4K section
|
|
14
|
+
TYPE_WATERFALL_SECTION_SMALL_4K_ITEM: 11, //放映厅 小 4K item格子
|
|
15
|
+
TYPE_WATERFALL_SECTION_SHORT_SCREEN: 103, //短视频全屏背景播放
|
|
16
|
+
TYPE_WATERFALL_SECTION_SHORT_SCREEN_ITEM: 12, //短视频 item格子
|
|
17
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { QTTab, QTTabPageData, QTWaterfallItem } from "@quicktvui/quicktvui3";
|
|
2
|
+
import barsDataManager from "../adapter/tab-bar/tab-bar-adapter";
|
|
3
|
+
import {
|
|
4
|
+
build4KSectionData,
|
|
5
|
+
buildShortVideoSectionData,
|
|
6
|
+
buildSmall4KSectionData,
|
|
7
|
+
} from "../adapter/tab-content/tab-content-adapter";
|
|
8
|
+
import requestManager from "../../../tools/request";
|
|
9
|
+
import { Section4KItem } from "../adapter/tab-content/tab-content-imp";
|
|
10
|
+
import TabContentItemType from "../adapter/tab-content/tab-content-item-type";
|
|
11
|
+
import {
|
|
12
|
+
home4KUrl,
|
|
13
|
+
homePlayUrl,
|
|
14
|
+
homeResources,
|
|
15
|
+
homeRetention,
|
|
16
|
+
tabContentUrl,
|
|
17
|
+
tabListUrl,
|
|
18
|
+
} from "./request-url";
|
|
19
|
+
import { HomeApi } from "./interface";
|
|
20
|
+
import BuildConfig from "../../../config/build-config";
|
|
21
|
+
import { replacePlaceholders } from "../../../tools/common";
|
|
22
|
+
import { Records } from "../../history/api/interface";
|
|
23
|
+
import { historyRecordsUrl } from "../../history/api/request-url";
|
|
24
|
+
|
|
25
|
+
class HomeManager implements HomeApi {
|
|
26
|
+
/**
|
|
27
|
+
* 获取导航数据
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
getTabList(): Promise<QTTab> {
|
|
31
|
+
const url = tabListUrl + BuildConfig.packageName;
|
|
32
|
+
return requestManager.get(url);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 获取导航对应内容
|
|
37
|
+
* @param tabId
|
|
38
|
+
* @param pageNo
|
|
39
|
+
* @param limit
|
|
40
|
+
*/
|
|
41
|
+
getTabContent(
|
|
42
|
+
tabId: string,
|
|
43
|
+
pageNo: number,
|
|
44
|
+
limit: number,
|
|
45
|
+
): Promise<QTTabPageData> {
|
|
46
|
+
const replacements = {
|
|
47
|
+
id: tabId,
|
|
48
|
+
packageName: BuildConfig.packageName,
|
|
49
|
+
page: pageNo,
|
|
50
|
+
limit: limit,
|
|
51
|
+
};
|
|
52
|
+
const url = replacePlaceholders(tabContentUrl, replacements);
|
|
53
|
+
return requestManager.get(url);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
getHomePlayUrl(id: string, type: number): Promise<object> {
|
|
57
|
+
const replacements = {
|
|
58
|
+
id: id,
|
|
59
|
+
packageName: BuildConfig.packageName,
|
|
60
|
+
type: type,
|
|
61
|
+
};
|
|
62
|
+
const url = replacePlaceholders(homePlayUrl, replacements);
|
|
63
|
+
return requestManager.get(url);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
getTabBg(tabId): string | undefined {
|
|
67
|
+
return barsDataManager.barsBgUrls.get(tabId);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async get4KSection(
|
|
71
|
+
content4kId: string,
|
|
72
|
+
size: number,
|
|
73
|
+
type: number,
|
|
74
|
+
): Promise<Array<QTWaterfallItem>> {
|
|
75
|
+
const replacements = {
|
|
76
|
+
id: content4kId,
|
|
77
|
+
packageName: BuildConfig.packageName,
|
|
78
|
+
};
|
|
79
|
+
const url = replacePlaceholders(home4KUrl, replacements);
|
|
80
|
+
return requestManager.get(url).then(
|
|
81
|
+
(res: Array<Section4KItem>) => {
|
|
82
|
+
let dealRes = res;
|
|
83
|
+
if (res && res.length > size) {
|
|
84
|
+
dealRes = res.slice(0, size);
|
|
85
|
+
}
|
|
86
|
+
if (type === TabContentItemType.TYPE_WATERFALL_SECTION_SMALL_4K) {
|
|
87
|
+
return buildSmall4KSectionData(dealRes);
|
|
88
|
+
}
|
|
89
|
+
return build4KSectionData(dealRes);
|
|
90
|
+
},
|
|
91
|
+
() => {
|
|
92
|
+
if (type === TabContentItemType.TYPE_WATERFALL_SECTION_SMALL_4K) {
|
|
93
|
+
return buildSmall4KSectionData([]);
|
|
94
|
+
}
|
|
95
|
+
return build4KSectionData([]);
|
|
96
|
+
},
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
getHomeResource(): Promise<object> {
|
|
101
|
+
const url = homeResources + BuildConfig.packageName;
|
|
102
|
+
return requestManager.get(url);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
getHomeRetention(): Promise<any> {
|
|
106
|
+
const url = homeRetention + BuildConfig.packageName;
|
|
107
|
+
return requestManager.get(url);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
getShortVideoSection(
|
|
111
|
+
shortVideoId: string,
|
|
112
|
+
type: number,
|
|
113
|
+
pageNo: number,
|
|
114
|
+
pageSize: number,
|
|
115
|
+
): Promise<Array<QTWaterfallItem>> {
|
|
116
|
+
const replacements = {
|
|
117
|
+
id: shortVideoId,
|
|
118
|
+
packageName: BuildConfig.packageName,
|
|
119
|
+
};
|
|
120
|
+
const url = replacePlaceholders(home4KUrl, replacements);
|
|
121
|
+
return requestManager.get(url).then(
|
|
122
|
+
(res: Array<Section4KItem>) => {
|
|
123
|
+
if (type === TabContentItemType.TYPE_WATERFALL_SECTION_SHORT_SCREEN) {
|
|
124
|
+
return buildShortVideoSectionData(res);
|
|
125
|
+
}
|
|
126
|
+
return buildShortVideoSectionData([]);
|
|
127
|
+
},
|
|
128
|
+
() => {
|
|
129
|
+
if (type === TabContentItemType.TYPE_WATERFALL_SECTION_SHORT_SCREEN) {
|
|
130
|
+
return buildShortVideoSectionData([]);
|
|
131
|
+
}
|
|
132
|
+
return buildShortVideoSectionData([]);
|
|
133
|
+
},
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// 获取历史/收藏列表
|
|
138
|
+
getRecords(
|
|
139
|
+
deviceId: string,
|
|
140
|
+
type: "history" | "favorite",
|
|
141
|
+
page?: number,
|
|
142
|
+
limit?: number,
|
|
143
|
+
): Promise<Records> {
|
|
144
|
+
return requestManager.get(
|
|
145
|
+
replacePlaceholders(historyRecordsUrl, {
|
|
146
|
+
deviceId,
|
|
147
|
+
type,
|
|
148
|
+
page,
|
|
149
|
+
limit,
|
|
150
|
+
sort: "desc",
|
|
151
|
+
}),
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const homeManager = new HomeManager();
|
|
157
|
+
export default homeManager;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { QTTab, QTTabPageData, QTWaterfallItem } from "@quicktvui/quicktvui3";
|
|
2
|
+
|
|
3
|
+
export interface HomeApi {
|
|
4
|
+
/**
|
|
5
|
+
* 获取瀑布流Tab数据
|
|
6
|
+
*/
|
|
7
|
+
getTabList(): Promise<QTTab>;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 获取Tab 背景
|
|
11
|
+
* @param tabId
|
|
12
|
+
*/
|
|
13
|
+
getTabBg(tabId): string | undefined;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 获取首页瀑布流指定Tab对应内容
|
|
17
|
+
* @param tabId tab ID
|
|
18
|
+
* @param pageNo 分页值
|
|
19
|
+
* @param pageSize 每页请求个数
|
|
20
|
+
*/
|
|
21
|
+
getTabContent(
|
|
22
|
+
tabId: string,
|
|
23
|
+
pageNo: number,
|
|
24
|
+
limit: number,
|
|
25
|
+
): Promise<QTTabPageData>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 获取首页背景播放请求地址
|
|
29
|
+
* @param id
|
|
30
|
+
* @param type 1 长视频、2 短视频
|
|
31
|
+
*/
|
|
32
|
+
getHomePlayUrl(id: string, type: number): Promise<object>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 获取 4K 世界数据
|
|
36
|
+
* @param content4kId
|
|
37
|
+
* @param size
|
|
38
|
+
* @param type WATERFALL_SECTION type
|
|
39
|
+
*/
|
|
40
|
+
get4KSection(
|
|
41
|
+
content4kId: string,
|
|
42
|
+
size: number,
|
|
43
|
+
type: number,
|
|
44
|
+
): Promise<Array<QTWaterfallItem>>;
|
|
45
|
+
|
|
46
|
+
getShortVideoSection(
|
|
47
|
+
shortVideoId: string,
|
|
48
|
+
type: number,
|
|
49
|
+
pageNo: number,
|
|
50
|
+
pageSize: number,
|
|
51
|
+
): Promise<Array<QTWaterfallItem>>;
|
|
52
|
+
|
|
53
|
+
getHomeResource(): Promise<object>;
|
|
54
|
+
|
|
55
|
+
getHomeRetention(): Promise<any>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import BuildConfig from "../../../config/build-config";
|
|
2
|
+
|
|
3
|
+
//导航数据接口
|
|
4
|
+
export const tabListUrl =
|
|
5
|
+
BuildConfig.requestBaseUrl + "/home/tabs?packageName="; //tab
|
|
6
|
+
//导航下内容接口
|
|
7
|
+
export const tabContentUrl =
|
|
8
|
+
BuildConfig.requestBaseUrl +
|
|
9
|
+
"/home/tabs/${id}?packageName=${packageName}&page=${page}&limit=${limit}";
|
|
10
|
+
//获取首页视频播放地址接口
|
|
11
|
+
export const homePlayUrl =
|
|
12
|
+
BuildConfig.requestBaseUrl +
|
|
13
|
+
"/streams/${id}?packageName=${packageName}&type=${type}";
|
|
14
|
+
//获取 4K世界 数据
|
|
15
|
+
export const home4KUrl =
|
|
16
|
+
BuildConfig.requestBaseUrl + "/home/tabs/4k/${id}?packageName=${packageName}";
|
|
17
|
+
//获取首页推荐位
|
|
18
|
+
export const homeResources =
|
|
19
|
+
BuildConfig.requestBaseUrl + "/resources?packageName=";
|
|
20
|
+
//获取首页退出挽留
|
|
21
|
+
export const homeRetention =
|
|
22
|
+
BuildConfig.requestBaseUrl + "/retention?packageName=";
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view class="exit-dialog-root-css" :clipChildren="false">
|
|
3
|
+
<!-- 头部信息-->
|
|
4
|
+
<qt-view
|
|
5
|
+
class="exit-dialog-content-top"
|
|
6
|
+
:gradientBackground="{
|
|
7
|
+
colors: ['#142A38', '#402E3C'],
|
|
8
|
+
orientation: 6,
|
|
9
|
+
cornerRadii4: [42, 42, 0, 0],
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
12
|
+
<img class="exit-dialog-content-top-icon" :src="ic_exit_header" />
|
|
13
|
+
<span class="exit-dialog-content-top-tip"
|
|
14
|
+
>别走别走,这些精彩内容别错过~</span
|
|
15
|
+
>
|
|
16
|
+
<qt-view class="exit-dialog-content-top-corner">
|
|
17
|
+
<img class="img-corner" :src="ic_exit_corner" />
|
|
18
|
+
</qt-view>
|
|
19
|
+
</qt-view>
|
|
20
|
+
<!-- 挽留内容-->
|
|
21
|
+
<qt-view class="exit-dialog-content-bottom" :clipChildren="true">
|
|
22
|
+
<qt-list-view
|
|
23
|
+
class="exit-dialog-list-view"
|
|
24
|
+
ref="listRef"
|
|
25
|
+
:padding="'0,60,0,0'"
|
|
26
|
+
:clipPadding="false"
|
|
27
|
+
:clipChildren="false"
|
|
28
|
+
horizontal
|
|
29
|
+
@itemClick="onItemClick"
|
|
30
|
+
>
|
|
31
|
+
<qt-view
|
|
32
|
+
class="exit-dialog-list-item"
|
|
33
|
+
:type="1"
|
|
34
|
+
:clipPadding="false"
|
|
35
|
+
:focusScale="ThemeConfig.placeHolderFocusScale"
|
|
36
|
+
eventClick
|
|
37
|
+
:focusable="true"
|
|
38
|
+
>
|
|
39
|
+
<qt-view
|
|
40
|
+
class="exit-dialog-list-item-img"
|
|
41
|
+
:duplicateParentState="true"
|
|
42
|
+
:enableFocusBorder="true"
|
|
43
|
+
>
|
|
44
|
+
<img
|
|
45
|
+
class="exit-dialog-list-item-img"
|
|
46
|
+
src="${image.normal}"
|
|
47
|
+
:postDelay="100"
|
|
48
|
+
:focusable="false"
|
|
49
|
+
/>
|
|
50
|
+
</qt-view>
|
|
51
|
+
|
|
52
|
+
<qt-text
|
|
53
|
+
class="exit-dialog-list-item-text"
|
|
54
|
+
:fontSize="28"
|
|
55
|
+
:maxLines="2"
|
|
56
|
+
:ellipsizeMode="2"
|
|
57
|
+
:focusable="false"
|
|
58
|
+
text="${title}"
|
|
59
|
+
:duplicateParentState="true"
|
|
60
|
+
/>
|
|
61
|
+
</qt-view>
|
|
62
|
+
</qt-list-view>
|
|
63
|
+
</qt-view>
|
|
64
|
+
<!--按钮-->
|
|
65
|
+
<qt-view class="exit-dialog-btn-root-css">
|
|
66
|
+
<qt-button
|
|
67
|
+
name="exitDialogBtn"
|
|
68
|
+
:marginRight="20"
|
|
69
|
+
:focusable="true"
|
|
70
|
+
:autofocus="true"
|
|
71
|
+
:buttonStyle="{
|
|
72
|
+
width: '330',
|
|
73
|
+
height: '90',
|
|
74
|
+
backgroundColor: '#1C222B',
|
|
75
|
+
focusBackgroundColor: '#FFFFFF',
|
|
76
|
+
borderRadius: '300px',
|
|
77
|
+
}"
|
|
78
|
+
:textStyle="{
|
|
79
|
+
color: 'rgba(255,255,255,0.55)',
|
|
80
|
+
focusColor: '#13161B',
|
|
81
|
+
fontSize: '36px',
|
|
82
|
+
}"
|
|
83
|
+
text="残忍退出"
|
|
84
|
+
@click="onClick('exitDialogBtn')"
|
|
85
|
+
></qt-button>
|
|
86
|
+
<qt-button
|
|
87
|
+
name="lookBtn"
|
|
88
|
+
:marginLeft="20"
|
|
89
|
+
:focusable="true"
|
|
90
|
+
:buttonStyle="{
|
|
91
|
+
width: '330',
|
|
92
|
+
height: '90',
|
|
93
|
+
backgroundColor: '#1C222B',
|
|
94
|
+
focusBackgroundColor: '#FFFFFF',
|
|
95
|
+
borderRadius: '300px',
|
|
96
|
+
}"
|
|
97
|
+
:textStyle="{
|
|
98
|
+
color: 'rgba(255,255,255,0.55)',
|
|
99
|
+
focusColor: '#13161B',
|
|
100
|
+
fontSize: '36px',
|
|
101
|
+
}"
|
|
102
|
+
text="再逛逛"
|
|
103
|
+
@click="onClick('lookBtn')"
|
|
104
|
+
></qt-button>
|
|
105
|
+
</qt-view>
|
|
106
|
+
</qt-view>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
<script lang="ts" setup name="exit-dialog">
|
|
110
|
+
import { ref } from "vue";
|
|
111
|
+
import ic_exit_header from "../../../assets/home/ic_exit_header.png";
|
|
112
|
+
import ic_exit_corner from "../../../assets/home/ic_exit_corner.png";
|
|
113
|
+
import launch from "../../../tools/launch";
|
|
114
|
+
import { buildExitList } from "../adapter/exit/home-exit-adapter";
|
|
115
|
+
import { ExitListItem } from "../adapter/exit/home-exit-imp";
|
|
116
|
+
import homeManager from "../api";
|
|
117
|
+
import ThemeConfig from "../../../config/theme-config";
|
|
118
|
+
|
|
119
|
+
const listRef = ref();
|
|
120
|
+
const onESCreate = () => {
|
|
121
|
+
homeManager.getHomeRetention().then((res: Array<ExitListItem>) => {
|
|
122
|
+
const list = buildExitList(res);
|
|
123
|
+
listRef.value?.init(list);
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const onClick = (name) => {
|
|
128
|
+
switch (name) {
|
|
129
|
+
case "exitDialogBtn":
|
|
130
|
+
launch.launchGo();
|
|
131
|
+
break;
|
|
132
|
+
case "lookBtn":
|
|
133
|
+
launch.launchBack();
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const onItemClick = (e) => {
|
|
138
|
+
const params = e.item.jumpParams;
|
|
139
|
+
launch.launch(params, true);
|
|
140
|
+
};
|
|
141
|
+
const onBackPressed = () => {
|
|
142
|
+
launch.launchBack();
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
defineExpose({ onBackPressed, onESCreate });
|
|
146
|
+
</script>
|
|
147
|
+
|
|
148
|
+
<style lang="scss" src="../scss/exit-dialog.scss"></style>
|