|
@@ -118,6 +118,7 @@ export const evaluatingData = reactive({
|
|
|
onceErjiPopShow: false, // 是否已经提示过耳机弹窗,重新进入评测页面,重置该状态为false,手动关掉耳机弹窗,改变该状态为true,本次评测都不在提示耳机状态弹窗
|
|
|
needCheckErjiStatus: true, // 点击评测模式进入评测模块的需要检测耳机状态,通过返回按钮进入评测模块的,不检测耳机状态
|
|
|
showOpenCameraPop: false, // 开启摄像头提示弹窗
|
|
|
+ evaluatResultLoading: false, // 评测结果处理中
|
|
|
});
|
|
|
|
|
|
const sendOffsetTime = async (offsetTime: number) => {
|
|
@@ -346,6 +347,8 @@ const handleScoreResult = (res?: IPostMessage) => {
|
|
|
evaluatingData.hideResultModal = true;
|
|
|
}
|
|
|
evaluatingData.resulstMode = evaluatingData.isErrorState ? false : true;
|
|
|
+ evaluatingData.startBegin = false;
|
|
|
+ evaluatingData.evaluatResultLoading = false;
|
|
|
}, 200);
|
|
|
evaluatingData.resultData = {
|
|
|
...body,
|
|
@@ -508,11 +511,12 @@ const recordStartTimePoint = async (res?: IPostMessage) => {
|
|
|
* @returns
|
|
|
*/
|
|
|
export const handleEndEvaluat = (isComplete = false, endType?: string) => {
|
|
|
- // 没有开始评测 , 不是评测模式 , 不评分
|
|
|
- if (!evaluatingData.startBegin || state.modeType !== "evaluating") return;
|
|
|
+ // 没有开始评测 , 不是评测模式 , 不评分;evaluatResultLoading:评测结果处理中,避免重复结束
|
|
|
+ if (!evaluatingData.startBegin || state.modeType !== "evaluating" || evaluatingData.evaluatResultLoading) return;
|
|
|
// 结束录音
|
|
|
// api_stopRecording();
|
|
|
// 结束评测
|
|
|
+ evaluatingData.evaluatResultLoading = true
|
|
|
console.log("评测结束1");
|
|
|
endEvaluating({
|
|
|
musicScoreId: state.examSongId,
|
|
@@ -535,7 +539,7 @@ export const handleEndEvaluat = (isComplete = false, endType?: string) => {
|
|
|
}
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
- evaluatingData.startBegin = false;
|
|
|
+ // evaluatingData.startBegin = false;
|
|
|
if (endType === 'selfCancel') {
|
|
|
// 重置播放倍率
|
|
|
const item: any = (state.sectionStatus && state.section.length === 2) ? state.sectionFirst || state.section[0] : state.times[0];
|
|
@@ -636,6 +640,7 @@ export const handleViewReport = (key: "recordId" | "recordIdStr", type: "gym" |
|
|
|
statusBarTextColor: false,
|
|
|
isOpenLight: true,
|
|
|
c_orientation: 0,
|
|
|
+ showLoadingAnim: true
|
|
|
});
|
|
|
};
|
|
|
|