liushengqiang 2 vuotta sitten
vanhempi
commit
d6e1fef290
1 muutettua tiedostoa jossa 15 lisäystä ja 12 poistoa
  1. 15 12
      src/page-instrument/view-detail/index.tsx

+ 15 - 12
src/page-instrument/view-detail/index.tsx

@@ -72,24 +72,23 @@ const resetFrequency = (list: any[]) => {
  * 乐器指法处理
  */
 const setNoteHalfTone = (list: any[]) => {
-	const instrumentNames = ['melodica']
+	const instrumentNames = ["melodica"];
 	if (!state.fingeringInfo?.name || !instrumentNames.includes(state.fingeringInfo.name)) return list;
 	for (let i = 0; i < list.length; i++) {
 		const note = list[i];
-		if (note.noteElement?.pitch?.accidentalXml){
+		if (note.noteElement?.pitch?.accidentalXml) {
 			const accidentalXml = note.noteElement?.pitch?.accidentalXml;
 			if ([]) {
-
 			}
-			if (accidentalXml === 'flat'){
+			if (accidentalXml === "flat") {
 				// note.realKey = note.realKey + 1;
-			} else if (accidentalXml === 'sharp'){
+			} else if (accidentalXml === "sharp") {
 				// note.realKey = note.realKey + 1;
 			}
 		}
 	}
 	return list;
-}
+};
 
 export default defineComponent({
 	name: "music-list",
@@ -175,7 +174,7 @@ export default defineComponent({
 			state.playMode = data.audioType === "MP3" ? "MP3" : "MIDI";
 			state.originSpeed = state.speed = data.playSpeed;
 			const track = data.code || data.track;
-			state.track = track ? track.replace(/ /g, '').toLocaleLowerCase() : "";
+			state.track = track ? track.replace(/ /g, "").toLocaleLowerCase() : "";
 			state.enableNotation = data.notation ? true : false;
 
 			// 映射声部ID
@@ -340,7 +339,7 @@ export default defineComponent({
 		});
 		const browsInfo = browser();
 		const handleOpenFignerView = () => {
-			if (!query.modelType){
+			if (!query.modelType) {
 				detailData.orientation = state.fingeringInfo.orientation || 0;
 				api_setRequestedOrientation(detailData.orientation);
 			}
@@ -357,7 +356,7 @@ export default defineComponent({
 			detailData.fingerPreView = true;
 		};
 		const handleCloseFignerView = () => {
-			if (!query.modelType && detailData.orientation == 1){
+			if (!query.modelType && detailData.orientation == 1) {
 				api_setRequestedOrientation(0);
 			}
 			detailData.fingerPreView = false;
@@ -437,20 +436,24 @@ export default defineComponent({
 						{storeData.isApp && <RecordingTime />}
 						{/* 作业 */}
 						{query.workRecord && <WorkIndex />}
-						{followData.start + ""}
 						{/* 曲谱列表 */}
 						{state.playState == "play" ||
 						followData.start ||
 						evaluatingData.startBegin ||
 						query.workRecord ||
-						query.modelType ? null : (
+						query.modelType ||
+						state.platform === IPlatform.PC ? null : (
 							<TheMusicList />
 						)}
 					</>
 				)}
 
 				<Popup teleport="body" v-model:show={detailData.fingerPreView} position="bottom">
-					<ViewFigner subject={state.fingeringInfo.name} isComponent={true} onClose={handleCloseFignerView} />
+					<ViewFigner
+						subject={state.fingeringInfo.name}
+						isComponent={true}
+						onClose={handleCloseFignerView}
+					/>
 				</Popup>
 			</div>
 		);