|
@@ -1,6 +1,6 @@
|
|
|
import styles from "./index.module.less";
|
|
|
import { Snackbar } from "@varlet/ui";
|
|
|
-import { closeToast, showLoadingToast } from "vant";
|
|
|
+import { closeToast, showLoadingToast, showToast } from "vant";
|
|
|
import { defineComponent, onMounted, onUnmounted, reactive, ref, watch } from "vue";
|
|
|
import { getLeveByScore, getLeveByScoreMeasure, IEvaluatings } from "./evaluatResult";
|
|
|
import {
|
|
@@ -209,15 +209,17 @@ export const handleStartBegin = async () => {
|
|
|
evaluatingData.resultData = {};
|
|
|
evaluatingData.backtime = 0;
|
|
|
resetPlaybackToStart();
|
|
|
- try {
|
|
|
- // console.log("🚀 ~ content:", evaluatingData.contentData, JSON.stringify(evaluatingData.contentData));
|
|
|
- } catch (error) {}
|
|
|
const res = await startEvaluating(evaluatingData.contentData);
|
|
|
if (res?.api !== "startEvaluating") {
|
|
|
Snackbar.error("请在APP端进行评测");
|
|
|
evaluatingData.startBegin = false;
|
|
|
return;
|
|
|
}
|
|
|
+ if (res?.content?.reson){
|
|
|
+ showToast(res.content.reson);
|
|
|
+ evaluatingData.startBegin = false;
|
|
|
+ return
|
|
|
+ }
|
|
|
//开始录音
|
|
|
api_startRecording();
|
|
|
|