From 25b0b96005ed1f1fb91b0a0677ff01a7cc312869 Mon Sep 17 00:00:00 2001 From: zhoudw <zhoudw@infobird.com> Date: Tue, 11 Jan 2022 17:50:04 +0800 Subject: [PATCH] 时间 --- src/views/iframe/iframe.vue | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/src/views/iframe/iframe.vue b/src/views/iframe/iframe.vue index beef655..6d37021 100644 --- a/src/views/iframe/iframe.vue +++ b/src/views/iframe/iframe.vue @@ -152,7 +152,29 @@ }); wx.error(function(res){ _this.sendMsg({ - action:'start', + action:'stop', + state:'fail', + data:{} + }); + }) + break; + case 'cleanup': + wx.stopRecord({ + success: function (res) { + console.log(res,'清除录音成功'); + _this.sendMsg({ + action:'cleanup', + state:'ok', + data:{ + access_token:_this.access_token, + serverId:serverId + } + }); + } + }); + wx.error(function(res){ + _this.sendMsg({ + action:'cleanup', state:'fail', data:{} }); -- Gitblit v1.8.0