Commit 269e5e7f authored by caicaicai's avatar caicaicai

修改

parent de3a3e9d
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<span class="voiceAppContent_left_title">当前语音通话情况:</span> <span class="voiceAppContent_left_title">当前语音通话情况:</span>
</div> </div>
<audio controls currentTime autoplay :src='srcUrl' style="display:none;"></audio> <audio autoplay :src='srcUrl' style="display:none;"></audio>
<div class="situationStyle"> <div class="situationStyle">
<div v-for="(item,index) in videoContentAllArray" :key="index" class='situation_fa1'> <div v-for="(item,index) in videoContentAllArray" :key="index" class='situation_fa1'>
...@@ -174,7 +174,17 @@ export default { ...@@ -174,7 +174,17 @@ export default {
} }
}, },
created(){}, created(){},
mounted() {}, mounted() {
let that = this;
document.onkeydown = function(e) {
if(e.keyCode == 178){
that.recStart();
};
if(e.keyCode == 179){
that.recStop();
};
};
},
methods: { methods: {
loadData(value) { loadData(value) {
this.showDecide = true; this.showDecide = true;
...@@ -624,7 +634,7 @@ export default { ...@@ -624,7 +634,7 @@ export default {
}, },
//播放语音 //播放语音
selectSituation(item){ selectSituation(item){
this.recClose(); //this.recClose();
// Blobdata 就是后端返回给你的Blob数据 // Blobdata 就是后端返回给你的Blob数据
const reader = new FileReader(); const reader = new FileReader();
const booo = new Blob([item.contentText]); const booo = new Blob([item.contentText]);
...@@ -632,7 +642,7 @@ export default { ...@@ -632,7 +642,7 @@ export default {
reader.onload = (e) => { reader.onload = (e) => {
const bufer = e.srcElement.result; const bufer = e.srcElement.result;
const blob = this.addWavHeader(bufer, 16000, 16, 1); const blob = this.addWavHeader(bufer, 16000, 16, 1);
this.srcUrl = window.URL.createObjectURL(blob); this.srcUrl = (window.URL||webkitURL).createObjectURL(blob);
}; };
}, },
......
...@@ -159,6 +159,7 @@ export default { ...@@ -159,6 +159,7 @@ export default {
} }
}); });
}, 20000) }, 20000)
}, },
methods:{ methods:{
loadData(){ loadData(){
......
...@@ -10,8 +10,8 @@ module.exports = { ...@@ -10,8 +10,8 @@ module.exports = {
productionSourceMap:false, //去掉打包的时候生成的map文件 productionSourceMap:false, //去掉打包的时候生成的map文件
lintOnSave: false, // 是否在开发环境下通过 eslint-loader 在每次保存时 lint 代码 lintOnSave: false, // 是否在开发环境下通过 eslint-loader 在每次保存时 lint 代码
devServer: { devServer: {
//host: '192.168.0.101', // 也可以直接写IP地址这样方便真机测试 host: '192.168.0.101', // 也可以直接写IP地址这样方便真机测试
host: 'localhost', //host: 'localhost',
port: 3002, // 端口号 port: 3002, // 端口号
https: false, // https:{type:Boolean} https: false, // https:{type:Boolean}
open: true, // 配置自动启动浏览器 open: true, // 配置自动启动浏览器
...@@ -43,7 +43,7 @@ module.exports = { ...@@ -43,7 +43,7 @@ module.exports = {
}, },
}, },
//https: true, https: true,
}, },
configureWebpack: { configureWebpack: {
plugins: [ plugins: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment