浏览代码

fix:模式图片

liushengqiang 2 年之前
父节点
当前提交
419e6824b1

+ 1 - 1
src/views/courseware-play/component/musicScore.module.less

@@ -75,7 +75,7 @@
           width: 60% !important;
         }
         &:last-child{
-          width: 100% !important;
+          width: 80% !important;
         }
       }
     }

+ 1 - 1
src/views/courseware-play/component/musicScore.tsx

@@ -46,7 +46,7 @@ export default defineComponent({
       headerHeight: 32,
       Authorization: Authorization
     })
-    let src = `http://192.168.3.114:3000/instrument.html?id=43539&modelType=practise&Authorization=bearer c35c286f-fff1-4ba7-86fc-d911c79b39ab`
+    let src = `http://192.168.3.114:3000/instrument.html?id=${props.music.content}&modelType=practise&Authorization=bearer c35c286f-fff1-4ba7-86fc-d911c79b39ab`
     const checkView = () => {
       fetch(src)
         .then(() => {

+ 1 - 1
src/views/courseware-play/component/points.tsx

@@ -69,7 +69,7 @@ export default defineComponent({
                   {item.type === 'IMG' && <img src={item.content} />}
                   {item.type === 'AUDIO' && <img src={item.content} />}
                   {item.type === 'SONG' && (
-                    <img src="https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1687673062603-1.png" />
+                    <img src={item.img} />
                   )}
                 </div>
                 <div class={styles.title}>

+ 8 - 0
src/views/courseware-play/index.tsx

@@ -172,7 +172,15 @@ export default defineComponent({
           id: '4',
           name: '唱歌 上学歌',
           type: 'SONG',
+          img: "https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1687673062603-1.png",
           content: '43539'
+        },
+        {
+          id: '5',
+          name: '唱歌 无别',
+          type: 'SONG',
+          img: "https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1687686201378-1.png",
+          content: '43540'
         }
       ];
       popupData.itemActive = data.knowledgePointList[0].id;