lex 9 months ago
parent
commit
5f006b045b

+ 4 - 1
src/views/accompany/music-detail.module.less

@@ -9,6 +9,10 @@
     .plyr__controls .plyr__controls__item.plyr__progress__container {
     .plyr__controls .plyr__controls__item.plyr__progress__container {
       padding-left: 6px;
       padding-left: 6px;
     }
     }
+
+    .plyr__control svg.icon--not-pressed {
+      padding-left: 1px;
+    }
   }
   }
 }
 }
 
 
@@ -34,7 +38,6 @@
 
 
   .musicImg {
   .musicImg {
     margin-top: -32px;
     margin-top: -32px;
-    background: #C4C0BD;
     border-radius: 16px;
     border-radius: 16px;
     border: 2px solid #FFFFFF;
     border: 2px solid #FFFFFF;
     width: 85px;
     width: 85px;

+ 13 - 1
src/views/accompany/music-detail.tsx

@@ -219,7 +219,19 @@ export default defineComponent({
 
 
     //进入云练习
     //进入云练习
     const openView = async (item: any) => {
     const openView = async (item: any) => {
-      const src = `${location.origin}/orchestra-music-score/?id=${item.id}&part-index=${staffData.selectedPartIndex}`
+      let src = `${location.origin}/orchestra-music-score/?id=${item.id}&part-index=${staffData.selectedPartIndex}`
+      if (staffData.details.musicSheetType === 'SINGLE') {
+        // 默认进页面显示对应的曲谱
+        let lineType = 'staff'
+        if (staffData.radio === 'first') {
+          lineType = 'firstTone'
+        } else if (staffData.radio === 'fixed') {
+          lineType = 'fixedTone'
+        } else if (staffData.radio === 'staff') {
+          lineType = 'staff'
+        }
+        src += '&musicRenderType=' + lineType
+      }
       console.log('🚀 ~ src:', src)
       console.log('🚀 ~ src:', src)
       postMessage({
       postMessage({
         api: 'openAccompanyWebView',
         api: 'openAccompanyWebView',