|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="questionsAndAnswers">
|
|
|
<div class="qaa_title">{{ work.answerQ }}</div>
|
|
|
- <div class="qaa_type">问答题</div>
|
|
|
+ <div class="qaa_type">{{ lang.ssQAQuestion }}</div>
|
|
|
<div class="qaa_recording">
|
|
|
<div class="qaa_r_left">
|
|
|
<div class="voiceprint" v-show="recordObj.status=='1'">
|
|
|
@@ -36,11 +36,11 @@
|
|
|
<div class="qaa_r_right">
|
|
|
<div class="qaa_r_r_btn" v-if="recordObj.status=='0'" @click="startRecord">
|
|
|
<img src="../../../../assets/icon/workPage/start_icon.svg">
|
|
|
- <span>开始</span>
|
|
|
+ <span>{{ lang.ssStartRec }}</span>
|
|
|
</div>
|
|
|
<div class="qaa_r_r_btn" v-if="recordObj.status=='1'" @click="stopRecord">
|
|
|
<img src="../../../../assets/icon/workPage/stop_icon.svg">
|
|
|
- <span style="color: #F53F3F;">结束</span>
|
|
|
+ <span style="color: #F53F3F;">{{ lang.ssStopRec }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
stopRecord() {
|
|
|
console.log("测试测试")
|
|
|
if(new Date().getTime() - this.recordObj.startTime < 2000){
|
|
|
- return this.$message.info("录音时间过短,请稍等...")
|
|
|
+ return this.$message.info(this.lang.ssRecordShort)
|
|
|
}
|
|
|
// 判断浏览器是否有开启录音权限
|
|
|
navigator.permissions && navigator.permissions.query({ name: 'microphone' }).then(permissionStatus => {
|
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
iframe.contentWindow.onSessionStopped = null;
|
|
|
iframe.contentWindow.window.onRecognizedResult = null;
|
|
|
|
|
|
- this.$message.success("未开启录音权限,已停止录音");
|
|
|
+ this.$message.success(this.lang.ssNoPermStop);
|
|
|
return;
|
|
|
}
|
|
|
console.log("测试测试222")
|
|
|
@@ -176,7 +176,7 @@ export default {
|
|
|
iframe.contentWindow.onSessionStopped = (s, e) => {
|
|
|
this.recordObj.status = "0"
|
|
|
this.recordObj.loading = false;
|
|
|
- this.$message.success("已停止录音")
|
|
|
+ this.$message.success(this.lang.ssStoppedRec)
|
|
|
iframe.contentWindow.onSessionStopped = null;
|
|
|
iframe.contentWindow.window.onRecognizedResult = null;
|
|
|
};
|
|
|
@@ -195,7 +195,7 @@ export default {
|
|
|
let iframe = this.$refs["iframeRef"];
|
|
|
iframe.contentWindow.onSessionStopped = null;
|
|
|
iframe.contentWindow.window.onRecognizedResult = null;
|
|
|
- this.$message.success("无法检测麦克风权限,已停止录音");
|
|
|
+ this.$message.success(this.lang.ssMicCheckStop);
|
|
|
});
|
|
|
// this.recordObj.status = "0"
|
|
|
}
|