lex-xin 4 months ago
parent
commit
2e02a12453

+ 0 - 5
src/views/choose-homework/music-list/index.tsx

@@ -394,11 +394,6 @@ export default defineComponent({
         content: {
           id: row.id,
           partIndex: this.selectedPartIndex
-          // url: location.origin + '/accompany/#/detail/' + row.examSongId + '?mode=homework',
-          // orientation: 0,
-          // isHideTitle: true,
-          // statusBarTextColor: false,
-          // isOpenLight: true,
         }
       });
     },

+ 12 - 7
src/views/coursewarePlay/component/musicScore.tsx

@@ -38,14 +38,19 @@ export default defineComponent({
     const renderError = ref(false);
     const renderSuccess = ref(false);
     const Authorization = sessionStorage.getItem('Authorization') || '';
+    // const origin = /(localhost|192)/.test(location.host)
+    //   ? 'https://test.gym.lexiaoya.cn'
+    //   : location.origin;
+    // const src = `${origin}/${
+    //   state.platformType === 'TEACHER' ? 'accompany-teacher' : 'accompany'
+    // }/?Authorization=${Authorization}&liveConfig=1#/detail/${
+    //   props.music.content
+    // }?isHideBack=true`;
+
     const origin = /(localhost|192)/.test(location.host)
-      ? 'https://test.gym.lexiaoya.cn'
-      : location.origin;
-    const src = `${origin}/${
-      state.platformType === 'TEACHER' ? 'accompany-teacher' : 'accompany'
-    }/?Authorization=${Authorization}&liveConfig=1#/detail/${
-      props.music.content
-    }?isHideBack=true`;
+          ? 'https://test.gym.lexiaoya.cn/'
+          : location.origin;
+    const src = `${origin}/gym-music-score/?id=${props.music.content}&Authorization=${Authorization}&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
 
     const checkView = () => {
       fetch(src)

+ 14 - 8
src/views/coursewarePlay/component/video-play.tsx

@@ -324,14 +324,20 @@ export default defineComponent({
       // 去云练习完整版
       e.stopPropagation();
       const Authorization = sessionStorage.getItem('Authorization') || '';
-      const origin = /(localhost|192)/.test(location.host)
-        ? 'https://test.gym.lexiaoya.cn'
-        : location.origin;
-      const src = `${origin}/${
-        state.platformType === 'TEACHER' ? 'accompany-teacher' : 'accompany'
-      }/#/detail/${
-        item.value.materialMusicId
-      }?Authorization=${Authorization}&isHideTitle=true`;
+      // const origin = /(localhost|192)/.test(location.host)
+      //   ? 'https://test.gym.lexiaoya.cn'
+      //   : location.origin;
+      // const src = `${origin}/${
+      //   state.platformType === 'TEACHER' ? 'accompany-teacher' : 'accompany'
+      // }/#/detail/${
+      //   item.value.materialMusicId
+      // }?Authorization=${Authorization}&isHideTitle=true`;
+
+    const origin = /(localhost|192)/.test(location.host)
+          ? 'https://test.gym.lexiaoya.cn/'
+          : location.origin;
+    const src = `${origin}/gym-music-score/?id=${item.value.materialMusicId}&Authorization=${Authorization}&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
+
       postMessage({
         api: 'openAccompanyWebView',
         content: {

+ 2 - 8
src/views/coursewarePlay/index.tsx

@@ -1118,15 +1118,9 @@ export default defineComponent({
                             const Authorization =
                               sessionStorage.getItem('Authorization') || '';
                             const origin = /(localhost|192)/.test(location.host)
-                              ? 'https://test.gym.lexiaoya.cn'
+                              ? 'https://test.gym.lexiaoya.cn/'
                               : location.origin;
-                            const src = `${origin}/${
-                              state.platformType === 'TEACHER'
-                                ? 'accompany-teacher'
-                                : 'accompany'
-                            }/#/detail/${
-                              m.materialMusicId
-                            }?Authorization=${Authorization}`;
+                            const src = `${origin}/gym-music-score/?id=${m.materialMusicId}&Authorization=${Authorization}&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
                             postMessage({
                               api: 'openAccompanyWebView',
                               content: {