|
@@ -10,7 +10,7 @@ import { getNoteByMeasuresSlursStart } from "/src/helpers/formateMusic";
|
|
|
import { Icon, Popup, showToast, closeToast, showLoadingToast } from "vant";
|
|
|
import EvaluatResult from "./evaluat-result";
|
|
|
import EvaluatAudio from "./evaluat-audio";
|
|
|
-import { api_getDeviceDelay, api_openAdjustRecording, api_proxyServiceMessage, api_videoUpdate, getEarphone, api_back } from "/src/helpers/communication";
|
|
|
+import { api_getDeviceDelay, api_openAdjustRecording, api_proxyServiceMessage, api_videoUpdate, getEarphone, api_back, api_startDelayCheck } from "/src/helpers/communication";
|
|
|
import EvaluatShare from "./evaluat-share";
|
|
|
import { Vue3Lottie } from "vue3-lottie";
|
|
|
import startData from "./data/start.json";
|
|
@@ -362,28 +362,16 @@ export default defineComponent({
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- onMounted(() => {
|
|
|
+ onMounted(async () => {
|
|
|
+ // 如果打开了延迟检测开关,需要先发送开始检测的消息
|
|
|
+ if (state.setting.soundEffect) {
|
|
|
+ await api_startDelayCheck({});
|
|
|
+ }
|
|
|
evaluatingData.isDisabledPlayMusic = true;
|
|
|
handlePerformDetection();
|
|
|
});
|
|
|
return () => (
|
|
|
<div>
|
|
|
- {/* <Transition name="pop-center">
|
|
|
- {evaluatingData.websocketState && !evaluatingData.startBegin && evaluatingData.checkEnd && (
|
|
|
- <div class={styles.startBtn} onClick={() => {
|
|
|
- startBtnHandle()
|
|
|
- }}>
|
|
|
- <img src={iconEvaluat.evaluatingStart} />
|
|
|
- </div>
|
|
|
- )}
|
|
|
- </Transition>
|
|
|
- <Transition name="pop-center">
|
|
|
- {evaluatingData.websocketState && evaluatingData.startBegin && (
|
|
|
- <div class={styles.endBtn} onClick={() => handleEndBegin()}>
|
|
|
- <img src={iconEvaluat.evaluatingEnd} />
|
|
|
- </div>
|
|
|
- )}
|
|
|
- </Transition> */}
|
|
|
<div class={styles.operatingBtn}>
|
|
|
{evaluatingData.websocketState && !evaluatingData.startBegin && evaluatingData.checkEnd && (
|
|
|
<img class={styles.iconBtn} src={headImg("icon_play.png")}
|
|
@@ -398,19 +386,8 @@ export default defineComponent({
|
|
|
</>
|
|
|
)}
|
|
|
</div>
|
|
|
- {/* <div style={{ display: !evaluatingData.startBegin && !evaluatingData.soundEffectMode ? "" : "none" }} class={styles.dialogueBox} key="start">
|
|
|
- <div class={styles.dialogue}>
|
|
|
- <img class={styles.dialoguebg} src={iconTastBg} />
|
|
|
- <div>演奏前请调整好乐器,保证最佳演奏状态。</div>
|
|
|
- </div>
|
|
|
- <Vue3Lottie class={styles.dialogueIcon} animationData={startData}></Vue3Lottie>
|
|
|
- </div>
|
|
|
- <div style={{ display: evaluatingData.startBegin ? "" : "none" }} class={styles.dialogueBox} key="start">
|
|
|
- <div class={styles.dialogueing}>收音中...</div>
|
|
|
- <Vue3Lottie class={styles.dialogueIcon} animationData={startingData}></Vue3Lottie>
|
|
|
- </div> */}
|
|
|
|
|
|
- {evaluatingData.soundEffectMode && (
|
|
|
+ {/* {evaluatingData.soundEffectMode && (
|
|
|
<DelayCheck
|
|
|
onClose={() => {
|
|
|
evaluatingData.soundEffectMode = false;
|
|
@@ -418,15 +395,10 @@ export default defineComponent({
|
|
|
}}
|
|
|
onBack={() => handleDelayBack()}
|
|
|
/>
|
|
|
- )}
|
|
|
+ )} */}
|
|
|
+
|
|
|
{/* 倒计时 */}
|
|
|
<Countdown />
|
|
|
- {/* 预加载延迟检测组建 */}
|
|
|
- {/* {evaluatingData.preloadJson && !evaluatingData.jsonLoadDone && (
|
|
|
- <div class={styles.preJson}>
|
|
|
- <DelayCheck />
|
|
|
- </div>
|
|
|
- )} */}
|
|
|
|
|
|
<Popup teleport="body" closeOnClickOverlay={false} class={["popup-custom", "van-scale"]} transition="van-scale" v-model:show={evaluatingData.earphoneMode}>
|
|
|
<Earphone
|
|
@@ -436,24 +408,6 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
</Popup>
|
|
|
- {/* <Popup
|
|
|
- teleport="body"
|
|
|
- closeOnClickOverlay={false}
|
|
|
- class={["popup-custom", "van-scale"]}
|
|
|
- transition="van-scale"
|
|
|
- v-model:show={evaluatingData.soundEffectMode}
|
|
|
- >
|
|
|
- <SoundEffect
|
|
|
- onClose={(value: any) => {
|
|
|
- evaluatingData.soundEffectMode = false;
|
|
|
- if (value) {
|
|
|
- state.setting.soundEffect = false;
|
|
|
- }
|
|
|
- handleEndSoundCheck();
|
|
|
- handlePerformDetection();
|
|
|
- }}
|
|
|
- />
|
|
|
- </Popup> */}
|
|
|
|
|
|
{/* 评测作业,非完整评测不显示评测结果弹窗 */}
|
|
|
{
|