Commit 81bf8ca8 authored by 李维's avatar 李维

后台添加超时自动选择音频

parent fc7dc3cf
No preview for this file type
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>NgOne</title> <title>NgOne</title>
<!-- <base href="/JGT/v3/"> <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> --> <!-- <base href="/JGT/v3/"> -->
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script> <script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script>
......
...@@ -5423,6 +5423,7 @@ let FormComponent = /*@__PURE__*/ (() => { ...@@ -5423,6 +5423,7 @@ let FormComponent = /*@__PURE__*/ (() => {
audioUrl_tip3: '', audioUrl_tip3: '',
audioUrl_tip_wrong1: '', audioUrl_tip_wrong1: '',
audioUrl_tip_wrong2: '', audioUrl_tip_wrong2: '',
audioUrl_auto_chose: '',
audioUrl_lose: '', audioUrl_lose: '',
audioUrl_win: '', audioUrl_win: '',
}; };
...@@ -5485,7 +5486,7 @@ let FormComponent = /*@__PURE__*/ (() => { ...@@ -5485,7 +5486,7 @@ let FormComponent = /*@__PURE__*/ (() => {
} }
} }
FormComponent.ɵfac = function FormComponent_Factory(t) { return new (t || FormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); }; FormComponent.ɵfac = function FormComponent_Factory(t) { return new (t || FormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
FormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FormComponent, selectors: [["app-form"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 46, vars: 11, consts: [[1, "model-content"], [1, "border", 2, "padding", "50px"], [2, "margin-bottom", "20px"], [2, "font-size", "20px"], [3, "audioUrl", "audioUploaded"]], template: function FormComponent_Template(rf, ctx) { FormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FormComponent, selectors: [["app-form"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 50, vars: 12, consts: [[1, "model-content"], [1, "border", 2, "padding", "50px"], [2, "margin-bottom", "20px"], [2, "font-size", "20px"], [3, "audioUrl", "audioUploaded"]], template: function FormComponent_Template(rf, ctx) {
if (rf & 1) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
...@@ -5563,18 +5564,26 @@ let FormComponent = /*@__PURE__*/ (() => { ...@@ -5563,18 +5564,26 @@ let FormComponent = /*@__PURE__*/ (() => {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "span", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "\u5931\u8D25\u97F3\u9891: "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "\u8D85\u65F6\u81EA\u52A8\u9009\u62E9\u97F3\u9891: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "app-audio-recorder", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "app-audio-recorder", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_41_listener($event) { return ctx.onAudioUploadSuccess($event, "audioUrl_lose"); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_41_listener($event) { return ctx.onAudioUploadSuccess($event, "audioUrl_auto_chose"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "span", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "\u80DC\u5229\u97F3\u9891: "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "\u5931\u8D25\u97F3\u9891: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "app-audio-recorder", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "app-audio-recorder", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_45_listener($event) { return ctx.onAudioUploadSuccess($event, "audioUrl_win"); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_45_listener($event) { return ctx.onAudioUploadSuccess($event, "audioUrl_lose"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "\u80DC\u5229\u97F3\u9891: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "app-audio-recorder", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_49_listener($event) { return ctx.onAudioUploadSuccess($event, "audioUrl_win"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
...@@ -5600,6 +5609,8 @@ let FormComponent = /*@__PURE__*/ (() => { ...@@ -5600,6 +5609,8 @@ let FormComponent = /*@__PURE__*/ (() => {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_tip_wrong2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_tip_wrong2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_auto_chose);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_lose); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_lose);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_win); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_win);
......
This diff is collapsed.
...@@ -8335,6 +8335,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d ...@@ -8335,6 +8335,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
audioUrl_tip3: '', audioUrl_tip3: '',
audioUrl_tip_wrong1: '', audioUrl_tip_wrong1: '',
audioUrl_tip_wrong2: '', audioUrl_tip_wrong2: '',
audioUrl_auto_chose: '',
audioUrl_lose: '', audioUrl_lose: '',
audioUrl_win: '' audioUrl_win: ''
}; // 获取存储的数据 }; // 获取存储的数据
...@@ -8433,8 +8434,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d ...@@ -8433,8 +8434,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
type: FormComponent, type: FormComponent,
selectors: [["app-form"]], selectors: [["app-form"]],
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
decls: 46, decls: 50,
vars: 11, vars: 12,
consts: [[1, "model-content"], [1, "border", 2, "padding", "50px"], [2, "margin-bottom", "20px"], [2, "font-size", "20px"], [3, "audioUrl", "audioUploaded"]], consts: [[1, "model-content"], [1, "border", 2, "padding", "50px"], [2, "margin-bottom", "20px"], [2, "font-size", "20px"], [3, "audioUrl", "audioUploaded"]],
template: function FormComponent_Template(rf, ctx) { template: function FormComponent_Template(rf, ctx) {
if (rf & 1) { if (rf & 1) {
...@@ -8608,14 +8609,14 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d ...@@ -8608,14 +8609,14 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "span", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "\u5931\u8D25\u97F3\u9891: "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "\u8D85\u65F6\u81EA\u52A8\u9009\u62E9\u97F3\u9891: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "app-audio-recorder", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "app-audio-recorder", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_41_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_41_listener($event) {
return ctx.onAudioUploadSuccess($event, "audioUrl_lose"); return ctx.onAudioUploadSuccess($event, "audioUrl_auto_chose");
}); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
...@@ -8626,13 +8627,31 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d ...@@ -8626,13 +8627,31 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "span", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "\u80DC\u5229\u97F3\u9891: "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "\u5931\u8D25\u97F3\u9891: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "app-audio-recorder", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "app-audio-recorder", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_45_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_45_listener($event) {
return ctx.onAudioUploadSuccess($event, "audioUrl_lose");
});
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "\u80DC\u5229\u97F3\u9891: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "app-audio-recorder", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("audioUploaded", function FormComponent_Template_app_audio_recorder_audioUploaded_49_listener($event) {
return ctx.onAudioUploadSuccess($event, "audioUrl_win"); return ctx.onAudioUploadSuccess($event, "audioUrl_win");
}); });
...@@ -8684,6 +8703,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d ...@@ -8684,6 +8703,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_auto_chose);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_lose); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("audioUrl", ctx.item.audioUrl_lose);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
......
This diff is collapsed.
...@@ -54,6 +54,12 @@ ...@@ -54,6 +54,12 @@
</app-audio-recorder> </app-audio-recorder>
</div> </div>
<div style="margin-bottom: 20px;">
<span style="font-size: 20px;">超时自动选择音频: </span>
<app-audio-recorder [audioUrl]="item.audioUrl_auto_chose" (audioUploaded)="onAudioUploadSuccess($event, 'audioUrl_auto_chose')">
</app-audio-recorder>
</div>
<div style="margin-bottom: 20px;"> <div style="margin-bottom: 20px;">
<span style="font-size: 20px;">失败音频: </span> <span style="font-size: 20px;">失败音频: </span>
<app-audio-recorder [audioUrl]="item.audioUrl_lose" (audioUploaded)="onAudioUploadSuccess($event, 'audioUrl_lose')"> <app-audio-recorder [audioUrl]="item.audioUrl_lose" (audioUploaded)="onAudioUploadSuccess($event, 'audioUrl_lose')">
......
...@@ -30,6 +30,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -30,6 +30,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
audioUrl_tip3: '', audioUrl_tip3: '',
audioUrl_tip_wrong1: '', audioUrl_tip_wrong1: '',
audioUrl_tip_wrong2: '', audioUrl_tip_wrong2: '',
audioUrl_auto_chose: '',
audioUrl_lose: '', audioUrl_lose: '',
audioUrl_win: '', audioUrl_win: '',
}; };
......
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