bug修改

This commit is contained in:
XiuYun CHEN 2025-08-11 15:01:18 +08:00
parent 2ae59301fd
commit 5212bfee2c
5 changed files with 12 additions and 9 deletions

View File

@ -173,7 +173,7 @@ export class ChatKitClient {
return
}
console.info("netease ChatKitClient initListener ");
ChatKitClient.nim.loginService.on("onKickedOffline", (detail: V2NIMKickedOfflineDetail) => {
ChatKitClient.nim.loginService.on("onKickedOffline", async (detail: V2NIMKickedOfflineDetail) => {
// const detail = ChatKitClient.nim.loginService.getKickedOfflineDetail()
// console.log('Response onKickedOffline'+detail.clientType+' 22 '+detail.customClientType)
if(HMRouterMgr.getCurrentPathStack()!=null)
@ -197,6 +197,7 @@ export class ChatKitClient {
break;
}
await ChatKitClient.nim.loginService.logout()
ChangeUtil.Logout(phone)
// router.replaceUrl({
// url: 'pages/LoginPage/LoginPage', // 目标url

View File

@ -847,8 +847,6 @@ export struct ChatP2PPage {
Column()
.height(this.bottomHeight)
.backgroundColor(Color.Transparent)
.backgroundColor($r('app.color.chat_input_background'))
.id("chat_input")
.alignRules({
left: { anchor: "__container__", align: HorizontalAlign.Start },
@ -942,6 +940,7 @@ export struct ChatP2PPage {
})
.backgroundColor($r('app.color.chat_input_background'))
} else if (this.showMultiSelect) {
ChatMultiSelectView({
isEnable: this.multiSelectCount > 0,
@ -1242,7 +1241,7 @@ export struct ChatP2PPage {
this.controller.deleteSpans()
}
this.replyMsg = undefined
this.bottomHeight = 105
// this.bottomHeight = 105
this.computeScrollHeight()
}

View File

@ -405,8 +405,8 @@ export struct imageBuilder {
Column() {
Image(this.thumbUrl ?? this.url)
.objectFit(ImageFit.Cover)
.width(getImageWidth(this.message))
.height(getImageHeight(this.message))
.width(getImageWidth(this.message)*0.7)
.height(getImageHeight(this.message)*0.7)
.borderRadius(8)
.gesture(LongPressGesture().onAction((event: GestureEvent) => {
this.onMessageClick?.onItemLongClick?.(event, this.message)
@ -446,7 +446,7 @@ export struct videoBuilder {
build() {
Stack() {
Image(this.videoMessageThumbnail ?? getVideoMessageUrl(this.message)).objectFit(ImageFit.Auto)
.width(getImageWidth(this.message)).height(getImageHeight(this.message))
.width(getImageWidth(this.message)*0.7).height(getImageHeight(this.message)*0.7)
.borderRadius(8)
Image($r('app.media.ic_chat_message_video')).objectFit(ImageFit.Auto)
.width(60).height(60)

View File

@ -618,7 +618,7 @@ export struct PatientListComp {
weight: FontWeight.Bolder
})
.position({ x: this.displayClass.width / this.displayClass.densityPixels - 30 })
.zIndex(999) // 确保在最上层
.zIndex(998) // 确保在最上层
Column()
{
@ -636,6 +636,7 @@ export struct PatientListComp {
.backgroundImagePosition(Alignment.Center)
.backgroundImage($r('app.media.patientgif'))
.backgroundColor('#44444444')
.zIndex(999) // 确保在最上层
}
.layoutWeight(1)
.width('100%')

View File

@ -5,6 +5,7 @@ import { bundleManager, common, ConfigurationConstant, Want } from '@kit.Ability
import { fileIo, storageStatistics } from '@kit.CoreFileKit';
import { promptAction, router } from '@kit.ArkUI';
import call from '@ohos.telephony.call';
import { ChatKitClient } from '@nimkit/chatkit';
@Entry
@Preview
@ -200,7 +201,8 @@ struct SettingPage {
.borderColor($r('app.color.main_color'))
.backgroundColor(Color.White)
.margin({top:10,left:10,right:10})
.onClick(()=>{
.onClick(async ()=>{
await ChatKitClient.nim.loginService.logout()
ChangeUtil.Logout('')
// authStore.delUser();
// preferenceStore.setItemBoolean('isLogin',false)