Browse Source

添加切换乐器功能

lex 1 year ago
parent
commit
ed08aa0b96

+ 3 - 1
src/tenant/music/album-detail/index.module.less

@@ -280,6 +280,7 @@
 
 .alumnContainer {
   position: relative;
+
   padding: 0;
   z-index: 12;
 
@@ -288,6 +289,7 @@
     border-radius: 18px !important;
     background-color: #fff;
     margin-bottom: 16px;
+    min-height: 40vh;
   }
 
   .alumnTitle {
@@ -446,4 +448,4 @@
       color: #FFFFFF;
     }
   }
-}
+}

+ 16 - 0
src/tenant/music/music-detail/new-index.tsx

@@ -685,6 +685,10 @@ export default defineComponent({
           {musicDetail.value?.notation ? (
             <span
               class={styles.iconTransfer}
+              style={{
+                display:
+                  musicDetail.value?.musicSheetType === 'SINGLE' ? '' : 'none'
+              }}
               onClick={() => {
                 staff.status = true
               }}
@@ -692,6 +696,18 @@ export default defineComponent({
               转谱
             </span>
           ) : null}
+          <span
+            class={styles.iconTransfer}
+            style={{
+              display:
+                musicDetail.value?.musicSheetType === 'CONCERT' ? '' : 'none'
+            }}
+            onClick={() => {
+              staffData.open = true
+            }}
+          >
+            切换乐器
+          </span>
 
           <p class={styles.musicTitle}>
             {(musicDetail.value?.musicSheetName