From df389eb48d7f3a51217d88de3c2ced4ace7cbe18 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 12 Jun 2025 12:38:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E7=B1=BB=E5=9E=8B=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E9=80=BB=E8=BE=91=EF=BC=8C=E9=98=B2=E6=AD=A2=E8=A7=A3?= =?UTF-8?q?=E7=A0=81=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/message_push_management.html | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/admin/dashboard/templates/message_push_management.html b/admin/dashboard/templates/message_push_management.html index 58faa6d..596cea3 100644 --- a/admin/dashboard/templates/message_push_management.html +++ b/admin/dashboard/templates/message_push_management.html @@ -736,7 +736,7 @@ new Vue({ } else { this.taskForm.weekly_days = []; } - + // 处理链接内容 if (task.content_link) { try { @@ -762,14 +762,34 @@ new Vue({ }; } } + + // 处理图片 if (task.content_image) { - // 编辑时显示图片 const fileName = task.content_image.split('/').pop(); this.imageList = [{ name: '已上传图片', url: `/static/uploads/${fileName}` // 显示时使用相对路径 }]; } + + // 处理语音 + if (task.content_voice) { + const fileName = task.content_voice.split('/').pop(); + this.voiceList = [{ + name: '已上传语音', + url: `/static/uploads/${fileName}` // 显示时使用相对路径 + }]; + } + + // 处理视频 + if (task.content_video) { + const fileName = task.content_video.split('/').pop(); + this.videoList = [{ + name: '已上传视频', + url: `/static/uploads/${fileName}` // 显示时使用相对路径 + }]; + } + this.taskDialogVisible = true; this.isEdit = true; },