| | |
| | | </template> |
| | | <script> |
| | | import { mapActions, mapState } from "vuex"; |
| | | import VConsole from 'vconsole'; |
| | | // import VConsole from 'vconsole'; |
| | | export default { |
| | | data(){ |
| | | return{ |
| | |
| | | this.iframeWin = this.$refs.iframe.contentWindow; |
| | | }, |
| | | created () { |
| | | let vConsole = new VConsole() // 初始化 |
| | | // let vConsole = new VConsole() // 初始化 |
| | | let item = JSON.parse(localStorage.getItem("item")); |
| | | this.scenes_id = item.scenes_id; |
| | | this.scenes_name = item.scenes_name; |
| | |
| | | }); |
| | | 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:{ |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | wx.error(function(res){ |
| | | _this.sendMsg({ |
| | | action:'cleanup', |
| | | state:'fail', |
| | | data:{} |
| | | }); |