浏览代码

去掉试听,添加乐器编号

lex 9 月之前
父节点
当前提交
bc3f3ace8d
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/views/xiaoku-music/index.tsx

+ 7 - 3
src/views/xiaoku-music/index.tsx

@@ -752,7 +752,7 @@ export default defineComponent({
                             </div>
                             <div class={styles.titleDes}>{item.composer}</div>
                           </div>
-                          {index == 0 ? (
+                          {/* {index == 0 ? (
                             <NButton
                               color="#259CFE"
                               textColor="#fff"
@@ -809,7 +809,7 @@ export default defineComponent({
                                 }
                               />
                             </NButton>
-                          )}
+                          )} */}
 
                           <img class={styles.arrow} src={icon_arrow} />
                         </div>
@@ -860,13 +860,17 @@ export default defineComponent({
                     } else if (data.showMusicImg === 'staff') {
                       lineType = 'staff';
                     }
-                    const src = `${vaildMusicScoreUrl()}/instrument?v=${+new Date()}&platform=pc&showGuide=true&id=${
+                    let src = `${vaildMusicScoreUrl()}/instrument?v=${+new Date()}&platform=pc&showGuide=true&id=${
                       activeItem.value.id
                     }&Authorization=${
                       user.getToken
                     }&musicRenderType=${lineType}&showGuide=true&part-index=${
                       data.musicInstrumentIndex
                     }`;
+
+                    if (data.tagIndex) {
+                      src += '&instrumentId=' + data.tagIndex;
+                    }
                     if (
                       window.matchMedia('(display-mode: standalone)').matches
                     ) {