浏览代码

feat: 新版云教练链接修改

TIANYONG 4 月之前
父节点
当前提交
dc73114091
共有 5 个文件被更改,包括 331 次插入323 次删除
  1. 3 1
      src/tenant/music/music-detail/new-index.tsx
  2. 4 2
      src/tenant/music/music.ts
  3. 3 1
      src/views/music/music-detail/index.tsx
  4. 4 2
      src/views/music/music.ts
  5. 317 317
      yarn.lock

+ 3 - 1
src/tenant/music/music-detail/new-index.tsx

@@ -1012,9 +1012,11 @@ export default defineComponent({
                         // const index = staffData.tempPartList.findIndex(
                         //   (i: any) => i.track === item?.track
                         // )
+                        // 新版云教练的谱面类型使用musicRenderType字段
+                        const musicRenderType = staff.radio === 'staff' ? 'staff' : staff.radio === 'first' ? 'firstTone' :  staff.radio === 'fixed' ? 'fixedTone' : '';                        
                         musicBuy(musicDetail.value, () => {}, {
                           'part-index': item?.xmlValue || 0,
-                          sett: staff.radio,
+                          musicRenderType,
                           albumId: route.query.tenantAlbumId || '', // 专辑编号
                           // 1:忽略系统节拍器
                           ignoreSysMetronome:

+ 4 - 2
src/tenant/music/music.ts

@@ -13,12 +13,14 @@ export const getRandomKey = () => {
 
 export const musicBuy = (item: any, callBack?: any, moreQuery = {}) => {
   const behaviorId = localStorage.getItem('behaviorId') || ''
+  // 酷乐秀云教练的部署目录
+  const musicScorePath = "/gym-music-score/";
   const url = qs.stringifyUrl({
-    url: location.origin + '/accompany',
+    url: location.origin + musicScorePath,
     query: {
       id: item.id,
       behaviorId,
-      client: browserInfo.isStudent ? 'student' : 'teacher',
+      systemType: browserInfo.isStudent ? 'student' : 'teacher',
       ...moreQuery
     }
   })

+ 3 - 1
src/views/music/music-detail/index.tsx

@@ -1139,9 +1139,11 @@ export default defineComponent({
                         // const index = staffData.tempPartList.findIndex(
                         //   (i: any) => i.track === item?.track
                         // )
+                        // 新版云教练的谱面类型使用musicRenderType字段
+                        const musicRenderType = staff.radio === 'staff' ? 'staff' : staff.radio === 'first' ? 'firstTone' :  staff.radio === 'fixed' ? 'fixedTone' : '';
                         musicBuy(musicDetail.value, () => {}, {
                           'part-index': item?.xmlValue || 0,
-                          sett: staff.radio
+                          musicRenderType
                         })
                       }, 500)
 

+ 4 - 2
src/views/music/music.ts

@@ -13,12 +13,14 @@ export const getRandomKey = () => {
 
 export const musicBuy = (item: any, callBack?: any, moreQuery = {}) => {
   const behaviorId = localStorage.getItem('behaviorId') || ''
+  // 酷乐秀云教练的部署目录
+  const musicScorePath = "/gym-music-score/";
   const url = qs.stringifyUrl({
-    url: location.origin + '/accompany',
+    url: location.origin + musicScorePath,
     query: {
       id: item.id,
       behaviorId,
-      client: browserInfo.isStudent ? 'student' : 'teacher',
+      systemType: browserInfo.isStudent ? 'student' : 'teacher',
       ...moreQuery
     }
   })

文件差异内容过多而无法显示
+ 317 - 317
yarn.lock


部分文件因为文件数量过多而无法显示