From 5ce0ca69c3afbd0a2d5f88d249e300792839949b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=9E=E6=BC=AA?= Date: Tue, 18 Feb 2025 15:14:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=9A=E8=BF=87=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E5=BD=A2=E5=BC=8F=E6=8B=89=E8=B5=B7=E6=A1=A3=E6=A1=88=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 连漪 --- customappbar/interfaces/custom_app_bar.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/customappbar/interfaces/custom_app_bar.js b/customappbar/interfaces/custom_app_bar.js index f45a48c..4c5c071 100644 --- a/customappbar/interfaces/custom_app_bar.js +++ b/customappbar/interfaces/custom_app_bar.js @@ -635,7 +635,18 @@ export class CustomAppBar extends ViewPU { * 点击title栏 */ onEyelashTitleClick() { - ContainerAppBar.callNative(EVENT_NAME_CUSTOM_APP_BAR_CREATE_SERVICE_PANEL, 1); + let info = { + 'bundleName':'com.huawei.hmos.asde', + 'abilityName':'PanelAbility', + 'params':[ + `bundleName:${this.bundleName}`, + 'abilityName:MainAbility', + 'module:entry', + 'pageName:DETAIL', + 'ability.want.params.uiExtensionType:sysDialog/atomicServicePanel' + ] + } + ContainerAppBar.callNative(EVENT_NAME_CUSTOM_APP_BAR_CREATE_SERVICE_PANEL, info); } /** * 触发构建回调 -- Gitee From 51b637637cfab591a960ec1c892b3216a9317299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=9E=E6=BC=AA?= Date: Wed, 19 Feb 2025 01:43:19 +0000 Subject: [PATCH 2/2] update customappbar/interfaces/custom_app_bar.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 连漪 --- customappbar/interfaces/custom_app_bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customappbar/interfaces/custom_app_bar.js b/customappbar/interfaces/custom_app_bar.js index 4c5c071..dc89ee3 100644 --- a/customappbar/interfaces/custom_app_bar.js +++ b/customappbar/interfaces/custom_app_bar.js @@ -645,7 +645,7 @@ export class CustomAppBar extends ViewPU { 'pageName:DETAIL', 'ability.want.params.uiExtensionType:sysDialog/atomicServicePanel' ] - } + }; ContainerAppBar.callNative(EVENT_NAME_CUSTOM_APP_BAR_CREATE_SERVICE_PANEL, info); } /** -- Gitee