From 94178998e541d4c829294a1b2dfab5f68e5e2c18 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 8 Jan 2023 21:43:40 +0800 Subject: [PATCH] =?UTF-8?q?mp=EF=BC=9A=E5=89=8D=E7=AB=AF=20message=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20voice=20=E8=AF=AD=E9=9F=B3=E7=9A=84?= =?UTF-8?q?=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/package.json | 1 + .../mp/components/wx-video-play/main.vue | 2 +- .../mp/components/wx-voice-play/main.vue | 97 +++++++++++++++++++ yudao-ui-admin/src/views/mp/message/index.vue | 6 +- yudao-ui-admin/yarn.lock | 12 +++ 5 files changed, 116 insertions(+), 2 deletions(-) create mode 100644 yudao-ui-admin/src/views/mp/components/wx-voice-play/main.vue diff --git a/yudao-ui-admin/package.json b/yudao-ui-admin/package.json index 8607286bc..c92e3d233 100644 --- a/yudao-ui-admin/package.json +++ b/yudao-ui-admin/package.json @@ -43,6 +43,7 @@ "@babel/parser": "7.18.4", "@riophae/vue-treeselect": "0.4.0", "axios": "0.27.2", + "benz-amr-recorder": "^1.1.5", "bpmn-js-token-simulation": "0.10.0", "clipboard": "2.0.8", "core-js": "^3.26.0", diff --git a/yudao-ui-admin/src/views/mp/components/wx-video-play/main.vue b/yudao-ui-admin/src/views/mp/components/wx-video-play/main.vue index 5e9494d42..9bd72baea 100644 --- a/yudao-ui-admin/src/views/mp/components/wx-video-play/main.vue +++ b/yudao-ui-admin/src/views/mp/components/wx-video-play/main.vue @@ -1,7 +1,7 @@ + + + + + diff --git a/yudao-ui-admin/src/views/mp/message/index.vue b/yudao-ui-admin/src/views/mp/message/index.vue index c5fd66a97..3d7fbb8a1 100644 --- a/yudao-ui-admin/src/views/mp/message/index.vue +++ b/yudao-ui-admin/src/views/mp/message/index.vue @@ -70,7 +70,9 @@
{{ scope.row.content }}
- +
+ +
@@ -154,12 +156,14 @@ import { } from "@/api/mp/message"; import Editor from '@/components/Editor/index.vue'; import WxVideoPlayer from '@/views/mp/components/wx-video-play/main.vue'; +import WxVoicePlayer from '@/views/mp/components/wx-voice-play/main.vue'; export default { name: "WxFansMsg", components: { Editor, WxVideoPlayer, + WxVoicePlayer }, data() { return { diff --git a/yudao-ui-admin/yarn.lock b/yudao-ui-admin/yarn.lock index db92bc54d..bd8e20a3b 100644 --- a/yudao-ui-admin/yarn.lock +++ b/yudao-ui-admin/yarn.lock @@ -2327,6 +2327,18 @@ dependencies: "tweetnacl" "^0.14.3" +"benz-amr-recorder@^1.1.5": + "integrity" "sha512-NepctcNTsZHK8NxBb5uKO5p8S+xkbm+vD6GLSkCYdJeEsriexvgumLHpDkanX4QJBcLRMVtg16buWMs+gUPB3g==" + "resolved" "https://registry.npmmirror.com/benz-amr-recorder/-/benz-amr-recorder-1.1.5.tgz" + "version" "1.1.5" + dependencies: + "benz-recorderjs" "^1.0.5" + +"benz-recorderjs@^1.0.5": + "integrity" "sha512-EwedOQo9KLti7HxDi/eZY51PSRbAXnOdEZmLvJ6ro3QQSoF9Y3AXBt57MIllGvVz5vtFYMeikG+GD7qTm3+p9w==" + "resolved" "https://registry.npmmirror.com/benz-recorderjs/-/benz-recorderjs-1.0.5.tgz" + "version" "1.0.5" + "bfj@^6.1.1": "integrity" "sha512-BmBJa4Lip6BPRINSZ0BPEIfB1wUY/9rwbwvIHQA1KjX9om29B6id0wnWXq7m3bn5JrUVjeOTnVuhPT1FiHwPGw==" "resolved" "https://registry.npmmirror.com/bfj/-/bfj-6.1.2.tgz"