Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: ref |> 适配新版本900 IDE feat: 19239 直播跳转频道
Showing
24 changed files
with
48 additions
and
51 deletions
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdconstant", | 5 | + "name": "wdConstant", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdjsbridge", | 5 | + "name": "wdJsBridge", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdkit", | 5 | + "name": "wdKit", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdnetwork", | 5 | + "name": "wdNetwork", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdrouter", | 5 | + "name": "wdRouter", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdwebcomponent", | 5 | + "name": "wdWebComponent", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdbean", | 5 | + "name": "wdBean", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdcomponent", | 5 | + "name": "wdComponent", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -30,7 +30,7 @@ import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | @@ -30,7 +30,7 @@ import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | ||
| 30 | import { PageRepository } from '../repository/PageRepository'; | 30 | import { PageRepository } from '../repository/PageRepository'; |
| 31 | import { OperRowListView } from './view/OperRowListView'; | 31 | import { OperRowListView } from './view/OperRowListView'; |
| 32 | import { CommentDialogView } from './CommentDialogView'; | 32 | import { CommentDialogView } from './CommentDialogView'; |
| 33 | -import { CustomTitleUI } from 'wdcomponent/ets/components/reusable/CustomTitleUI'; | 33 | +import { CustomTitleUI } from './reusable/CustomTitleUI'; |
| 34 | 34 | ||
| 35 | const TAG = 'H5NewsWebPageComponent' | 35 | const TAG = 'H5NewsWebPageComponent' |
| 36 | 36 |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wddetailplayapi", | 5 | + "name": "wdDetailPlayApi", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wddetailplaylive", | 5 | + "name": "wdDetailPlayLive", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wddetailplayshortvideo", | 5 | + "name": "wdDetailPlayShortVideo", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| 1 | { | 1 | { |
| 2 | - "name": "wdhwability", | 2 | + "name": "wdHwAbility", |
| 3 | "version": "1.0.0", | 3 | "version": "1.0.0", |
| 4 | "description": "Please describe the basic information.", | 4 | "description": "Please describe the basic information.", |
| 5 | "main": "Index.ets", | 5 | "main": "Index.ets", |
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | "license": "Apache-2.0", | 7 | "license": "Apache-2.0", |
| 8 | "packageType": "InterfaceHar", | 8 | "packageType": "InterfaceHar", |
| 9 | "dependencies": { | 9 | "dependencies": { |
| 10 | - "library": "file:./src/main/ets/getuiPush/GT-HM-1.0.4.har", | 10 | + "GtSDK": "file:./src/main/ets/getuiPush/GT-HM-1.0.4.har", |
| 11 | "neonui":"file:./src/main/ets/voiceRecognizer/neonui.har", | 11 | "neonui":"file:./src/main/ets/voiceRecognizer/neonui.har", |
| 12 | "wdConstant": "file:../../commons/wdConstant", | 12 | "wdConstant": "file:../../commons/wdConstant", |
| 13 | "wdLogin": "file:../../features/wdLogin", | 13 | "wdLogin": "file:../../features/wdLogin", |
| @@ -4,7 +4,7 @@ import PushManager, { | @@ -4,7 +4,7 @@ import PushManager, { | ||
| 4 | GTCmdMessage, GTNotificationMessage, GTTransmitMessage, PushConst, | 4 | GTCmdMessage, GTNotificationMessage, GTTransmitMessage, PushConst, |
| 5 | SetTagCmdMessage, | 5 | SetTagCmdMessage, |
| 6 | Tag, | 6 | Tag, |
| 7 | - UnBindAliasCmdMessage } from 'library'; | 7 | + UnBindAliasCmdMessage } from 'GtSDK'; |
| 8 | import { AppUtils, DeviceUtil, EmitterEventId, EmitterUtils, Logger, SPHelper } from 'wdKit/Index'; | 8 | import { AppUtils, DeviceUtil, EmitterEventId, EmitterUtils, Logger, SPHelper } from 'wdKit/Index'; |
| 9 | import { HostEnum, HostManager, HttpBizUtil, HttpUrlUtils, HttpUtils, ResponseDTO } from 'wdNetwork/Index'; | 9 | import { HostEnum, HostManager, HttpBizUtil, HttpUrlUtils, HttpUtils, ResponseDTO } from 'wdNetwork/Index'; |
| 10 | import { notificationManager } from '@kit.NotificationKit'; | 10 | import { notificationManager } from '@kit.NotificationKit'; |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdlogin", | 5 | + "name": "wdLogin", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| 1 | -import ArrayList from '@ohos.util.ArrayList'; | ||
| 2 | -import { Params } from '../../../../../../../commons/wdRouter/oh_modules/wdBean/Index'; | ||
| 3 | -import router from '@ohos.router'; | ||
| 4 | -import { LoginViewModel } from './LoginViewModel'; | ||
| 5 | -import { BreakpointSystem, CustomToast, DateTimeUtils, Logger, SPHelper, ToastUtils } from 'wdKit'; | ||
| 6 | -import { | ||
| 7 | - SpConstants | ||
| 8 | -} from '../../../../../../../commons/wdNetwork/oh_modules/wdConstant/src/main/ets/constants/SpConstants' | ||
| 9 | -import data_preferences from '@ohos.data.preferences'; | ||
| 10 | -import { WDRouterPage, WDRouterRule } from 'wdRouter'; | ||
| 11 | -import { TrackingPageBrowse, TrackConstants, TrackingButton } from 'wdTracking/Index'; | 1 | +import { Params } from 'wdBean' |
| 2 | +import router from '@ohos.router' | ||
| 3 | +import { LoginViewModel } from './LoginViewModel' | ||
| 4 | +import { BreakpointSystem, CustomToast, DateTimeUtils, Logger, SPHelper, ToastUtils } from 'wdKit' | ||
| 5 | +import { SpConstants } from 'wdConstant' | ||
| 6 | +import { WDRouterPage, WDRouterRule } from 'wdRouter' | ||
| 7 | +import { TrackingPageBrowse, TrackConstants, TrackingButton } from 'wdTracking' | ||
| 12 | 8 | ||
| 13 | const TAG = "SettingPasswordLayout" | 9 | const TAG = "SettingPasswordLayout" |
| 14 | 10 |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | "license": "Apache-2.0", | 2 | "license": "Apache-2.0", |
| 3 | "devDependencies": {}, | 3 | "devDependencies": {}, |
| 4 | "author": "", | 4 | "author": "", |
| 5 | - "name": "wdplayer", | 5 | + "name": "wdPlayer", |
| 6 | "description": "Please describe the basic information.", | 6 | "description": "Please describe the basic information.", |
| 7 | "main": "Index.ets", | 7 | "main": "Index.ets", |
| 8 | "version": "1.0.0", | 8 | "version": "1.0.0", |
| @@ -94,7 +94,8 @@ export struct BottomNavigationComponent { | @@ -94,7 +94,8 @@ export struct BottomNavigationComponent { | ||
| 94 | _currentNavIndex: $currentNavIndex, | 94 | _currentNavIndex: $currentNavIndex, |
| 95 | bottomNavIndex: index, | 95 | bottomNavIndex: index, |
| 96 | autoRefresh: this.autoRefresh, | 96 | autoRefresh: this.autoRefresh, |
| 97 | - navItem: navItem | 97 | + navItem: navItem, |
| 98 | + assignChannel: this.assignChannel | ||
| 98 | }) | 99 | }) |
| 99 | } else { | 100 | } else { |
| 100 | // 其它带顶导的页面,如 新闻、人民号、服务 | 101 | // 其它带顶导的页面,如 新闻、人民号、服务 |
| @@ -25,6 +25,7 @@ export struct VideoChannelPage { | @@ -25,6 +25,7 @@ export struct VideoChannelPage { | ||
| 25 | private groupId: number = 0 | 25 | private groupId: number = 0 |
| 26 | private swiperController: SwiperController = new SwiperController() | 26 | private swiperController: SwiperController = new SwiperController() |
| 27 | // 自动刷新触发(双击tab自动刷新) | 27 | // 自动刷新触发(双击tab自动刷新) |
| 28 | + @Prop @Watch('setTabbarActive') assignChannel: AssignChannelParam | ||
| 28 | @Prop autoRefresh: number = 0 | 29 | @Prop autoRefresh: number = 0 |
| 29 | @Prop topNavList: TopNavDTO[] | 30 | @Prop topNavList: TopNavDTO[] |
| 30 | @Link _currentNavIndex?: number; | 31 | @Link _currentNavIndex?: number; |
| @@ -59,18 +60,16 @@ export struct VideoChannelPage { | @@ -59,18 +60,16 @@ export struct VideoChannelPage { | ||
| 59 | if (this.currentTopNavSelectedIndex === 0) { | 60 | if (this.currentTopNavSelectedIndex === 0) { |
| 60 | this.handleAudio(this.topNavList[0]) | 61 | this.handleAudio(this.topNavList[0]) |
| 61 | } | 62 | } |
| 63 | + } | ||
| 62 | 64 | ||
| 63 | - EmitterUtils.receiveEvent(EmitterEventId.JUMP_HOME_CHANNEL, (str?: string) => { | ||
| 64 | - // Logger.debug(TAG, 'receiveEvent JUMP_HOME_CHANNEL: ' + str) | ||
| 65 | - if (str) { | ||
| 66 | - // 跳转指定频道场景,传参底导id、频道id | ||
| 67 | - let assignChannel = JSON.parse(str) as AssignChannelParam | ||
| 68 | - let index = this.topNavList.findIndex((item: TopNavDTO, index) => { | ||
| 69 | - return Number(assignChannel.channelId) == item.channelId && Number(assignChannel.pageId) == item.pageId | ||
| 70 | - }) || 0 | ||
| 71 | - this.clickTopNav(index) | ||
| 72 | - } | ||
| 73 | - }) | 65 | + /** |
| 66 | + * 切换顶部导航index | ||
| 67 | + */ | ||
| 68 | + setTabbarActive() { | ||
| 69 | + let index = this.topNavList.findIndex((item: TopNavDTO, index) => { | ||
| 70 | + return Number(this.assignChannel.channelId) == item.channelId && Number(this.assignChannel.pageId) == item.pageId | ||
| 71 | + }) || 0 | ||
| 72 | + this.clickTopNav(index) | ||
| 74 | } | 73 | } |
| 75 | 74 | ||
| 76 | /** | 75 | /** |
| 1 | import router from '@ohos.router'; | 1 | import router from '@ohos.router'; |
| 2 | -import { Params } from '../../../../../../../commons/wdRouter/oh_modules/wdBean/src/main/ets/bean/content/Params'; | 2 | +import { Params } from 'wdBean/Index'; |
| 3 | import { Logger, ToastUtils } from 'wdKit'; | 3 | import { Logger, ToastUtils } from 'wdKit'; |
| 4 | import { CustomTitleUI } from 'wdComponent/src/main/ets/components/reusable/CustomTitleUI'; | 4 | import { CustomTitleUI } from 'wdComponent/src/main/ets/components/reusable/CustomTitleUI'; |
| 5 | import {BusinessError, pasteboard} from '@kit.BasicServicesKit'; | 5 | import {BusinessError, pasteboard} from '@kit.BasicServicesKit'; |
| @@ -18,6 +18,7 @@ | @@ -18,6 +18,7 @@ | ||
| 18 | "abilities": [ | 18 | "abilities": [ |
| 19 | { | 19 | { |
| 20 | "name": "EntryAbility", | 20 | "name": "EntryAbility", |
| 21 | +// "launchType": "singleton", | ||
| 21 | // 这里不能改动,和后台推送有绑定 | 22 | // 这里不能改动,和后台推送有绑定 |
| 22 | "srcEntry": "./ets/entryability/EntryAbility.ets", | 23 | "srcEntry": "./ets/entryability/EntryAbility.ets", |
| 23 | "description": "$string:app_desc", | 24 | "description": "$string:app_desc", |
| @@ -143,11 +144,11 @@ | @@ -143,11 +144,11 @@ | ||
| 143 | }, | 144 | }, |
| 144 | { // 默认的 | 145 | { // 默认的 |
| 145 | "entities": [ | 146 | "entities": [ |
| 146 | - "entity.system.home", | 147 | + "entity.system.home" |
| 147 | ], | 148 | ], |
| 148 | "actions": [ | 149 | "actions": [ |
| 149 | - "action.system.home", | ||
| 150 | - ], | 150 | + "action.system.home" |
| 151 | + ] | ||
| 151 | 152 | ||
| 152 | }, | 153 | }, |
| 153 | { // H5换端 | 154 | { // H5换端 |
| @@ -159,7 +160,7 @@ | @@ -159,7 +160,7 @@ | ||
| 159 | "scheme": "rmrbapp", | 160 | "scheme": "rmrbapp", |
| 160 | "host": "rmrb.app", | 161 | "host": "rmrb.app", |
| 161 | "path": "openwith" | 162 | "path": "openwith" |
| 162 | - }, | 163 | + } |
| 163 | ]}, | 164 | ]}, |
| 164 | { // 推送 | 165 | { // 推送 |
| 165 | "actions": [ | 166 | "actions": [ |
| @@ -173,7 +174,7 @@ | @@ -173,7 +174,7 @@ | ||
| 173 | "path": 'openwith' | 174 | "path": 'openwith' |
| 174 | } | 175 | } |
| 175 | ] | 176 | ] |
| 176 | - }, | 177 | + } |
| 177 | ] | 178 | ] |
| 178 | } | 179 | } |
| 179 | ], | 180 | ], |
| @@ -216,7 +217,7 @@ | @@ -216,7 +217,7 @@ | ||
| 216 | }, | 217 | }, |
| 217 | { | 218 | { |
| 218 | "name": "ohos.permission.INTERNET" | 219 | "name": "ohos.permission.INTERNET" |
| 219 | - }, | 220 | + } |
| 220 | ], | 221 | ], |
| 221 | "extensionAbilities": [ | 222 | "extensionAbilities": [ |
| 222 | { | 223 | { |
| @@ -230,7 +231,7 @@ | @@ -230,7 +231,7 @@ | ||
| 230 | "name": "ohos.extension.form", | 231 | "name": "ohos.extension.form", |
| 231 | "resource": "$profile:form_config" | 232 | "resource": "$profile:form_config" |
| 232 | } | 233 | } |
| 233 | - ], | 234 | + ] |
| 234 | 235 | ||
| 235 | } | 236 | } |
| 236 | ] | 237 | ] |
-
Please register or login to post a comment