|
@@ -313,35 +313,47 @@ 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: "80%",
|
|
|
- right: state.playBtnDirection === "right" ? "initial" : 0,
|
|
|
- left: state.playBtnDirection === "right" ? 0 : "initial",
|
|
|
- top: 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" ? "50px" : 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 {
|
|
|
+ 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 {
|