| 
					
				 | 
			
			
				@@ -8,7 +8,7 @@ import store from "store"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { formateTimes } from "../../helpers/formateMusic"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { setCustomGradual, setCustomNoteRealValue } from "/src/helpers/customMusicScore" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { initSmoothAnimation, smoothAnimationState, destroySmoothAnimation, moveSmoothAnimationByPlayTime } from "../view-detail/smoothAnimation"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { api_playProgress, api_cloudLoading } from "/src/helpers/communication"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { api_playProgress, api_cloudLoading, simple_playProgress, simple_remove_playProgress, simple_play, simple_paused, simple_updateProgress } from "/src/helpers/communication"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	name: "simple-detail", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,21 +54,28 @@ export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		// 监听评测曲谱音频播放进度,返回 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		const progress = (res: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			detailData.currentTime = res?.currentTime || res?.content?.currentTime; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			detailData.totalTime = res?.totalDuration || res?.content?.totalDuration; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			const time = detailData.currentTime / 1000; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			if (res?.content?.totalDuration > 1000 && detailData.currentTime >= detailData.totalTime) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 播放结束 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			const currentTime = res?.currentTime || res?.content?.currentTime; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			if (currentTime) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if (currentTime < detailData.currentTime) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					state.activeNoteIndex = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				detailData.currentTime = currentTime 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		const simplePlay = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			state.playState = 'play'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			setStep(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		onMounted(async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			const id = query.id || ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			state.isSimplePage = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			await getMusicDetail(id, 'open'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			detailData.isLoading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			state.isSingleLine = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			api_playProgress(progress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			simple_playProgress(progress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			simple_play(simplePlay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			window.addEventListener("message", communicateCb); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |