Browse Source

排箫反面

liushengqiang 1 year ago
parent
commit
3b6a7314df

+ 2 - 1
src/page-instrument/view-figner/index.tsx

@@ -48,6 +48,7 @@ export default defineComponent({
 		};
 		const getFingeringData = async () => {
 			const subject: any = data.subject + (data.viewIndex === 0 ? "" : data.viewIndex);
+			console.log("🚀 ~ subject:", subject)
 			fingerData.subject = await getFingeringConfig(subject);
 		};
 		const getSounFonts = () => {
@@ -124,7 +125,7 @@ export default defineComponent({
 									class={styles.baseBtn}
 									onClick={() => {
 										data.viewIndex++;
-										if (data.viewIndex > 1) {
+										if (data.viewIndex > 2) {
 											data.viewIndex = 0;
 										}
 										getFingeringData();

+ 7 - 0
src/view/fingering/fingering-config.ts

@@ -38,6 +38,7 @@ export type IVocals =
 	| "hulusi-flute"
 	| "pan-flute"
 	| "pan-flute1"
+	| "pan-flute2"
 	| "ocarina"
 	| "melodica";
 
@@ -311,6 +312,12 @@ export const getFingeringConfig = async (type: IVocals | undefined): Promise<ITy
 				json: pan1.default,
 				relationship: relationships.pan,
 			};
+		case "pan-flute2":
+			const pan2 = await import(`./fingering-img/pan-flute2/index.json`);
+			return {
+				json: pan2.default,
+				relationship: relationships.pan,
+			};
 		case "ocarina":
 			const ocarina = await import(`./fingering-img/ocarina/index.json`);
 			return {

File diff suppressed because it is too large
+ 0 - 0
src/view/fingering/fingering-img/pan-flute/index.json


File diff suppressed because it is too large
+ 1 - 0
src/view/fingering/fingering-img/pan-flute2/index.json


Some files were not shown because too many files changed in this diff