浏览代码

style: ui走查修改

TIANYONG 3 月之前
父节点
当前提交
544c2797d1

+ 2 - 2
src/page-instrument/custom-plugins/guide-driver/index.less

@@ -4,8 +4,8 @@
 }
 
 .popoverClass .driver-popover-next-btn {
-  width: 102px;
-  height: 34px;
+  width: 100px;
+  height: 33px;
   text-shadow: none;
   border: none;
   font-weight: 600;

+ 2 - 2
src/page-instrument/custom-plugins/guide-driver/index.tsx

@@ -58,7 +58,6 @@ export const PractiseDriver = defineComponent({
         popover.wrapper.style.marginLeft = (rect?.width || 0) / 2 + 4 + "px";
       } catch {}
     };
-
     const driverOptions = (): Config => {
       let length = 10;
 
@@ -79,7 +78,8 @@ export const PractiseDriver = defineComponent({
       if (!props.statusAll.subjectStatus) {
         length -= 1;
       }
-      if (!props.statusAll.playType) {
+      // 非midi
+      if (!props.statusAll.playType && !state.isAppPlay) {
         length -= 1;
       }
 

+ 12 - 0
src/page-instrument/header-top/index.module.less

@@ -291,6 +291,18 @@
             }
         }
 
+        &.backgroundSongAct:active {
+            >img {
+                content: url("./image/backgroundAct.png");
+            }
+        }
+
+        &.musicSongAct:active {
+            >img {
+                content: url("./image/musicAct.png");
+            }
+        }
+
         &.settingMode:active {
             >img {
                 content: url("./image/icon_menuAct.png");

+ 1 - 1
src/page-instrument/header-top/index.tsx

@@ -838,7 +838,7 @@ export default defineComponent({
             <div
               id={state.platform === IPlatform.PC ? "teacherTop-1" : "studnetT-1"}
               style={{ display: originBtn.value.display ? "" : "none" }}
-              class={["driver-3", styles.btn, originBtn.value.disabled && styles.disabled, state.playType === "play" ? styles.playSource : styles.songSource]}
+              class={["driver-3", styles.btn, originBtn.value.disabled && styles.disabled, state.playType === "play" ? styles.playSource : styles.songSource, state.playSource === "background" ? styles.backgroundSongAct : styles.musicSongAct]}
               onClick={() => {
                 const oldPlayType = state.playType;
                 const oldPlaySource = state.playSource;