|
@@ -271,7 +271,7 @@ export default defineComponent({
|
|
|
handleInitTick(osmd?.Sheet?.SheetPlaybackSetting?.Rhythm?.Numerator || 4);
|
|
|
// }
|
|
|
// api_cloudLoading();
|
|
|
- state.playBtnDirection = query.imagePos === 'right' ? 'right' : 'left';
|
|
|
+ state.playBtnDirection = query.imagePos === 'left' ? 'left' : 'right';
|
|
|
state.isAttendClass = (query.imagePos === 'left' || query.imagePos === 'right') ? true : false;
|
|
|
// if (state.fingeringInfo.direction === "vertical" && state.setting.displayFingering) {
|
|
|
// state.musicScoreBtnDirection = state.playBtnDirection === 'right' ? 'left' : 'right';
|
|
@@ -316,47 +316,35 @@ export default defineComponent({
|
|
|
} else {
|
|
|
console.log('指法',state.playBtnDirection,state.platform)
|
|
|
// 老师端,竖向指法,需要根据功能按钮方向进行设置
|
|
|
- // if (state.platform === IPlatform.PC) {
|
|
|
- // return {
|
|
|
- // container: {
|
|
|
- // paddingRight: state.playBtnDirection === "right" ? "initial" : state.fingeringInfo.width,
|
|
|
- // paddingLeft: state.playBtnDirection === "right" ? state.fingeringInfo.width : "initial",
|
|
|
- // },
|
|
|
- // fingerBox: {
|
|
|
- // position: "absolute",
|
|
|
- // width: state.fingeringInfo.width,
|
|
|
- // height: state.fingeringInfo.name === "hulusi-flute" ? "86%" : "80%",
|
|
|
- // right: state.playBtnDirection === "right" ? "initial" : 0,
|
|
|
- // left: state.playBtnDirection === "right" ? 0 : "initial",
|
|
|
- // top: state.fingeringInfo.name === "ocarina" ? "60px" : 0,
|
|
|
- // },
|
|
|
- // };
|
|
|
- // } else {
|
|
|
- // return {
|
|
|
- // container: {
|
|
|
- // paddingLeft: state.fingeringInfo.width,
|
|
|
- // },
|
|
|
- // fingerBox: {
|
|
|
- // position: "absolute",
|
|
|
- // width: state.fingeringInfo.width,
|
|
|
- // height: state.fingeringInfo.name === "hulusi-flute" ? "86%" : "80%",
|
|
|
- // left: 0,
|
|
|
- // top: state.fingeringInfo.name === "ocarina" ? "60px" : 0,
|
|
|
- // },
|
|
|
- // };
|
|
|
- // }
|
|
|
- return {
|
|
|
- container: {
|
|
|
- paddingLeft: state.fingeringInfo.width,
|
|
|
- },
|
|
|
- fingerBox: {
|
|
|
- position: "absolute",
|
|
|
- width: state.fingeringInfo.width,
|
|
|
- height: state.fingeringInfo.name === "hulusi-flute" ? "86%" : "80%",
|
|
|
- left: 0,
|
|
|
- top: state.fingeringInfo.name === "ocarina" ? "60px" : 0,
|
|
|
- },
|
|
|
- };
|
|
|
+ if (state.platform === IPlatform.PC) {
|
|
|
+ return {
|
|
|
+ container: {
|
|
|
+ paddingRight: state.playBtnDirection === "right" ? "initial" : state.fingeringInfo.width,
|
|
|
+ paddingLeft: state.playBtnDirection === "right" ? state.fingeringInfo.width : "initial",
|
|
|
+ },
|
|
|
+ fingerBox: {
|
|
|
+ position: "absolute",
|
|
|
+ width: state.fingeringInfo.width,
|
|
|
+ height: state.fingeringInfo.name === "hulusi-flute" ? "86%" : "80%",
|
|
|
+ right: state.playBtnDirection === "right" ? "initial" : 0,
|
|
|
+ left: state.playBtnDirection === "right" ? 0 : "initial",
|
|
|
+ top: state.fingeringInfo.name === "ocarina" ? "60px" : 0,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ container: {
|
|
|
+ paddingLeft: state.fingeringInfo.width,
|
|
|
+ },
|
|
|
+ fingerBox: {
|
|
|
+ position: "absolute",
|
|
|
+ width: state.fingeringInfo.width,
|
|
|
+ height: state.fingeringInfo.name === "hulusi-flute" ? "86%" : "80%",
|
|
|
+ left: 0,
|
|
|
+ top: state.fingeringInfo.name === "ocarina" ? "60px" : 0,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return {
|