浏览代码

feat: 作业修改

TIANYONG 6 月之前
父节点
当前提交
b197fde187

+ 5 - 3
src/page-instrument/custom-plugins/work-home/index.module.less

@@ -8,7 +8,7 @@
     color: #080808;
     width: 106px;
     text-align: center;
-    padding: 4px 0;
+    padding: 5px 0;
     line-height: 1;
     z-index: 100;
     span {
@@ -17,7 +17,8 @@
     .blinkDot {
         position: absolute;
         left: 8px;
-        top: 9px;
+        top: 50%;
+        transform: translateY(-50%);
         width: 3px;
         height: 3px;
         border-radius: 50%;
@@ -27,11 +28,12 @@
     .grayDot {
         position: absolute;
         left: 8px;
-        top: 9px;
+        top: 50%;
         width: 3px;
         height: 3px;
         border-radius: 50%;
         background: #aaaaaa;
+        transform: translateY(-50%);
     }
 }
 

+ 4 - 0
src/page-instrument/evaluat-model/index.tsx

@@ -196,6 +196,10 @@ export default defineComponent({
           preTime = state.times[idx] ? state.times[idx].time * 1000 : 0;
         }
         actualBeatLength = startIndex == 0 && state.isOpenMetronome ? actualBeatLength : 0;
+        // 妙极客的曲子,选择的第一小节,beatLength需要传递fixtime
+        if (state.isEvxml && startIndex == 0) {
+          actualBeatLength = Math.round((state.times[0].fixtime * 1000) / 1);
+        }          
         selectTimes = state.times.filter((n: any, index: number) => {
           return index >= startIndex && index <= endIndex;
         });