@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,147 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const webpack = require("webpack");
|
|
3
|
+
const ESDynamicImportPlugin = require("@extscreen/es3-dynamic-import-plugin");
|
|
4
|
+
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
5
|
+
const { VueLoaderPlugin } = require("vue-loader");
|
|
6
|
+
const watchPlugin = require("./webpack-watch.ts");
|
|
7
|
+
|
|
8
|
+
const pkg = require("../package.json");
|
|
9
|
+
let cssLoader = "@extscreen/es3-vue-css-loader";
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
mode: "development",
|
|
13
|
+
devtool: "eval-source-map",
|
|
14
|
+
watch: true,
|
|
15
|
+
watchOptions: {
|
|
16
|
+
aggregateTimeout: 1500,
|
|
17
|
+
},
|
|
18
|
+
devServer: {
|
|
19
|
+
// remote debug server address
|
|
20
|
+
remote: {
|
|
21
|
+
protocol: "http",
|
|
22
|
+
host: "127.0.0.1",
|
|
23
|
+
port: 38989,
|
|
24
|
+
},
|
|
25
|
+
// support inspect vue components, store and router, by default is disabled
|
|
26
|
+
vueDevtools: false,
|
|
27
|
+
// support debug multiple project with only one debug server, by default is set false.
|
|
28
|
+
multiple: false,
|
|
29
|
+
// by default hot and liveReload option are true, you could set only liveReload to true
|
|
30
|
+
// to use live reload
|
|
31
|
+
hot: false,
|
|
32
|
+
liveReload: false,
|
|
33
|
+
client: {
|
|
34
|
+
overlay: false,
|
|
35
|
+
},
|
|
36
|
+
devMiddleware: {
|
|
37
|
+
writeToDisk: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
entry: {
|
|
41
|
+
index: ["@hippy/rejection-tracking-polyfill", path.resolve(pkg.main)],
|
|
42
|
+
},
|
|
43
|
+
output: {
|
|
44
|
+
filename: "index.bundle",
|
|
45
|
+
// chunkFilename: '[name].[chunkhash].js',
|
|
46
|
+
strictModuleExceptionHandling: true,
|
|
47
|
+
path: path.resolve("./dist/dev/"),
|
|
48
|
+
globalObject: '(0, eval)("this")',
|
|
49
|
+
assetModuleFilename: "[hash][ext][query]",
|
|
50
|
+
},
|
|
51
|
+
plugins: [
|
|
52
|
+
new VueLoaderPlugin(),
|
|
53
|
+
new watchPlugin({}),
|
|
54
|
+
new webpack.DefinePlugin({
|
|
55
|
+
"process.env": {
|
|
56
|
+
NODE_ENV: JSON.stringify("development"),
|
|
57
|
+
HOST: JSON.stringify(process.env.DEV_HOST || "127.0.0.1"),
|
|
58
|
+
PORT: JSON.stringify(process.env.DEV_PORT || 38989),
|
|
59
|
+
},
|
|
60
|
+
__VUE_OPTIONS_API__: true,
|
|
61
|
+
__VUE_PROD_DEVTOOLS__: false,
|
|
62
|
+
__PLATFORM__: null,
|
|
63
|
+
__DEV__: true,
|
|
64
|
+
}),
|
|
65
|
+
new ESDynamicImportPlugin(),
|
|
66
|
+
new CleanWebpackPlugin(),
|
|
67
|
+
],
|
|
68
|
+
module: {
|
|
69
|
+
rules: [
|
|
70
|
+
{
|
|
71
|
+
test: /\.vue$/,
|
|
72
|
+
use: [
|
|
73
|
+
{
|
|
74
|
+
loader: "vue-loader",
|
|
75
|
+
options: {
|
|
76
|
+
compilerOptions: {
|
|
77
|
+
// disable vue3 dom patch flag,because hippy do not support innerHTML
|
|
78
|
+
hoistStatic: false,
|
|
79
|
+
// whitespace handler, default is 'condense', it can be set 'preserve'
|
|
80
|
+
whitespace: "condense",
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
test: /\.(sc|c)ss$/,
|
|
88
|
+
use: [
|
|
89
|
+
cssLoader,
|
|
90
|
+
{
|
|
91
|
+
loader: "sass-loader",
|
|
92
|
+
options: {
|
|
93
|
+
additionalData: `@use './src/config/public-config.scss' as *;`,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
test: /\.t|js$/,
|
|
100
|
+
use: [
|
|
101
|
+
{
|
|
102
|
+
loader: "esbuild-loader",
|
|
103
|
+
options: {
|
|
104
|
+
target: "es2015",
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
test: /\.(png|jpe?g|gif)$/i,
|
|
111
|
+
type: "asset/resource",
|
|
112
|
+
generator: {
|
|
113
|
+
outputPath: "assets/",
|
|
114
|
+
publicPath: "assets/",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
test: /\.(ts)$/,
|
|
119
|
+
use: [
|
|
120
|
+
{
|
|
121
|
+
loader: "ts-loader",
|
|
122
|
+
options: {
|
|
123
|
+
transpileOnly: true,
|
|
124
|
+
appendTsSuffixTo: [/\.vue$/],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
exclude: /node_modules/,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
test: /\.mjs$/,
|
|
132
|
+
include: /node_modules/,
|
|
133
|
+
type: "javascript/auto",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
resolve: {
|
|
138
|
+
extensions: [".js", ".vue", ".json", ".ts"],
|
|
139
|
+
alias: (() => {
|
|
140
|
+
const aliases = {
|
|
141
|
+
src: path.resolve("./src"),
|
|
142
|
+
quicktvui: path.resolve("../dist/quicktvui"),
|
|
143
|
+
};
|
|
144
|
+
return aliases;
|
|
145
|
+
})(),
|
|
146
|
+
},
|
|
147
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const run = require("./process.ts");
|
|
2
|
+
|
|
3
|
+
class WebpackLifeWatchPlugin {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
this.options = options || {};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
apply(compiler) {
|
|
9
|
+
compiler.hooks.done.tap("WebpackLifeWatchPlugin", (compiler) => {
|
|
10
|
+
setTimeout(() => {
|
|
11
|
+
this.broadcast().then((r) => {});
|
|
12
|
+
}, 2000);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
async broadcast() {
|
|
17
|
+
await run(
|
|
18
|
+
`adb shell am broadcast -a eskit.sdk.action.CODE_CHANGED -f 32`,
|
|
19
|
+
"",
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports = WebpackLifeWatchPlugin;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="app-root-css"
|
|
4
|
+
:gradientBackground="{ colors: bgGradientColor, orientation: 4 }"
|
|
5
|
+
>
|
|
6
|
+
<es-router-view></es-router-view>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import { useESNativeRouter, useESRouter } from "@extscreen/es3-router";
|
|
12
|
+
import { defineComponent } from "vue";
|
|
13
|
+
import { Native } from "@extscreen/es3-vue";
|
|
14
|
+
import {
|
|
15
|
+
ESLogLevel,
|
|
16
|
+
useES,
|
|
17
|
+
useESDevelop,
|
|
18
|
+
useESDevice,
|
|
19
|
+
useESEventBus,
|
|
20
|
+
useESLocalStorage,
|
|
21
|
+
useESLog,
|
|
22
|
+
useESNetwork,
|
|
23
|
+
useESRuntime,
|
|
24
|
+
} from "@extscreen/es3-core";
|
|
25
|
+
import {
|
|
26
|
+
ESPlayerLogLevel,
|
|
27
|
+
useESPlayerLog,
|
|
28
|
+
useESPlayer,
|
|
29
|
+
} from "@extscreen/es3-player";
|
|
30
|
+
import requestManager from "./tools/request";
|
|
31
|
+
import userManager from "./api/user/user-manager";
|
|
32
|
+
|
|
33
|
+
import BuildConfig from "./config/build-config";
|
|
34
|
+
import ThemeConfig from "./config/theme-config";
|
|
35
|
+
import launch from "./tools/launch";
|
|
36
|
+
|
|
37
|
+
export default defineComponent({
|
|
38
|
+
name: "App",
|
|
39
|
+
emits: [],
|
|
40
|
+
setup() {
|
|
41
|
+
//全局渐进背景色
|
|
42
|
+
const bgGradientColor = ThemeConfig.bgGradientColor;
|
|
43
|
+
|
|
44
|
+
const router = useESRouter();
|
|
45
|
+
const nativeRouter = useESNativeRouter();
|
|
46
|
+
const network = useESNetwork();
|
|
47
|
+
const eventBus = useESEventBus();
|
|
48
|
+
const localStore = useESLocalStorage();
|
|
49
|
+
const log = useESLog();
|
|
50
|
+
const playerLog = useESPlayerLog();
|
|
51
|
+
|
|
52
|
+
const es = useES();
|
|
53
|
+
const develop = useESDevelop();
|
|
54
|
+
const device = useESDevice();
|
|
55
|
+
const runtime = useESRuntime();
|
|
56
|
+
const playerManager = useESPlayer();
|
|
57
|
+
|
|
58
|
+
function onESCreate() {
|
|
59
|
+
//添加网络监听
|
|
60
|
+
network.addListener(connectivityChangeListener);
|
|
61
|
+
initESLog();
|
|
62
|
+
initTheme();
|
|
63
|
+
switchDev();
|
|
64
|
+
return (
|
|
65
|
+
Promise.resolve()
|
|
66
|
+
.then(() => requestManager.init(es, develop, device, runtime, log))
|
|
67
|
+
.then(() => userManager.init(eventBus, localStore))
|
|
68
|
+
.then(() => launch.init(router, nativeRouter, develop))
|
|
69
|
+
// .then(() => HistoryApi.init(localStore))
|
|
70
|
+
.then(() => {
|
|
71
|
+
playerManager.init({
|
|
72
|
+
debug: BuildConfig.DEBUG,
|
|
73
|
+
display: {
|
|
74
|
+
screenWidth: device.getScreenWidth(),
|
|
75
|
+
screenHeight: device.getScreenHeight(),
|
|
76
|
+
},
|
|
77
|
+
device: {
|
|
78
|
+
deviceType: runtime.getRuntimeDeviceType() ?? "",
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 初始化整体样式
|
|
87
|
+
*/
|
|
88
|
+
function initTheme() {
|
|
89
|
+
//淡入淡出启用
|
|
90
|
+
Native.callNative("FastListModule", "setFadeEnabled", true);
|
|
91
|
+
//淡入淡出持续时间
|
|
92
|
+
Native.callNative("FastListModule", "setFadeDuration", 500);
|
|
93
|
+
if (ThemeConfig.focusBorderCornerEnable) {
|
|
94
|
+
//设置默认焦点边框圆角
|
|
95
|
+
Native.callNative(
|
|
96
|
+
"FocusModule",
|
|
97
|
+
"setDefaultFocusBorderCorner",
|
|
98
|
+
ThemeConfig.focusBorderCorner,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
if (ThemeConfig.focusBorderColorEnable) {
|
|
102
|
+
//设置默认焦点颜色
|
|
103
|
+
Native.callNative(
|
|
104
|
+
"FocusModule",
|
|
105
|
+
"setDefaultFocusBorderColor",
|
|
106
|
+
ThemeConfig.focusBorderColor,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
if (ThemeConfig.focusBorderWidthEnable) {
|
|
110
|
+
//设置外边框宽度
|
|
111
|
+
Native.callNative(
|
|
112
|
+
"FocusModule",
|
|
113
|
+
"setDefaultFocusBorderWidth",
|
|
114
|
+
ThemeConfig.focusBorderWidth,
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
if (ThemeConfig.focusBorderInsetEnable) {
|
|
118
|
+
//设置焦点边框向内移动距离
|
|
119
|
+
Native.callNative(
|
|
120
|
+
"FocusModule",
|
|
121
|
+
"setFocusBorderInsetValue",
|
|
122
|
+
ThemeConfig.focusBorderInsetValue,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
//设置焦点框是否有内里黑色边框
|
|
126
|
+
Native.callNative(
|
|
127
|
+
"FocusModule",
|
|
128
|
+
"setDefaultFocusInnerBorderEnable",
|
|
129
|
+
ThemeConfig.focusInnerBorderEnable,
|
|
130
|
+
);
|
|
131
|
+
//设置焦点放大倍数
|
|
132
|
+
Native.callNative(
|
|
133
|
+
"FocusModule",
|
|
134
|
+
"setDefaultPlaceholderFocusScale",
|
|
135
|
+
ThemeConfig.placeHolderFocusScale,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* 设置日志级别控制
|
|
141
|
+
*/
|
|
142
|
+
function initESLog() {
|
|
143
|
+
if (BuildConfig.DEBUG) {
|
|
144
|
+
//调试
|
|
145
|
+
log.setMinimumLoggingLevel(ESLogLevel.DEBUG);
|
|
146
|
+
playerLog.setMinimumLoggingLevel(ESPlayerLogLevel.DEBUG);
|
|
147
|
+
} else {
|
|
148
|
+
// 生产
|
|
149
|
+
log.setMinimumLoggingLevel(ESLogLevel.WARN);
|
|
150
|
+
playerLog.setMinimumLoggingLevel(ESPlayerLogLevel.WARN);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 网络监听
|
|
156
|
+
*/
|
|
157
|
+
const connectivityChangeListener = {
|
|
158
|
+
onConnectivityChange() {
|
|
159
|
+
const isNetworkConnected = network.isNetworkConnected();
|
|
160
|
+
if (!isNetworkConnected) {
|
|
161
|
+
router.push({ name: "network" });
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 低端机判断
|
|
168
|
+
*/
|
|
169
|
+
const switchDev = () => {
|
|
170
|
+
let devTotalMemory = device.getDeviceTotalMemory();
|
|
171
|
+
let devAndroidLevel = Number(device.getAndroidAPILevel());
|
|
172
|
+
//内存小于1G 或者 Android版本小于 6.0的走低端机逻辑
|
|
173
|
+
if (devTotalMemory <= 1024 || devAndroidLevel < 23) {
|
|
174
|
+
BuildConfig.isLowEndDev = true;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
function onESDestroy() {
|
|
179
|
+
userManager.offUserEvent();
|
|
180
|
+
network.removeListener(connectivityChangeListener);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return {
|
|
184
|
+
bgGradientColor,
|
|
185
|
+
onESCreate,
|
|
186
|
+
onESDestroy,
|
|
187
|
+
};
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
</script>
|
|
191
|
+
|
|
192
|
+
<style src="./app.scss"></style>
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import myDataManager, {
|
|
2
|
+
getMysection,
|
|
3
|
+
ImySectionRes,
|
|
4
|
+
posterTypes,
|
|
5
|
+
VipInfo,
|
|
6
|
+
} from "../../pages/my/my-data-manager";
|
|
7
|
+
import ic_vip_normal from "../../assets/my/ic_vip_normal.png";
|
|
8
|
+
import ic_collect_normal from "../../assets/my/ic_collect_normal.png";
|
|
9
|
+
import ic_collect_focus from "../../assets/my/ic_collect_focus.png";
|
|
10
|
+
import ic_order_normal from "../../assets/my/ic_order_normal.png";
|
|
11
|
+
import ic_order_focus from "../../assets/my/ic_order_focus.png";
|
|
12
|
+
import requestManager from "../../tools/request";
|
|
13
|
+
import {
|
|
14
|
+
getUserAccountList,
|
|
15
|
+
urlGetAgreementConfig,
|
|
16
|
+
urlGetLongHistory,
|
|
17
|
+
} from "../user/request-url";
|
|
18
|
+
import launch from "../../tools/launch";
|
|
19
|
+
import buildConfig from "../../config/build-config";
|
|
20
|
+
import { UserInfo } from "../user/impl-user";
|
|
21
|
+
import BuildConfig from "../../config/build-config";
|
|
22
|
+
import { getHistorySubTitle } from "../../tools/common";
|
|
23
|
+
|
|
24
|
+
class MyAPi {
|
|
25
|
+
/**
|
|
26
|
+
* 加载初始化数据
|
|
27
|
+
* @param routerParams 当前页面的路由参数对象
|
|
28
|
+
*/
|
|
29
|
+
async initPageData(routerParams: any): Promise<any> {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 获取用户订单信息信息 - 第一个板块展示
|
|
34
|
+
*/
|
|
35
|
+
getCenterInfo(vipInfo: VipInfo, info: UserInfo | null): ImySectionRes {
|
|
36
|
+
return getMysection({
|
|
37
|
+
id: "1getOrderInfo",
|
|
38
|
+
title: "个人中心",
|
|
39
|
+
list: [
|
|
40
|
+
{
|
|
41
|
+
id: "1",
|
|
42
|
+
title: vipInfo.isVip ? "续费会员" : "开通会员",
|
|
43
|
+
img: "file://" + ic_vip_normal,
|
|
44
|
+
_titleFontSize: 36,
|
|
45
|
+
_titleFontColor: "#F3DFB2",
|
|
46
|
+
_iconWidth: 100,
|
|
47
|
+
_iconHeight: 88,
|
|
48
|
+
_layout: { width: 361, height: 314 },
|
|
49
|
+
jumpParams: { type: 0, options: "" },
|
|
50
|
+
tip: vipInfo.isVip ? "有效期至 " + vipInfo.endTime : " ",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "2",
|
|
54
|
+
title: "我的收藏",
|
|
55
|
+
img: "file://" + ic_collect_normal,
|
|
56
|
+
focusedImage: "file://" + ic_collect_focus,
|
|
57
|
+
_titleFontSize: 36,
|
|
58
|
+
_titleFontColor: "#FFFFFF",
|
|
59
|
+
_iconWidth: 100,
|
|
60
|
+
_iconHeight: 88,
|
|
61
|
+
_layout: { width: 361, height: 314 },
|
|
62
|
+
jumpParams: {
|
|
63
|
+
type: 1,
|
|
64
|
+
options: { name: "history", params: { menuIndex: 1 } },
|
|
65
|
+
},
|
|
66
|
+
tip: " ",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "3",
|
|
70
|
+
title: "我的订单",
|
|
71
|
+
img: "file://" + ic_order_normal,
|
|
72
|
+
focusedImage: "file://" + ic_order_focus,
|
|
73
|
+
_titleFontSize: 36,
|
|
74
|
+
_titleFontColor: "#FFFFFF",
|
|
75
|
+
_iconWidth: 100,
|
|
76
|
+
_iconHeight: 88,
|
|
77
|
+
_layout: { width: 361, height: 314 },
|
|
78
|
+
jumpParams: { type: 1, options: "" },
|
|
79
|
+
tip: " ",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
options: {
|
|
83
|
+
posterType: posterTypes.card2,
|
|
84
|
+
blockTitleTop: 80,
|
|
85
|
+
blockTitleBottom: 40,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
async getHistorys(): Promise<ImySectionRes> {
|
|
90
|
+
return getMysection({
|
|
91
|
+
id: "2getHistorys",
|
|
92
|
+
title: "播放记录",
|
|
93
|
+
list: [
|
|
94
|
+
{
|
|
95
|
+
id: "1413407917851279361",
|
|
96
|
+
img: "https://extcdn.hsrc.tv/project/zero/img_test/2021/01/09a8dbc000-c10d-4c4c-9694-106245c6bbfb.jpg",
|
|
97
|
+
_redirectType: 1,
|
|
98
|
+
title: "金龟子",
|
|
99
|
+
subTitle: "",
|
|
100
|
+
_subTitleFontSize: 24,
|
|
101
|
+
_titleFontSize: 30,
|
|
102
|
+
_layout: { height: 230 },
|
|
103
|
+
jumpParams: {
|
|
104
|
+
type: 1,
|
|
105
|
+
options: {
|
|
106
|
+
name: "series_view",
|
|
107
|
+
params: {
|
|
108
|
+
mediaId: "1413407917851279361",
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
options: {
|
|
115
|
+
columns: 4,
|
|
116
|
+
space: 35,
|
|
117
|
+
posterType: posterTypes.poster,
|
|
118
|
+
itemPadding: 8,
|
|
119
|
+
blockTitleBottom: 40,
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* 获取更多板块信息
|
|
126
|
+
*/
|
|
127
|
+
async getMoreList(agreementConfigList: any[]): Promise<ImySectionRes[]> {
|
|
128
|
+
console.log("agreementConfigList:" + JSON.stringify(agreementConfigList));
|
|
129
|
+
return [
|
|
130
|
+
getMysection({
|
|
131
|
+
id: "3getMoreList",
|
|
132
|
+
title: "其他设置",
|
|
133
|
+
list: [
|
|
134
|
+
{
|
|
135
|
+
id: "0",
|
|
136
|
+
title: "相关信息",
|
|
137
|
+
_titleFontSize: 36,
|
|
138
|
+
_layout: { width: 410, height: 120 },
|
|
139
|
+
jumpParams: { type: 1, options: { name: "device_info" } },
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: "1",
|
|
143
|
+
title: "联系我们",
|
|
144
|
+
_titleFontSize: 36,
|
|
145
|
+
_layout: { width: 410, height: 120 },
|
|
146
|
+
jumpParams: { type: 1, options: "" },
|
|
147
|
+
},
|
|
148
|
+
...agreementConfigList.map((e) => ({
|
|
149
|
+
id: e.code,
|
|
150
|
+
title: e.name,
|
|
151
|
+
_titleFontSize: 36,
|
|
152
|
+
_layout: { width: 410, height: 120 },
|
|
153
|
+
jumpParams: {
|
|
154
|
+
type: 1,
|
|
155
|
+
options: {
|
|
156
|
+
name: "load_web_view",
|
|
157
|
+
params: {
|
|
158
|
+
html: e.url,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
})),
|
|
163
|
+
],
|
|
164
|
+
options: {
|
|
165
|
+
posterType: posterTypes.info,
|
|
166
|
+
columns: 4, // 指定 columns 创建板块数据
|
|
167
|
+
space: 40,
|
|
168
|
+
blockTitleBottom: 40,
|
|
169
|
+
},
|
|
170
|
+
}),
|
|
171
|
+
];
|
|
172
|
+
}
|
|
173
|
+
//获取用户Vip信息
|
|
174
|
+
async getVipInfo(): Promise<VipInfo> {
|
|
175
|
+
return Promise.resolve({
|
|
176
|
+
isVip: false,
|
|
177
|
+
endTime: "00:00:00",
|
|
178
|
+
endDateTime: "20250410",
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
async getMyHistory() {
|
|
182
|
+
return requestManager
|
|
183
|
+
.post(urlGetLongHistory, { param: { pageSize: 3 } })
|
|
184
|
+
.then((historyList: any) => {
|
|
185
|
+
return historyList;
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
async getAgreementConfig() {
|
|
189
|
+
return requestManager
|
|
190
|
+
.post(urlGetAgreementConfig, {})
|
|
191
|
+
.then((agreementConfig: any) => {
|
|
192
|
+
return agreementConfig;
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
const myApi = new MyAPi();
|
|
198
|
+
export default myApi;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export const USER_TOKEN_KEY = "userTokenKey";
|
|
2
|
+
export const USER_INFO_CHANGED_EVENT = "onUserInfoChanged";
|
|
3
|
+
export const PAY_SUCCESS_EVENT = "onPaySuccess";
|
|
4
|
+
export const PAY_SUCCESS_ALL_EVENT = "onUserPaySuccessUpdate";
|
|
5
|
+
export const USER_INFO_ALL_CHANGED_EVENT = "onUserLoginStatusChanged";
|
|
6
|
+
type fn_user_changed = (user: UserInfo | null) => void;
|
|
7
|
+
type fn_pay_success = () => void;
|
|
8
|
+
|
|
9
|
+
export interface ShareUserInfo {
|
|
10
|
+
openId: string;
|
|
11
|
+
nickname: string;
|
|
12
|
+
headImage: string;
|
|
13
|
+
sex: string;
|
|
14
|
+
lastLonginMac: string;
|
|
15
|
+
sourcePackageName: string;
|
|
16
|
+
userToken: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 用户类
|
|
21
|
+
*/
|
|
22
|
+
export interface UserInfo {
|
|
23
|
+
userId?: string;
|
|
24
|
+
userToken?: string;
|
|
25
|
+
headImage?: string;
|
|
26
|
+
nickname?: string;
|
|
27
|
+
userIcon?: string;
|
|
28
|
+
needAuthPhone?: boolean;
|
|
29
|
+
[prop: string]: any;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface JumpPayParams {
|
|
33
|
+
fromId?: string;
|
|
34
|
+
fromName?: string;
|
|
35
|
+
//详情页传
|
|
36
|
+
assetId?: string;
|
|
37
|
+
//详情页传
|
|
38
|
+
assetName?: string;
|
|
39
|
+
//是否绘本 详情页传
|
|
40
|
+
isPicBook?: boolean;
|
|
41
|
+
//内容聚合页传
|
|
42
|
+
productId?: string;
|
|
43
|
+
//积分 是否直接关闭
|
|
44
|
+
isDirectFinish?: boolean;
|
|
45
|
+
//积分 是否展示订购信息
|
|
46
|
+
isShowOrderBtn?: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface UserChangeListener {
|
|
50
|
+
onUserChanged?: fn_user_changed;
|
|
51
|
+
onPaySuccess?: fn_pay_success;
|
|
52
|
+
}
|