群发消息与页面刷新
This commit is contained in:
@@ -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'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user