liushengqiang 1 年之前
父節點
當前提交
ea206f1d53
共有 2 個文件被更改,包括 9 次插入2 次删除
  1. 7 1
      src/page-instrument/follow-model/index.module.less
  2. 2 1
      src/page-instrument/follow-model/index.tsx

+ 7 - 1
src/page-instrument/follow-model/index.module.less

@@ -18,7 +18,7 @@
 .endBtn{
   position: fixed;
   left: 50%;
-  bottom: 16px;
+  
   width: 120px;
   height: 40px;
   margin-left: -70px;
@@ -29,6 +29,12 @@
     width: 100%;
     height: 100%;
   }
+  &.bottom{
+    bottom: 16px;
+  }
+  &.top{
+    bottom: 1.8rem;
+  }
 }
 
 .noteState {

+ 2 - 1
src/page-instrument/follow-model/index.tsx

@@ -4,6 +4,7 @@ import icons from "./icons.json";
 import { followData, handleFollowEnd, handleFollowStart } from "/src/view/follow-practice";
 import { Popup } from "vant";
 import Microphone from "./microphone";
+import state from "/src/state";
 
 export default defineComponent({
 	name: "follow-model",
@@ -24,7 +25,7 @@ export default defineComponent({
 				</Transition>
 				<Transition name="pop-center">
 					{followData.start && (
-						<div class={styles.endBtn} key="end">
+						<div class={[styles.endBtn, state.fingeringInfo?.name && state.fingeringInfo.direction == 'transverse' && state.setting.displayFingering ? styles.top : styles.bottom]} key="end">
 							<img
 								src={icons.end}
 								onClick={() => {