|
@@ -136,7 +136,11 @@ const _sfc_main = {
|
|
// 倒计时数值
|
|
// 倒计时数值
|
|
showCountdown: false,
|
|
showCountdown: false,
|
|
// 是否显示倒计时蒙层
|
|
// 是否显示倒计时蒙层
|
|
- countdownTimer: null
|
|
|
|
|
|
+ countdownTimer: null,
|
|
|
|
+ showGif: false,
|
|
|
|
+ // 控制是否显示GIF
|
|
|
|
+ gifUrl: ""
|
|
|
|
+ // GIF图片的URL
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -558,6 +562,20 @@ const _sfc_main = {
|
|
handleVideoEnded() {
|
|
handleVideoEnded() {
|
|
console.log("视频播放结束");
|
|
console.log("视频播放结束");
|
|
this.videoPlaying = false;
|
|
this.videoPlaying = false;
|
|
|
|
+ if (this.currentVideoIndex === 0) {
|
|
|
|
+ this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
|
|
|
|
+ } else if (this.currentVideoIndex === 1) {
|
|
|
|
+ this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
|
|
|
|
+ } else if (this.currentVideoIndex === 2) {
|
|
|
|
+ this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
|
|
|
|
+ } else if (this.currentVideoIndex === 3) {
|
|
|
|
+ this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
|
|
|
|
+ } else if (this.currentVideoIndex === 4) {
|
|
|
|
+ this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
|
|
|
|
+ } else if (this.currentVideoIndex === 5) {
|
|
|
|
+ this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
|
|
|
|
+ }
|
|
|
|
+ this.showGif = true;
|
|
if (this.currentVideoIndex >= 1) {
|
|
if (this.currentVideoIndex >= 1) {
|
|
this.showStartRecordingButton = true;
|
|
this.showStartRecordingButton = true;
|
|
this.startCountdown();
|
|
this.startCountdown();
|
|
@@ -1401,7 +1419,7 @@ const _sfc_main = {
|
|
this.uploadStatusText += ` (${this.uploadQueue.length}个视频待处理)`;
|
|
this.uploadStatusText += ` (${this.uploadQueue.length}个视频待处理)`;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 修改 proceedToNextQuestion 方法,不再等待上传完成
|
|
|
|
|
|
+ // 修改 proceedToNextQuestion 方法
|
|
proceedToNextQuestion() {
|
|
proceedToNextQuestion() {
|
|
if (this.currentVideoIndex === 4) {
|
|
if (this.currentVideoIndex === 4) {
|
|
common_vendor.index.navigateTo({
|
|
common_vendor.index.navigateTo({
|
|
@@ -1413,6 +1431,8 @@ const _sfc_main = {
|
|
if (this.currentVideoIndex < this.videoList.length) {
|
|
if (this.currentVideoIndex < this.videoList.length) {
|
|
this.videoUrl = this.videoList[this.currentVideoIndex];
|
|
this.videoUrl = this.videoList[this.currentVideoIndex];
|
|
this.videoPlaying = true;
|
|
this.videoPlaying = true;
|
|
|
|
+ this.showGif = false;
|
|
|
|
+ this.gifUrl = "";
|
|
this.currentSubtitle = "";
|
|
this.currentSubtitle = "";
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
const videoContext = common_vendor.index.createVideoContext("myVideo", this);
|
|
const videoContext = common_vendor.index.createVideoContext("myVideo", this);
|
|
@@ -1436,6 +1456,8 @@ const _sfc_main = {
|
|
// 修改 handleAnswerButtonClick 方法
|
|
// 修改 handleAnswerButtonClick 方法
|
|
handleAnswerButtonClick() {
|
|
handleAnswerButtonClick() {
|
|
this.showAnswerButton = false;
|
|
this.showAnswerButton = false;
|
|
|
|
+ this.showGif = false;
|
|
|
|
+ this.gifUrl = "";
|
|
this.proceedToNextQuestion();
|
|
this.proceedToNextQuestion();
|
|
},
|
|
},
|
|
// 处理相机错误
|
|
// 处理相机错误
|
|
@@ -1794,35 +1816,42 @@ const _sfc_main = {
|
|
};
|
|
};
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
- 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
|
|
|
|
|
|
+ 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
|
|
}, $data.showAnswerButton ? {
|
|
}, $data.showAnswerButton ? {
|
|
- f: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
|
|
|
|
|
|
+ i: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- g: $data.currentSubtitle
|
|
|
|
|
|
+ j: $data.currentSubtitle
|
|
}, $data.currentSubtitle ? {
|
|
}, $data.currentSubtitle ? {
|
|
- h: common_vendor.t($data.currentSubtitle)
|
|
|
|
|
|
+ k: common_vendor.t($data.currentSubtitle)
|
|
} : {}, {
|
|
} : {}, {
|
|
- i: $data.useMiniProgramCameraComponent
|
|
|
|
|
|
+ l: $data.useMiniProgramCameraComponent
|
|
}, $data.useMiniProgramCameraComponent ? {
|
|
}, $data.useMiniProgramCameraComponent ? {
|
|
- j: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
|
|
|
|
|
|
+ m: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- k: $data.loading
|
|
|
|
|
|
+ n: $data.loading
|
|
}, $data.loading ? {} : {}, {
|
|
}, $data.loading ? {} : {}, {
|
|
- l: $data.showDebugInfo
|
|
|
|
|
|
+ o: $data.showDebugInfo
|
|
}, $data.showDebugInfo ? common_vendor.e({
|
|
}, $data.showDebugInfo ? common_vendor.e({
|
|
- m: $data.assistantResponse
|
|
|
|
|
|
+ p: $data.assistantResponse
|
|
}, $data.assistantResponse ? {
|
|
}, $data.assistantResponse ? {
|
|
- n: common_vendor.t($data.assistantResponse)
|
|
|
|
|
|
+ q: common_vendor.t($data.assistantResponse)
|
|
} : {}, {
|
|
} : {}, {
|
|
- o: $data.audioTranscript
|
|
|
|
|
|
+ r: $data.audioTranscript
|
|
}, $data.audioTranscript ? {
|
|
}, $data.audioTranscript ? {
|
|
- p: common_vendor.t($data.audioTranscript)
|
|
|
|
|
|
+ s: common_vendor.t($data.audioTranscript)
|
|
} : {}, {
|
|
} : {}, {
|
|
- q: common_vendor.f($data.processedResponses, (item, index, i0) => {
|
|
|
|
|
|
+ t: common_vendor.f($data.processedResponses, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
a: item.role
|
|
a: item.role
|
|
}, item.role ? {
|
|
}, item.role ? {
|
|
@@ -1836,25 +1865,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
});
|
|
});
|
|
})
|
|
})
|
|
}) : {}, {
|
|
}) : {}, {
|
|
- r: $data.showStopRecordingButton
|
|
|
|
|
|
+ v: $data.showStopRecordingButton
|
|
}, $data.showStopRecordingButton ? {
|
|
}, $data.showStopRecordingButton ? {
|
|
- s: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
|
|
|
|
|
|
+ w: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- t: $data.isRecording
|
|
|
|
|
|
+ x: $data.isRecording
|
|
}, $data.isRecording ? {
|
|
}, $data.isRecording ? {
|
|
- v: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
|
|
|
|
|
|
+ y: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
|
|
} : {}, {
|
|
} : {}, {
|
|
- w: $data.showStartRecordingButton
|
|
|
|
|
|
+ z: $data.showStartRecordingButton
|
|
}, $data.showStartRecordingButton ? {
|
|
}, $data.showStartRecordingButton ? {
|
|
- x: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
|
|
|
|
|
|
+ A: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- y: $data.showRetryButton
|
|
|
|
|
|
+ B: $data.showRetryButton
|
|
}, $data.showRetryButton ? {
|
|
}, $data.showRetryButton ? {
|
|
- z: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
|
|
|
|
|
|
+ C: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- A: $data.showCountdown
|
|
|
|
|
|
+ D: $data.showCountdown
|
|
}, $data.showCountdown ? {
|
|
}, $data.showCountdown ? {
|
|
- B: common_vendor.t($data.countdownValue)
|
|
|
|
|
|
+ E: common_vendor.t($data.countdownValue)
|
|
} : {});
|
|
} : {});
|
|
}
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-464e78c6"]]);
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-464e78c6"]]);
|