群发bug修复

This commit is contained in:
xiaoxiao 2025-08-06 09:54:45 +08:00
parent 9f37131022
commit c016bc889f
2 changed files with 8 additions and 2 deletions

View File

@ -83,8 +83,12 @@ export struct GroupMessageSendingComp {
this.controller.loadSuccess();
this.totalPage = json.data["pages"]
if (Array.isArray(json.data["list"])) {
if (this.pageNumber == 1) {
this.messageList = [...json.data["list"]];
} else {
this.messageList = [...this.messageList,...json.data["list"]];
}
}
} else {
console.error('群发消息列表失败:' + json.message)
promptAction.showToast({ message: String(json.message), duration: 1000 })
@ -273,6 +277,7 @@ export struct GroupMessageSendingComp {
}
.backgroundColor('#f4f4f4')
.width('100%')
.height('100%')
.scrollBar(BarState.Off)
.layoutWeight(1)

View File

@ -275,7 +275,8 @@ export struct SendGroupMessageComp {
.height(3)
.backgroundColor($r('app.color.main_color'))
Text('消息将发送给'+this.patientsList.length+'位患者')
Text('消息将发送给'+this.patientsName.split(',')
.filter(item => item.trim() !== '').length+'位患者')
.fontSize(16)
.margin({top:10})