bug修改
This commit is contained in:
parent
2ae59301fd
commit
5212bfee2c
@ -173,7 +173,7 @@ export class ChatKitClient {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.info("netease ChatKitClient initListener ");
|
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()
|
// const detail = ChatKitClient.nim.loginService.getKickedOfflineDetail()
|
||||||
// console.log('Response onKickedOffline'+detail.clientType+' 22 '+detail.customClientType)
|
// console.log('Response onKickedOffline'+detail.clientType+' 22 '+detail.customClientType)
|
||||||
if(HMRouterMgr.getCurrentPathStack()!=null)
|
if(HMRouterMgr.getCurrentPathStack()!=null)
|
||||||
@ -197,6 +197,7 @@ export class ChatKitClient {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
await ChatKitClient.nim.loginService.logout()
|
||||||
ChangeUtil.Logout(phone)
|
ChangeUtil.Logout(phone)
|
||||||
// router.replaceUrl({
|
// router.replaceUrl({
|
||||||
// url: 'pages/LoginPage/LoginPage', // 目标url
|
// url: 'pages/LoginPage/LoginPage', // 目标url
|
||||||
|
|||||||
@ -847,8 +847,6 @@ export struct ChatP2PPage {
|
|||||||
|
|
||||||
Column()
|
Column()
|
||||||
.height(this.bottomHeight)
|
.height(this.bottomHeight)
|
||||||
.backgroundColor(Color.Transparent)
|
|
||||||
.backgroundColor($r('app.color.chat_input_background'))
|
|
||||||
.id("chat_input")
|
.id("chat_input")
|
||||||
.alignRules({
|
.alignRules({
|
||||||
left: { anchor: "__container__", align: HorizontalAlign.Start },
|
left: { anchor: "__container__", align: HorizontalAlign.Start },
|
||||||
@ -942,6 +940,7 @@ export struct ChatP2PPage {
|
|||||||
})
|
})
|
||||||
|
|
||||||
.backgroundColor($r('app.color.chat_input_background'))
|
.backgroundColor($r('app.color.chat_input_background'))
|
||||||
|
|
||||||
} else if (this.showMultiSelect) {
|
} else if (this.showMultiSelect) {
|
||||||
ChatMultiSelectView({
|
ChatMultiSelectView({
|
||||||
isEnable: this.multiSelectCount > 0,
|
isEnable: this.multiSelectCount > 0,
|
||||||
@ -1242,7 +1241,7 @@ export struct ChatP2PPage {
|
|||||||
this.controller.deleteSpans()
|
this.controller.deleteSpans()
|
||||||
}
|
}
|
||||||
this.replyMsg = undefined
|
this.replyMsg = undefined
|
||||||
this.bottomHeight = 105
|
// this.bottomHeight = 105
|
||||||
this.computeScrollHeight()
|
this.computeScrollHeight()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -405,8 +405,8 @@ export struct imageBuilder {
|
|||||||
Column() {
|
Column() {
|
||||||
Image(this.thumbUrl ?? this.url)
|
Image(this.thumbUrl ?? this.url)
|
||||||
.objectFit(ImageFit.Cover)
|
.objectFit(ImageFit.Cover)
|
||||||
.width(getImageWidth(this.message))
|
.width(getImageWidth(this.message)*0.7)
|
||||||
.height(getImageHeight(this.message))
|
.height(getImageHeight(this.message)*0.7)
|
||||||
.borderRadius(8)
|
.borderRadius(8)
|
||||||
.gesture(LongPressGesture().onAction((event: GestureEvent) => {
|
.gesture(LongPressGesture().onAction((event: GestureEvent) => {
|
||||||
this.onMessageClick?.onItemLongClick?.(event, this.message)
|
this.onMessageClick?.onItemLongClick?.(event, this.message)
|
||||||
@ -446,7 +446,7 @@ export struct videoBuilder {
|
|||||||
build() {
|
build() {
|
||||||
Stack() {
|
Stack() {
|
||||||
Image(this.videoMessageThumbnail ?? getVideoMessageUrl(this.message)).objectFit(ImageFit.Auto)
|
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)
|
.borderRadius(8)
|
||||||
Image($r('app.media.ic_chat_message_video')).objectFit(ImageFit.Auto)
|
Image($r('app.media.ic_chat_message_video')).objectFit(ImageFit.Auto)
|
||||||
.width(60).height(60)
|
.width(60).height(60)
|
||||||
|
|||||||
@ -618,7 +618,7 @@ export struct PatientListComp {
|
|||||||
weight: FontWeight.Bolder
|
weight: FontWeight.Bolder
|
||||||
})
|
})
|
||||||
.position({ x: this.displayClass.width / this.displayClass.densityPixels - 30 })
|
.position({ x: this.displayClass.width / this.displayClass.densityPixels - 30 })
|
||||||
.zIndex(999) // 确保在最上层
|
.zIndex(998) // 确保在最上层
|
||||||
|
|
||||||
Column()
|
Column()
|
||||||
{
|
{
|
||||||
@ -636,6 +636,7 @@ export struct PatientListComp {
|
|||||||
.backgroundImagePosition(Alignment.Center)
|
.backgroundImagePosition(Alignment.Center)
|
||||||
.backgroundImage($r('app.media.patientgif'))
|
.backgroundImage($r('app.media.patientgif'))
|
||||||
.backgroundColor('#44444444')
|
.backgroundColor('#44444444')
|
||||||
|
.zIndex(999) // 确保在最上层
|
||||||
}
|
}
|
||||||
.layoutWeight(1)
|
.layoutWeight(1)
|
||||||
.width('100%')
|
.width('100%')
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import { bundleManager, common, ConfigurationConstant, Want } from '@kit.Ability
|
|||||||
import { fileIo, storageStatistics } from '@kit.CoreFileKit';
|
import { fileIo, storageStatistics } from '@kit.CoreFileKit';
|
||||||
import { promptAction, router } from '@kit.ArkUI';
|
import { promptAction, router } from '@kit.ArkUI';
|
||||||
import call from '@ohos.telephony.call';
|
import call from '@ohos.telephony.call';
|
||||||
|
import { ChatKitClient } from '@nimkit/chatkit';
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Preview
|
@Preview
|
||||||
@ -200,7 +201,8 @@ struct SettingPage {
|
|||||||
.borderColor($r('app.color.main_color'))
|
.borderColor($r('app.color.main_color'))
|
||||||
.backgroundColor(Color.White)
|
.backgroundColor(Color.White)
|
||||||
.margin({top:10,left:10,right:10})
|
.margin({top:10,left:10,right:10})
|
||||||
.onClick(()=>{
|
.onClick(async ()=>{
|
||||||
|
await ChatKitClient.nim.loginService.logout()
|
||||||
ChangeUtil.Logout('')
|
ChangeUtil.Logout('')
|
||||||
// authStore.delUser();
|
// authStore.delUser();
|
||||||
// preferenceStore.setItemBoolean('isLogin',false)
|
// preferenceStore.setItemBoolean('isLogin',false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user