|
@@ -562,20 +562,6 @@ const _sfc_main = {
|
|
|
handleVideoEnded() {
|
|
|
console.log("视频播放结束");
|
|
|
this.videoPlaying = false;
|
|
|
- if (this.currentVideoIndex === 0) {
|
|
|
- this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
|
|
|
- } else if (this.currentVideoIndex === 1) {
|
|
|
- this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
|
|
|
- } else if (this.currentVideoIndex === 2) {
|
|
|
- this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
|
|
|
- } else if (this.currentVideoIndex === 3) {
|
|
|
- this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
|
|
|
- } else if (this.currentVideoIndex === 4) {
|
|
|
- this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
|
|
|
- } else if (this.currentVideoIndex === 5) {
|
|
|
- this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
|
|
|
- }
|
|
|
- this.showGif = true;
|
|
|
if (this.currentVideoIndex >= 1) {
|
|
|
this.showStartRecordingButton = true;
|
|
|
this.startCountdown();
|
|
@@ -1431,8 +1417,6 @@ const _sfc_main = {
|
|
|
if (this.currentVideoIndex < this.videoList.length) {
|
|
|
this.videoUrl = this.videoList[this.currentVideoIndex];
|
|
|
this.videoPlaying = true;
|
|
|
- this.showGif = false;
|
|
|
- this.gifUrl = "";
|
|
|
this.currentSubtitle = "";
|
|
|
this.$nextTick(() => {
|
|
|
const videoContext = common_vendor.index.createVideoContext("myVideo", this);
|
|
@@ -1456,8 +1440,6 @@ const _sfc_main = {
|
|
|
// 修改 handleAnswerButtonClick 方法
|
|
|
handleAnswerButtonClick() {
|
|
|
this.showAnswerButton = false;
|
|
|
- this.showGif = false;
|
|
|
- this.gifUrl = "";
|
|
|
this.proceedToNextQuestion();
|
|
|
},
|
|
|
// 处理相机错误
|
|
@@ -1816,42 +1798,35 @@ const _sfc_main = {
|
|
|
};
|
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
return common_vendor.e({
|
|
|
- a: $data.showGif && $data.gifUrl
|
|
|
- }, $data.showGif && $data.gifUrl ? {
|
|
|
- b: $data.gifUrl
|
|
|
- } : {}, {
|
|
|
- c: !$data.showGif
|
|
|
- }, !$data.showGif ? {
|
|
|
- d: $data.videoUrl,
|
|
|
- e: common_vendor.o((...args) => $options.handleVideoError && $options.handleVideoError(...args)),
|
|
|
- f: common_vendor.o((...args) => $options.handleVideoEnded && $options.handleVideoEnded(...args)),
|
|
|
- g: common_vendor.o((...args) => $options.handleTimeUpdate && $options.handleTimeUpdate(...args))
|
|
|
- } : {}, {
|
|
|
- h: $data.showAnswerButton
|
|
|
+ a: $data.videoUrl,
|
|
|
+ b: common_vendor.o((...args) => $options.handleVideoError && $options.handleVideoError(...args)),
|
|
|
+ c: common_vendor.o((...args) => $options.handleVideoEnded && $options.handleVideoEnded(...args)),
|
|
|
+ d: common_vendor.o((...args) => $options.handleTimeUpdate && $options.handleTimeUpdate(...args)),
|
|
|
+ e: $data.showAnswerButton
|
|
|
}, $data.showAnswerButton ? {
|
|
|
- i: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
|
|
|
+ f: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
|
|
|
} : {}, {
|
|
|
- j: $data.currentSubtitle
|
|
|
+ g: $data.currentSubtitle
|
|
|
}, $data.currentSubtitle ? {
|
|
|
- k: common_vendor.t($data.currentSubtitle)
|
|
|
+ h: common_vendor.t($data.currentSubtitle)
|
|
|
} : {}, {
|
|
|
- l: $data.useMiniProgramCameraComponent
|
|
|
+ i: $data.useMiniProgramCameraComponent
|
|
|
}, $data.useMiniProgramCameraComponent ? {
|
|
|
- m: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
|
|
|
+ j: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
|
|
|
} : {}, {
|
|
|
- n: $data.loading
|
|
|
+ k: $data.loading
|
|
|
}, $data.loading ? {} : {}, {
|
|
|
- o: $data.showDebugInfo
|
|
|
+ l: $data.showDebugInfo
|
|
|
}, $data.showDebugInfo ? common_vendor.e({
|
|
|
- p: $data.assistantResponse
|
|
|
+ m: $data.assistantResponse
|
|
|
}, $data.assistantResponse ? {
|
|
|
- q: common_vendor.t($data.assistantResponse)
|
|
|
+ n: common_vendor.t($data.assistantResponse)
|
|
|
} : {}, {
|
|
|
- r: $data.audioTranscript
|
|
|
+ o: $data.audioTranscript
|
|
|
}, $data.audioTranscript ? {
|
|
|
- s: common_vendor.t($data.audioTranscript)
|
|
|
+ p: common_vendor.t($data.audioTranscript)
|
|
|
} : {}, {
|
|
|
- t: common_vendor.f($data.processedResponses, (item, index, i0) => {
|
|
|
+ q: common_vendor.f($data.processedResponses, (item, index, i0) => {
|
|
|
return common_vendor.e({
|
|
|
a: item.role
|
|
|
}, item.role ? {
|
|
@@ -1865,25 +1840,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
});
|
|
|
})
|
|
|
}) : {}, {
|
|
|
- v: $data.showStopRecordingButton
|
|
|
+ r: $data.showStopRecordingButton
|
|
|
}, $data.showStopRecordingButton ? {
|
|
|
- w: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
|
|
|
+ s: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
|
|
|
} : {}, {
|
|
|
- x: $data.isRecording
|
|
|
+ t: $data.isRecording
|
|
|
}, $data.isRecording ? {
|
|
|
- y: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
|
|
|
+ v: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
|
|
|
} : {}, {
|
|
|
- z: $data.showStartRecordingButton
|
|
|
+ w: $data.showStartRecordingButton
|
|
|
}, $data.showStartRecordingButton ? {
|
|
|
- A: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
|
|
|
+ x: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
|
|
|
} : {}, {
|
|
|
- B: $data.showRetryButton
|
|
|
+ y: $data.showRetryButton
|
|
|
}, $data.showRetryButton ? {
|
|
|
- C: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
|
|
|
+ z: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
|
|
|
} : {}, {
|
|
|
- D: $data.showCountdown
|
|
|
+ A: $data.showCountdown
|
|
|
}, $data.showCountdown ? {
|
|
|
- E: common_vendor.t($data.countdownValue)
|
|
|
+ B: common_vendor.t($data.countdownValue)
|
|
|
} : {});
|
|
|
}
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-464e78c6"]]);
|