|
@@ -231,10 +231,14 @@ const _sfc_main = {
|
|
|
// 思考计时器
|
|
|
questionRetryMap: {},
|
|
|
// 用于跟踪每个问题的重试次数
|
|
|
- maxQuestionRetries: 2
|
|
|
+ maxQuestionRetries: 2,
|
|
|
// 每个问题最大重试次数
|
|
|
+ statusBarHeight: 0
|
|
|
};
|
|
|
},
|
|
|
+ onLoad() {
|
|
|
+ this.statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight || 0;
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.fetchQuestions();
|
|
|
this.checkAudioPermission();
|
|
@@ -2743,6 +2747,7 @@ const _sfc_main = {
|
|
|
this.startPersonDetectionInterval();
|
|
|
}
|
|
|
}
|
|
|
+ common_vendor.index.hideHomeButton();
|
|
|
},
|
|
|
// 添加新方法:阻止视频控制
|
|
|
preventVideoControl(e) {
|
|
@@ -3290,48 +3295,49 @@ const _sfc_main = {
|
|
|
};
|
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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: common_vendor.o((...args) => $options.preventVideoControl && $options.preventVideoControl(...args)),
|
|
|
+ a: $data.statusBarHeight + "px",
|
|
|
+ b: $data.videoUrl,
|
|
|
+ c: common_vendor.o((...args) => $options.handleVideoError && $options.handleVideoError(...args)),
|
|
|
+ d: common_vendor.o((...args) => $options.handleVideoEnded && $options.handleVideoEnded(...args)),
|
|
|
+ e: common_vendor.o((...args) => $options.handleTimeUpdate && $options.handleTimeUpdate(...args)),
|
|
|
f: common_vendor.o((...args) => $options.preventVideoControl && $options.preventVideoControl(...args)),
|
|
|
- g: $data.showAnswerButton
|
|
|
+ g: common_vendor.o((...args) => $options.preventVideoControl && $options.preventVideoControl(...args)),
|
|
|
+ h: $data.showAnswerButton
|
|
|
}, $data.showAnswerButton ? {
|
|
|
- h: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
|
|
|
+ i: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
|
|
|
} : {}, {
|
|
|
- i: $data.currentSubtitle || $data.showSubtitleText && $data.subtitleText
|
|
|
+ j: $data.currentSubtitle || $data.showSubtitleText && $data.subtitleText
|
|
|
}, $data.currentSubtitle || $data.showSubtitleText && $data.subtitleText ? common_vendor.e({
|
|
|
- j: $data.currentVideoIndex > 0
|
|
|
+ k: $data.currentVideoIndex > 0
|
|
|
}, $data.currentVideoIndex > 0 ? {
|
|
|
- k: common_vendor.t($data.currentVideoIndex),
|
|
|
- l: common_vendor.t($options.totalQuestions)
|
|
|
+ l: common_vendor.t($data.currentVideoIndex),
|
|
|
+ m: common_vendor.t($options.totalQuestions)
|
|
|
} : {}, {
|
|
|
- m: !$data.isFollowUpQuestion
|
|
|
+ n: !$data.isFollowUpQuestion
|
|
|
}, !$data.isFollowUpQuestion ? {
|
|
|
- n: common_vendor.t($data.currentSubtitle)
|
|
|
+ o: common_vendor.t($data.currentSubtitle)
|
|
|
} : {
|
|
|
- o: common_vendor.t($data.parentQuestion),
|
|
|
- p: common_vendor.t($data.subtitleText || $data.currentSubtitle)
|
|
|
+ p: common_vendor.t($data.parentQuestion),
|
|
|
+ q: common_vendor.t($data.subtitleText || $data.currentSubtitle)
|
|
|
}) : {}, {
|
|
|
- q: $data.useMiniProgramCameraComponent
|
|
|
+ r: $data.useMiniProgramCameraComponent
|
|
|
}, $data.useMiniProgramCameraComponent ? {
|
|
|
- r: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
|
|
|
+ s: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
|
|
|
} : {}, {
|
|
|
- s: $data.showPageWarning ? 1 : "",
|
|
|
- t: $data.loading
|
|
|
+ t: $data.showPageWarning ? 1 : "",
|
|
|
+ v: $data.loading
|
|
|
}, $data.loading ? {} : {}, {
|
|
|
- v: $data.showDebugInfo
|
|
|
+ w: $data.showDebugInfo
|
|
|
}, $data.showDebugInfo ? common_vendor.e({
|
|
|
- w: $data.assistantResponse
|
|
|
+ x: $data.assistantResponse
|
|
|
}, $data.assistantResponse ? {
|
|
|
- x: common_vendor.t($data.assistantResponse)
|
|
|
+ y: common_vendor.t($data.assistantResponse)
|
|
|
} : {}, {
|
|
|
- y: $data.audioTranscript
|
|
|
+ z: $data.audioTranscript
|
|
|
}, $data.audioTranscript ? {
|
|
|
- z: common_vendor.t($data.audioTranscript)
|
|
|
+ A: common_vendor.t($data.audioTranscript)
|
|
|
} : {}, {
|
|
|
- A: common_vendor.f($data.processedResponses, (item, index, i0) => {
|
|
|
+ B: common_vendor.f($data.processedResponses, (item, index, i0) => {
|
|
|
return common_vendor.e({
|
|
|
a: item.role
|
|
|
}, item.role ? {
|
|
@@ -3345,32 +3351,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
});
|
|
|
})
|
|
|
}) : {}, {
|
|
|
- B: $data.showStopRecordingButton
|
|
|
+ C: $data.showStopRecordingButton
|
|
|
}, $data.showStopRecordingButton ? {
|
|
|
- C: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
|
|
|
+ D: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
|
|
|
} : {}, {
|
|
|
- D: $data.isRecording
|
|
|
+ E: $data.isRecording
|
|
|
}, $data.isRecording ? {
|
|
|
- E: common_vendor.t($data.recordingTimeDisplay),
|
|
|
- F: `conic-gradient(${$data.progressColor} ${$options.progressPercent}%, ${$data.progressBgColor} 0%)`
|
|
|
+ F: common_vendor.t($data.recordingTimeDisplay),
|
|
|
+ G: `conic-gradient(${$data.progressColor} ${$options.progressPercent}%, ${$data.progressBgColor} 0%)`
|
|
|
} : {}, {
|
|
|
- G: $data.showStartRecordingButton
|
|
|
+ H: $data.showStartRecordingButton
|
|
|
}, $data.showStartRecordingButton ? {
|
|
|
- H: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
|
|
|
+ I: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
|
|
|
} : {}, {
|
|
|
- I: $data.showRetryButton
|
|
|
+ J: $data.showRetryButton
|
|
|
}, $data.showRetryButton ? {
|
|
|
- J: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
|
|
|
+ K: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
|
|
|
} : {}, {
|
|
|
- K: $data.showCountdown
|
|
|
+ L: $data.showCountdown
|
|
|
}, $data.showCountdown ? {
|
|
|
- L: common_vendor.t($data.countdownValue)
|
|
|
+ M: common_vendor.t($data.countdownValue)
|
|
|
} : {}, {
|
|
|
- M: $data.showRerecordButton
|
|
|
+ N: $data.showRerecordButton
|
|
|
}, $data.showRerecordButton ? {
|
|
|
- N: common_vendor.o((...args) => $options.handleRerecordButtonClick && $options.handleRerecordButtonClick(...args))
|
|
|
+ O: common_vendor.o((...args) => $options.handleRerecordButtonClick && $options.handleRerecordButtonClick(...args))
|
|
|
} : {}, {
|
|
|
- O: $data.showPageWarning ? 1 : ""
|
|
|
+ P: $data.showPageWarning ? 1 : ""
|
|
|
});
|
|
|
}
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-464e78c6"]]);
|