群发消息与页面刷新

This commit is contained in:
XiuYun CHEN
2025-08-01 17:18:36 +08:00
parent 3f58565a76
commit 92b91dd65e
23 changed files with 512 additions and 185 deletions
@@ -17,37 +17,37 @@ export struct LocalConversationOperationDialog {
build() {
if (this.conversationInfo != null) {
Column({ space: 10 }) {
if (this.conversationInfo.stickTop) {
Text($r('app.string.unstick_top_conversation'))
.fontSize(16)
.fontColor('#333333')
.onClick(() => {
if (ErrorUtils.checkNetworkAndToast()) {
LocalConversationRepo.stickTopConversation(this.conversationInfo?.conversationId ?? '', false)
}
this.controller.close()
})
.height(30)
.width('100%')
.margin({ top: 15 })
.textAlign(TextAlign.Center)
} else {
Text($r('app.string.stick_top_conversation'))
.fontSize(16)
.fontColor('#333333')
.onClick(() => {
if (ErrorUtils.checkNetworkAndToast()) {
LocalConversationRepo.stickTopConversation(this.conversationInfo?.conversationId ?? '', true)
}
this.controller.close()
})
.height(30)
.width('100%')
.margin({ top: 15 })
.textAlign(TextAlign.Center)
}
Line().height(1).backgroundColor('#EFF1F4').width('100%').opacity(0.5)
Column({ space: 0 }) {
// if (this.conversationInfo.stickTop) {
// Text($r('app.string.unstick_top_conversation'))
// .fontSize(16)
// .fontColor('#333333')
// .onClick(() => {
// if (ErrorUtils.checkNetworkAndToast()) {
// LocalConversationRepo.stickTopConversation(this.conversationInfo?.conversationId ?? '', false)
// }
// this.controller.close()
// })
// .height(30)
// .width('100%')
// .margin({ top: 15 })
// .textAlign(TextAlign.Center)
// } else {
// Text($r('app.string.stick_top_conversation'))
// .fontSize(16)
// .fontColor('#333333')
// .onClick(() => {
// if (ErrorUtils.checkNetworkAndToast()) {
// LocalConversationRepo.stickTopConversation(this.conversationInfo?.conversationId ?? '', true)
// }
// this.controller.close()
// })
// .height(30)
// .width('100%')
// .margin({ top: 15 })
// .textAlign(TextAlign.Center)
// }
// Line().height(1).backgroundColor('#EFF1F4').width('100%').opacity(0.5)
Text($r('app.string.delete_conversation'))
.fontSize(16)
.fontColor('#333333')
@@ -55,9 +55,11 @@ export struct LocalConversationOperationDialog {
LocalConversationRepo.deleteConversation(this.conversationInfo?.conversationId ?? '')
this.controller.close()
})
.margin({ top: 25 })
.height(30)
.width('100%')
.margin({ bottom: 15 })
// .backgroundColor(Color.Red)
// .margin({ bottom: 15 })
.textAlign(TextAlign.Center)
}.width('100%').backgroundColor($r('sys.color.white'))
}