|
@@ -28,7 +28,7 @@ import iconEvaluatingStart from './icons/icon-evaluatingStart.png'
|
|
|
import qs from 'query-string'
|
|
|
import CheckDelayPopup from "/src/pages/detail/CheckDelayPopup";
|
|
|
import Headphone, { HeadphoneData } from "/src/pages/detail/Headphone";
|
|
|
-
|
|
|
+import { modelType } from './index'
|
|
|
|
|
|
/** 初始化评测音频 */
|
|
|
export const evaluatCreateMusicPlayer = () => {
|
|
@@ -237,6 +237,13 @@ const delayData = reactive({
|
|
|
handleToggleTune('stop')
|
|
|
// this.close();
|
|
|
}
|
|
|
+ const handleDelayBack = () => {
|
|
|
+ modelType.value = 'init'
|
|
|
+ delayData.open = false
|
|
|
+ delayData.checkStatus = 'init'
|
|
|
+ delayData.step = 1
|
|
|
+ handleToggleTune('stop')
|
|
|
+ }
|
|
|
/** 开始检测设备延迟 */
|
|
|
const handleStartCheckDelay = async () => {
|
|
|
if (delayData.checkStatus === 'ing') return;
|
|
@@ -524,6 +531,7 @@ const setPlayer = async () => {
|
|
|
//startPlay()
|
|
|
setTimeout(() => {
|
|
|
console.log('关闭弹窗')
|
|
|
+ startButtonShow.value = false
|
|
|
Toast.clear()
|
|
|
hint.close()
|
|
|
}, 100)
|
|
@@ -964,6 +972,7 @@ export default defineComponent({
|
|
|
delayData={delayData}
|
|
|
onStartCheckDelay={() => handleStartCheckDelay()}
|
|
|
onClose={() => handleStopCheckDelay()}
|
|
|
+ onBack={() => handleDelayBack()}
|
|
|
/>
|
|
|
</Popup>
|
|
|
</Teleport>
|