@quicktvui/ai 1.0.9 → 1.1.1
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/README.md +31 -0
- package/USAGE.md +22 -7
- package/package.json +1 -1
- package/rules/.clinerules +1 -0
- package/rules/.cursorrules +1 -0
- package/rules/.docs/zh-CN/guide/ai/ai-assistant.md +16 -6
- 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,106 @@
|
|
|
1
|
+
$world-4k-item-width: 1413px;
|
|
2
|
+
|
|
3
|
+
.world-4k-section-root-css {
|
|
4
|
+
position: absolute;
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.world-4k-section-list-css {
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.world-4k-item-root-css {
|
|
13
|
+
width: $world-4k-item-width;
|
|
14
|
+
height: 860px;
|
|
15
|
+
padding-bottom: 65px;
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
justify-content: flex-end;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.world-4k-item-bg {
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: $world-4k-item-width;
|
|
23
|
+
height: 795px;
|
|
24
|
+
border-radius: $theme-img-border;
|
|
25
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.world-4k-item-focused-bg {
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: 1920px;
|
|
31
|
+
height: 592px;
|
|
32
|
+
bottom: -0.01px;
|
|
33
|
+
left: -253.5px;
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.world-4k-item-title {
|
|
38
|
+
width: 1300px;
|
|
39
|
+
margin-left: 60px;
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
align-items: center;
|
|
42
|
+
background-color: transparent;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.world-4k-item-main-title {
|
|
46
|
+
height: 60px;
|
|
47
|
+
margin-bottom: 20px;
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.world-4k-item-txt-icon {
|
|
52
|
+
width: 35px;
|
|
53
|
+
height: 34px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.world-4k-item-txt {
|
|
57
|
+
width: 1200px;
|
|
58
|
+
height: 60px;
|
|
59
|
+
margin-left: 12px;
|
|
60
|
+
color: #EDEDED;
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.world-4k-item-sub-title {
|
|
65
|
+
margin-bottom: 26px;
|
|
66
|
+
height: 40px;
|
|
67
|
+
background-color: transparent;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.world-4k-item-sub-txt-icon {
|
|
71
|
+
width: 91px;
|
|
72
|
+
height: 33px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.world-4k-item-sub-txt {
|
|
76
|
+
width: 1200px;
|
|
77
|
+
height: 40px;
|
|
78
|
+
margin-left: 18px;
|
|
79
|
+
color: #EDEDED;
|
|
80
|
+
}
|
|
81
|
+
.world-4k-item-btn {
|
|
82
|
+
width: 219px;
|
|
83
|
+
height:72px;
|
|
84
|
+
margin-left: 60px;
|
|
85
|
+
margin-bottom: 60px;
|
|
86
|
+
border-radius: 45px;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
background-color: rgba(255,255,255,0.2);
|
|
89
|
+
focus-background-color: #FFFFFF
|
|
90
|
+
}
|
|
91
|
+
.world-4k-item-btn-icon {
|
|
92
|
+
position: absolute;
|
|
93
|
+
width: 25px;
|
|
94
|
+
height:29px;
|
|
95
|
+
margin-left: 30px;
|
|
96
|
+
margin-top: 21px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.world-4k-item-btn-txt {
|
|
100
|
+
position: absolute;
|
|
101
|
+
width: 120px;
|
|
102
|
+
height: 72px;
|
|
103
|
+
margin-left: 70px;
|
|
104
|
+
color: #EDEDED;
|
|
105
|
+
focus-color:black;
|
|
106
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view class="introduction-root">
|
|
3
|
+
<qt-column class="introduction">
|
|
4
|
+
<img class="introduction-bg" :src="introductionBg" :focusable="false" />
|
|
5
|
+
<!-- 标题 -->
|
|
6
|
+
<qt-text
|
|
7
|
+
class="title"
|
|
8
|
+
:duplicateParentState="true"
|
|
9
|
+
:focusable="false"
|
|
10
|
+
:fontSize="60"
|
|
11
|
+
:ellipsizeMode="2"
|
|
12
|
+
enablePostTask
|
|
13
|
+
postDelay="200"
|
|
14
|
+
:lines="1"
|
|
15
|
+
typeFace="bold"
|
|
16
|
+
gravity="left|top"
|
|
17
|
+
:text="title"
|
|
18
|
+
/>
|
|
19
|
+
<!-- 底部介绍 -->
|
|
20
|
+
<qt-column
|
|
21
|
+
class="introduction-box"
|
|
22
|
+
:clipChildren="false"
|
|
23
|
+
:focusScale="1.03"
|
|
24
|
+
>
|
|
25
|
+
<!-- 第一行 -->
|
|
26
|
+
<qt-row :duplicateParentState="true">
|
|
27
|
+
<div
|
|
28
|
+
class="item-vip"
|
|
29
|
+
v-if="!isFree"
|
|
30
|
+
:gradientBackground="{
|
|
31
|
+
colors: ['#A06419', '#CDA048'],
|
|
32
|
+
orientation: 6,
|
|
33
|
+
cornerRadii4: [4, 4, 4, 4],
|
|
34
|
+
}"
|
|
35
|
+
>
|
|
36
|
+
<qt-text
|
|
37
|
+
class="item-vip-text"
|
|
38
|
+
:duplicateParentState="true"
|
|
39
|
+
:focusable="false"
|
|
40
|
+
:textSize="24"
|
|
41
|
+
:ellipsizeMode="2"
|
|
42
|
+
enablePostTask
|
|
43
|
+
postDelay="200"
|
|
44
|
+
:lines="1"
|
|
45
|
+
gravity="center"
|
|
46
|
+
text="影视VIP"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="item-score" v-if="score">
|
|
50
|
+
<text-view
|
|
51
|
+
class="item-score-text"
|
|
52
|
+
:duplicateParentState="true"
|
|
53
|
+
:focusable="false"
|
|
54
|
+
:textSize="24"
|
|
55
|
+
:ellipsizeMode="2"
|
|
56
|
+
enablePostTask
|
|
57
|
+
postDelay="200"
|
|
58
|
+
:lines="1"
|
|
59
|
+
gravity="center"
|
|
60
|
+
:text="score"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
</qt-row>
|
|
64
|
+
<!-- 第二行 -->
|
|
65
|
+
<qt-text
|
|
66
|
+
class="item-tag-text"
|
|
67
|
+
:duplicateParentState="true"
|
|
68
|
+
:focusable="false"
|
|
69
|
+
:fontSize="24"
|
|
70
|
+
:ellipsizeMode="2"
|
|
71
|
+
enablePostTask
|
|
72
|
+
postDelay="200"
|
|
73
|
+
:lines="1"
|
|
74
|
+
gravity="left|center"
|
|
75
|
+
:text="tag"
|
|
76
|
+
/>
|
|
77
|
+
<!-- 第三行 -->
|
|
78
|
+
<qt-text
|
|
79
|
+
v-if="actors"
|
|
80
|
+
class="item-actors-text"
|
|
81
|
+
:duplicateParentState="true"
|
|
82
|
+
:focusable="false"
|
|
83
|
+
:textSize="24"
|
|
84
|
+
:ellipsizeMode="2"
|
|
85
|
+
enablePostTask
|
|
86
|
+
postDelay="200"
|
|
87
|
+
:lines="1"
|
|
88
|
+
gravity="left|center"
|
|
89
|
+
:text="actors"
|
|
90
|
+
/>
|
|
91
|
+
<!-- 第四行 -->
|
|
92
|
+
<qt-text
|
|
93
|
+
class="item-desc-text"
|
|
94
|
+
:duplicateParentState="true"
|
|
95
|
+
:focusable="false"
|
|
96
|
+
:fontSize="24"
|
|
97
|
+
:ellipsizeMode="2"
|
|
98
|
+
enablePostTask
|
|
99
|
+
postDelay="200"
|
|
100
|
+
:lines="10"
|
|
101
|
+
:lineHeight="42"
|
|
102
|
+
gravity="left"
|
|
103
|
+
:text="description"
|
|
104
|
+
/>
|
|
105
|
+
</qt-column>
|
|
106
|
+
</qt-column>
|
|
107
|
+
</qt-view>
|
|
108
|
+
</template>
|
|
109
|
+
|
|
110
|
+
<script setup lang="ts" name="introduction">
|
|
111
|
+
import { ref } from "vue";
|
|
112
|
+
import { IMedia } from "../detail/adapter/interface";
|
|
113
|
+
import introductionBg from "../../assets/detail/ic_introduction_bg.png";
|
|
114
|
+
let title = ref<string>("");
|
|
115
|
+
let score = ref<string>("");
|
|
116
|
+
let tag = ref<string>("");
|
|
117
|
+
let actors = ref<string>("");
|
|
118
|
+
let description = ref<string>("");
|
|
119
|
+
let isFree = ref<boolean>(true);
|
|
120
|
+
let media: IMedia;
|
|
121
|
+
|
|
122
|
+
const onESCreate = (params: IMedia) => {
|
|
123
|
+
if (!params) return;
|
|
124
|
+
media = params;
|
|
125
|
+
isFree.value = media.vipType == "0" ? true : false;
|
|
126
|
+
title.value = media.title;
|
|
127
|
+
score.value = media.score;
|
|
128
|
+
tag.value = media.tags;
|
|
129
|
+
actors.value = media.actors;
|
|
130
|
+
description.value = media.description;
|
|
131
|
+
};
|
|
132
|
+
defineExpose({
|
|
133
|
+
onESCreate,
|
|
134
|
+
});
|
|
135
|
+
</script>
|
|
136
|
+
<style lang="scss" scoped>
|
|
137
|
+
.introduction-root {
|
|
138
|
+
width: 1920px;
|
|
139
|
+
height: 1080px;
|
|
140
|
+
background-color: transparent;
|
|
141
|
+
.introduction {
|
|
142
|
+
width: 935px;
|
|
143
|
+
height: 1080px;
|
|
144
|
+
background-color: #0e0e0e;
|
|
145
|
+
position: absolute;
|
|
146
|
+
right: 0px;
|
|
147
|
+
.introduction-bg {
|
|
148
|
+
width: 1012px;
|
|
149
|
+
height: 1080px;
|
|
150
|
+
background-color: transparent;
|
|
151
|
+
position: absolute;
|
|
152
|
+
right: 20px;
|
|
153
|
+
}
|
|
154
|
+
.title {
|
|
155
|
+
width: 768px;
|
|
156
|
+
height: 90px;
|
|
157
|
+
background-color: transparent;
|
|
158
|
+
margin-top: 112px;
|
|
159
|
+
margin-left: 100px;
|
|
160
|
+
color: white;
|
|
161
|
+
}
|
|
162
|
+
.introduction-box {
|
|
163
|
+
width: 768px;
|
|
164
|
+
height: 800px;
|
|
165
|
+
margin-left: 100px;
|
|
166
|
+
margin-top: 10px;
|
|
167
|
+
padding-bottom: 10px;
|
|
168
|
+
background-color: transparent;
|
|
169
|
+
.item-vip {
|
|
170
|
+
margin-right: 20px;
|
|
171
|
+
border-color: #f7b500;
|
|
172
|
+
align-items: center;
|
|
173
|
+
display: flex;
|
|
174
|
+
height: 36px;
|
|
175
|
+
width: 100px;
|
|
176
|
+
flex-direction: row;
|
|
177
|
+
justify-content: center;
|
|
178
|
+
}
|
|
179
|
+
.item-vip-text {
|
|
180
|
+
font-size: 24px;
|
|
181
|
+
color: #ffffff;
|
|
182
|
+
margin-left: 12px;
|
|
183
|
+
margin-right: 12px;
|
|
184
|
+
height: 36px;
|
|
185
|
+
width: 100px;
|
|
186
|
+
}
|
|
187
|
+
.item-score {
|
|
188
|
+
border-radius: 4px;
|
|
189
|
+
margin-right: 20px;
|
|
190
|
+
border-color: #ffffff;
|
|
191
|
+
border-width: 1px;
|
|
192
|
+
align-items: center;
|
|
193
|
+
display: flex;
|
|
194
|
+
width: 60px;
|
|
195
|
+
height: 32px;
|
|
196
|
+
flex-direction: row;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
background-color: rgba(255, 255, 255, 0.06);
|
|
199
|
+
}
|
|
200
|
+
.item-score-text {
|
|
201
|
+
top: -1px;
|
|
202
|
+
font-size: 24px;
|
|
203
|
+
color: #ffffff;
|
|
204
|
+
width: 60px;
|
|
205
|
+
height: 32px;
|
|
206
|
+
}
|
|
207
|
+
.item-tag-text {
|
|
208
|
+
color: rgba(255, 255, 255, 0.6);
|
|
209
|
+
height: 34px;
|
|
210
|
+
width: 668px;
|
|
211
|
+
margin-top: 15px;
|
|
212
|
+
margin-bottom: 8px;
|
|
213
|
+
}
|
|
214
|
+
.item-actors-text {
|
|
215
|
+
height: 28px;
|
|
216
|
+
width: 814px;
|
|
217
|
+
color: rgba(255, 255, 255, 0.6);
|
|
218
|
+
}
|
|
219
|
+
.item-desc-text {
|
|
220
|
+
color: rgba(255, 255, 255, 0.6);
|
|
221
|
+
width: 768px;
|
|
222
|
+
height: 700px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view class="menu-body-list-item" :type="3" :focusable="true" eventFocus>
|
|
3
|
+
<qt-view
|
|
4
|
+
style="
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
"
|
|
9
|
+
:focusable="false"
|
|
10
|
+
duplicateParentState
|
|
11
|
+
>
|
|
12
|
+
<qt-image
|
|
13
|
+
class="menu-body-list-item-icon"
|
|
14
|
+
:src="icMine"
|
|
15
|
+
:postDelay="100"
|
|
16
|
+
:focusable="false"
|
|
17
|
+
></qt-image>
|
|
18
|
+
<qt-text
|
|
19
|
+
class="menu-body-list-item-text"
|
|
20
|
+
style="width: 144px"
|
|
21
|
+
text="${name}"
|
|
22
|
+
typeface="bold"
|
|
23
|
+
gravity="center"
|
|
24
|
+
:focusable="false"
|
|
25
|
+
duplicateParentState
|
|
26
|
+
></qt-text>
|
|
27
|
+
</qt-view>
|
|
28
|
+
</qt-view>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup lang="ts">
|
|
32
|
+
import icMine from "../../../../assets/live/ic-mine.png";
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style scoped src="../../css/menu.css"></style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view class="menu-body-list-item" :type="1" :focusable="true" eventFocus>
|
|
3
|
+
<qt-image
|
|
4
|
+
class="menu-body-list-item-img"
|
|
5
|
+
:src="icService"
|
|
6
|
+
:postDelay="100"
|
|
7
|
+
:focusable="false"
|
|
8
|
+
></qt-image>
|
|
9
|
+
</qt-view>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup lang="ts">
|
|
13
|
+
import icService from "../../../../assets/live/ic-service.png";
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<style scoped src="../../css/menu.css"></style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view class="menu-body-list-item" :type="2" :focusable="true" eventFocus>
|
|
3
|
+
<qt-text
|
|
4
|
+
class="menu-body-list-item-text"
|
|
5
|
+
text="${name}"
|
|
6
|
+
typeface="bold"
|
|
7
|
+
gravity="center"
|
|
8
|
+
:focusable="false"
|
|
9
|
+
:lines="1"
|
|
10
|
+
:ellipsizeMode="2"
|
|
11
|
+
duplicateParentState
|
|
12
|
+
></qt-text>
|
|
13
|
+
</qt-view>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style scoped src="../../css/menu.css"></style>
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view class="menu">
|
|
3
|
+
<!-- 菜单 -->
|
|
4
|
+
<qt-view class="menu-body">
|
|
5
|
+
<!-- 一级菜单 -->
|
|
6
|
+
<qt-list-view
|
|
7
|
+
class="menu-body-list"
|
|
8
|
+
style="width: 309px"
|
|
9
|
+
ref="firstListRef"
|
|
10
|
+
padding="52,72,17,0"
|
|
11
|
+
:focusable="false"
|
|
12
|
+
:skipRequestFocus="true"
|
|
13
|
+
:singleSelectPosition="autoselectPosition"
|
|
14
|
+
:blockFocusDirections="['up', 'down']"
|
|
15
|
+
@item-focused="onFirstListFocus"
|
|
16
|
+
>
|
|
17
|
+
<!-- 图片 -->
|
|
18
|
+
<firstListItemImg />
|
|
19
|
+
<!-- 文字 -->
|
|
20
|
+
<firstListItemText />
|
|
21
|
+
<!-- 图标、文字 -->
|
|
22
|
+
<firstListItemIconText />
|
|
23
|
+
</qt-list-view>
|
|
24
|
+
|
|
25
|
+
<!-- 二级菜单 -->
|
|
26
|
+
<qt-list-view
|
|
27
|
+
:visibility="showSecondList ? 'visible' : 'invisible'"
|
|
28
|
+
class="menu-body-list"
|
|
29
|
+
style="width: 400px"
|
|
30
|
+
name="secondList"
|
|
31
|
+
ref="secondListRef"
|
|
32
|
+
padding="0,72,0,0"
|
|
33
|
+
:skipRequestFocus="true"
|
|
34
|
+
:enableSelectOnFocus="false"
|
|
35
|
+
:autofocusPosition="autofocusPosition"
|
|
36
|
+
:autoscroll="[secondListScrollPos, 432]"
|
|
37
|
+
:singleSelectPosition="secondListSelectPos"
|
|
38
|
+
:blockFocusDirections="['up', 'down']"
|
|
39
|
+
@item-focused="onSecondListFocus"
|
|
40
|
+
@item-click="onSecondListClick"
|
|
41
|
+
>
|
|
42
|
+
<!-- 综合 -->
|
|
43
|
+
<secondListItem />
|
|
44
|
+
</qt-list-view>
|
|
45
|
+
|
|
46
|
+
<!-- 三级菜单 -->
|
|
47
|
+
<qt-view v-if="showThirdList">
|
|
48
|
+
<!-- 数据列表 -->
|
|
49
|
+
<qt-list-view
|
|
50
|
+
v-if="thirdListData"
|
|
51
|
+
class="menu-body-list"
|
|
52
|
+
style="width: 417px"
|
|
53
|
+
ref="thirdListRef"
|
|
54
|
+
padding="17,72,0,0"
|
|
55
|
+
:enableSelectOnFocus="false"
|
|
56
|
+
:blockFocusDirections="['up', 'down']"
|
|
57
|
+
:nextFocusName="{ left: 'secondList' }"
|
|
58
|
+
@item-focused="onThirdListFocus"
|
|
59
|
+
@item-click="onThirdListClick"
|
|
60
|
+
>
|
|
61
|
+
<!-- 综合 -->
|
|
62
|
+
<thirdListItem />
|
|
63
|
+
</qt-list-view>
|
|
64
|
+
|
|
65
|
+
<!-- 暂无数据 -->
|
|
66
|
+
<qt-view
|
|
67
|
+
v-else
|
|
68
|
+
class="menu-body-list"
|
|
69
|
+
style="width: 417px; align-items: center; justify-content: center"
|
|
70
|
+
>
|
|
71
|
+
<qt-text
|
|
72
|
+
class="menu-body-list-nodata"
|
|
73
|
+
text="暂无节目信息"
|
|
74
|
+
gravity="center"
|
|
75
|
+
></qt-text>
|
|
76
|
+
</qt-view>
|
|
77
|
+
</qt-view>
|
|
78
|
+
|
|
79
|
+
<!-- 向右扩展 -->
|
|
80
|
+
<qt-view v-show="showSecondList && !showThirdList" class="menu-body-ext">
|
|
81
|
+
<qt-image
|
|
82
|
+
style="width: 132px; height: 1080px"
|
|
83
|
+
:src="icMenuExt"
|
|
84
|
+
:focusable="false"
|
|
85
|
+
></qt-image>
|
|
86
|
+
<qt-image
|
|
87
|
+
style="
|
|
88
|
+
width: 24px;
|
|
89
|
+
height: 24px;
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 528px;
|
|
92
|
+
right: 8px;
|
|
93
|
+
"
|
|
94
|
+
:src="icMenuExtArrow"
|
|
95
|
+
:focusable="false"
|
|
96
|
+
></qt-image>
|
|
97
|
+
<qt-text
|
|
98
|
+
style="
|
|
99
|
+
width: 36px;
|
|
100
|
+
height: 184px;
|
|
101
|
+
color: #ffffff;
|
|
102
|
+
font-size: 36px;
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 448px;
|
|
105
|
+
left: 28px;
|
|
106
|
+
"
|
|
107
|
+
text="节目信息"
|
|
108
|
+
:focusable="false"
|
|
109
|
+
></qt-text>
|
|
110
|
+
</qt-view>
|
|
111
|
+
</qt-view>
|
|
112
|
+
|
|
113
|
+
<!-- 返回提示 -->
|
|
114
|
+
<qt-view class="menu-back">
|
|
115
|
+
<span>按</span>
|
|
116
|
+
<img class="menu-back-icon" :src="icBack" :focusable="false" />
|
|
117
|
+
<span>键可全屏观看</span>
|
|
118
|
+
</qt-view>
|
|
119
|
+
</qt-view>
|
|
120
|
+
</template>
|
|
121
|
+
|
|
122
|
+
<script setup lang="ts" name="channelMenu">
|
|
123
|
+
import { onMounted, onUnmounted, ref } from "vue";
|
|
124
|
+
import {
|
|
125
|
+
useESToast,
|
|
126
|
+
ESKeyEvent,
|
|
127
|
+
ESKeyCode,
|
|
128
|
+
useESEventBus,
|
|
129
|
+
} from "@extscreen/es3-core";
|
|
130
|
+
import { QTIListView, QTListViewItem } from "@quicktvui/quicktvui3";
|
|
131
|
+
import firstListItemImg from "./first-list-item-img.vue";
|
|
132
|
+
import firstListItemText from "./first-list-item-text.vue";
|
|
133
|
+
import firstListItemIconText from "./first-list-item-icon-text.vue";
|
|
134
|
+
import secondListItem from "./second-list-item.vue";
|
|
135
|
+
import thirdListItem from "./third-list-item.vue";
|
|
136
|
+
import icMenuExt from "../../../../assets/live/ic-menu-ext.png";
|
|
137
|
+
import icMenuExtArrow from "../../../../assets/live/ic-menu-ext-arrow.png";
|
|
138
|
+
import icBack from "../../../../assets/live/ic-back.png";
|
|
139
|
+
|
|
140
|
+
const emits = defineEmits(["loadPrograms", "playMediaByIndex", "closeMenu"]);
|
|
141
|
+
|
|
142
|
+
const toast = useESToast();
|
|
143
|
+
const eventBus = useESEventBus();
|
|
144
|
+
onMounted(() => {
|
|
145
|
+
eventBus.on("setPlayIndex", (index: number) => {
|
|
146
|
+
secondListData.forEach((el, elIndex) => {
|
|
147
|
+
if (elIndex === index) {
|
|
148
|
+
el.isPlaying = true;
|
|
149
|
+
autoselectPosition.value = el.categoryIndex;
|
|
150
|
+
autofocusPosition.value = elIndex;
|
|
151
|
+
secondListSelectPos.value = elIndex;
|
|
152
|
+
} else {
|
|
153
|
+
el.isPlaying = false;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
onUnmounted(() => {
|
|
159
|
+
eventBus.off("setPlayIndex");
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
const autoselectPosition = ref(1);
|
|
163
|
+
const autofocusPosition = ref(0);
|
|
164
|
+
const firstListRef = ref<QTIListView>();
|
|
165
|
+
const secondListRef = ref<QTIListView>();
|
|
166
|
+
const secondListScrollPos = ref(0);
|
|
167
|
+
const secondListSelectPos = ref(0);
|
|
168
|
+
const thirdListRef = ref<QTIListView>();
|
|
169
|
+
|
|
170
|
+
const showSecondList = ref(true);
|
|
171
|
+
const showThirdList = ref(false);
|
|
172
|
+
|
|
173
|
+
let secondListData: QTListViewItem[] = [];
|
|
174
|
+
let thirdListData: QTListViewItem[] = [];
|
|
175
|
+
|
|
176
|
+
function init(params: {
|
|
177
|
+
categories: QTListViewItem[];
|
|
178
|
+
channels: QTListViewItem[];
|
|
179
|
+
}) {
|
|
180
|
+
firstListRef.value?.init(params.categories);
|
|
181
|
+
secondListData = secondListRef.value?.init(
|
|
182
|
+
params.channels,
|
|
183
|
+
) as QTListViewItem[];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
let closeTimer: any = -1;
|
|
187
|
+
function close() {
|
|
188
|
+
clearTimeout(closeTimer);
|
|
189
|
+
closeTimer = setTimeout(() => emits("closeMenu"), 8000);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function onFirstListFocus(e) {
|
|
193
|
+
if (e.isFocused) {
|
|
194
|
+
close();
|
|
195
|
+
showThirdList.value = false;
|
|
196
|
+
switch (e.item.type) {
|
|
197
|
+
case 1:
|
|
198
|
+
case 3:
|
|
199
|
+
showSecondList.value = false;
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
202
|
+
showSecondList.value = true;
|
|
203
|
+
secondListScrollPos.value = e.item.startIndex;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
let secondListActive = false;
|
|
209
|
+
let curChannel: QTListViewItem = {} as QTListViewItem;
|
|
210
|
+
let secondListTimer: any = -1;
|
|
211
|
+
function onSecondListFocus(e) {
|
|
212
|
+
close();
|
|
213
|
+
clearTimeout(secondListTimer);
|
|
214
|
+
secondListTimer = setTimeout(() => {
|
|
215
|
+
if (e.isFocused) {
|
|
216
|
+
secondListActive = true;
|
|
217
|
+
curChannel = e.item;
|
|
218
|
+
firstListRef.value?.setItemSelected(curChannel.categoryIndex, true);
|
|
219
|
+
showThirdList.value = false;
|
|
220
|
+
} else {
|
|
221
|
+
secondListActive = false;
|
|
222
|
+
}
|
|
223
|
+
}, 300);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function onSecondListClick(e) {
|
|
227
|
+
emits("playMediaByIndex", e.index);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function onThirdListFocus(e) {
|
|
231
|
+
if (e.isFocused) close();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function onThirdListClick(e) {
|
|
235
|
+
if (e.item.isPlaying) {
|
|
236
|
+
emits("closeMenu");
|
|
237
|
+
} else {
|
|
238
|
+
toast.showToast("节目尚未开始,请您稍后再看");
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function onKeyDown(keyEvent: ESKeyEvent) {
|
|
243
|
+
switch (keyEvent.keyCode) {
|
|
244
|
+
case ESKeyCode.ES_KEYCODE_DPAD_RIGHT:
|
|
245
|
+
if (secondListActive && !showThirdList.value) {
|
|
246
|
+
emits("loadPrograms", curChannel.id, (programs: QTListViewItem[]) => {
|
|
247
|
+
thirdListData = programs;
|
|
248
|
+
});
|
|
249
|
+
showThirdList.value = true;
|
|
250
|
+
if (thirdListData) {
|
|
251
|
+
setTimeout(() => thirdListRef.value?.init(thirdListData), 300);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function onBackPressed() {
|
|
259
|
+
showSecondList.value = true;
|
|
260
|
+
showThirdList.value = false;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
defineExpose({ init, onKeyDown, onBackPressed });
|
|
264
|
+
</script>
|
|
265
|
+
|
|
266
|
+
<style scoped src="../../css/menu.css"></style>
|