Browse Source

feat: 新版云教练路径修改

TIANYONG 5 months ago
parent
commit
dd6eef0d71

+ 5 - 3
src/student/member-center/member-record.tsx

@@ -199,13 +199,15 @@ export default defineComponent({
                   border={false}
                   onClick={() => {
                     const behaviorId = +new Date()
-                    //dev.colexiu.com/accompany/colexiu-report.html?id=817&behaviorId=165699355934918269&Authorization=bearer%20aea0b4c1-423c-4466-902a-17dc7ac8938a#/
+                    // 酷乐秀云教练的部署目录
+                    const musicScorePath = "/klx-music-score/";
+                    //https://dev.colexiu.com/klx-music-score/#/evaluat-report?id=6856&musicRenderType=staff&systemType=student&Authorization=bearer%2043d42470-e968-4efe-a17a-b859a350cbff
                     postMessage({
                       api: 'openAccompanyWebView',
                       content: {
                         url:
-                          location.origin +
-                          '/accompany/colexiu-report.html?id=' +
+                          location.origin + musicScorePath +
+                          'evaluat-report?id=' +
                           item.id +
                           '&behaviorId=' +
                           behaviorId,

+ 3 - 2
src/student/share-active/track-review-activity/index.tsx

@@ -295,12 +295,13 @@ export default defineComponent({
           return
         }
         const browserInfo = browser()
+        const musicScorePath = "/klx-music-score/";
         const url = qs.stringifyUrl({
-          url: location.origin + '/accompany',
+          url: location.origin + musicScorePath,
           query: {
             id: selectMusic.musicSheetId,
             behaviorId: this.behaviorId,
-            client: browserInfo.isStudent ? 'student' : 'teacher',
+            systemType: browserInfo.isStudent ? 'student' : 'teacher',
             setting: JSON.stringify({
               mode: 'EVALUATING',
               resets: ['SPEED'],

+ 3 - 2
src/student/share-active/track-review-activity/track-song.tsx

@@ -103,12 +103,13 @@ export default defineComponent({
     onOpenMusic(item: any) {
       try {
         const browserInfo = browser()
+        const musicScorePath = "/klx-music-score/";
         const url = qs.stringifyUrl({
-          url: location.origin + '/accompany',
+          url: location.origin + musicScorePath,
           query: {
             id: item.musicSheetId,
             behaviorId: this.behaviorId,
-            client: browserInfo.isTeacher ? 'teacher' : 'student',
+            systemType: browserInfo.isTeacher ? 'teacher' : 'student',
             setting: JSON.stringify({
               mode: 'EVALUATING',
               resets: ['SPEED'],

+ 3 - 2
src/teacher/share-page/share-music-sheet/index.tsx

@@ -55,8 +55,9 @@ export default defineComponent({
     onDetail() {
       const behaviorId = getRandomKey()
       const browserInfo = browser()
+      const musicScorePath = "/klx-music-score/";
       const url = qs.stringifyUrl({
-        url: location.origin + '/accompany',
+        url: location.origin + musicScorePath,
         query: {
           id: this.id,
           recomUserId:
@@ -66,7 +67,7 @@ export default defineComponent({
               : this.recomUserId,
           activityId: this.activityId,
           discounts: this.discounts,
-          client: browserInfo.isStudent ? 'student' : 'teacher',
+          systemType: browserInfo.isStudent ? 'student' : 'teacher',
           behaviorId
         }
       })

+ 3 - 2
src/tenant/exercise-record/modals/detail-item.tsx

@@ -59,12 +59,13 @@ export default defineComponent({
     }
     const gotoDetail = () => {
       const behaviorId = +new Date()
+      const musicScorePath = "/klx-music-score/";
       postMessage({
         api: 'openAccompanyWebView',
         content: {
           url:
-            location.origin +
-            '/accompany/colexiu-report.html?id=' +
+            location.origin + musicScorePath +
+            'evaluat-report?id=' +
             props.item.id +
             '&behaviorId=' +
             behaviorId,