diff --git a/chatkit_ui/src/main/ets/view/MessageComponentBuilder.ets b/chatkit_ui/src/main/ets/view/MessageComponentBuilder.ets index 3cea1e3..92d8467 100644 --- a/chatkit_ui/src/main/ets/view/MessageComponentBuilder.ets +++ b/chatkit_ui/src/main/ets/view/MessageComponentBuilder.ets @@ -38,6 +38,7 @@ import { BasicConstant, customAttachment,DataWebModel } from '@itcast/basic' import { router } from '@kit.ArkUI' import { videoTools } from 'home' import { HMRouterMgr } from '@hadss/hmrouter' +import { StringIsEmpty } from '@nimkit/common' @ComponentV2 export struct messageContent { @@ -836,7 +837,7 @@ export struct customBuilder { { this.content=custom.gdxz_content } - if(custom.gdxz_title!=null&&custom.gdxz_title.includes("互联网医院")) + if(custom.gdxz_title!=null&&custom.gdxz_title.includes("互联网医院")||!StringIsEmpty(custom.gdxz_img)) { this.photoUrl=custom.gdxz_img diff --git a/common/src/main/ets/builder/NavigationBackBuilder.ets b/common/src/main/ets/builder/NavigationBackBuilder.ets index fd03ccd..5464ea7 100644 --- a/common/src/main/ets/builder/NavigationBackBuilder.ets +++ b/common/src/main/ets/builder/NavigationBackBuilder.ets @@ -55,15 +55,16 @@ export function NavigationBackBuilder(params?: NavigationBackBuilderParams) { Image($r('app.media.top_back')) .margin({ left: 20 }) .width(65) - .height(24) + .height(50) .padding({ - right:41 + right:41, + top: 13, + bottom: 13 }) // .padding({ // left: 8, // right: 8, - // top: 8, - // bottom: 8 + // // }) .onClick(params?.leftButtonAction) } @@ -110,13 +111,13 @@ export function NavigationBackBuilder(params?: NavigationBackBuilderParams) { Image(params?.rightButtonIcon) // .width(36) .width(65) - .height(4) + .height(50) .objectFit(ImageFit.Contain) .padding({ left: 47, // right: 3, - // top: 3, - // bottom: 3 + top: 23, + bottom: 23 }) .margin({ right: 20 }) .onClick(params?.rightButtonAction)