lex-xin 2 months ago
parent
commit
7037dc0919

+ 1 - 1
src/tenant/music/courseListSearch/index.module.less

@@ -133,7 +133,7 @@
     content: '';
     width: 4px;
     height: 4px;
-    background: #01C1B5;
+    background: #FE2451;
     border-radius: 50%;
     display: inline-block;
     margin-right: 6px;

+ 1 - 1
src/tenant/music/courseListSearch/index.tsx

@@ -318,7 +318,7 @@ export default defineComponent({
               title: () => (
                 <div class={styles.title}>
                   <ColSearch
-                    type={state.projectType === "tenant" ? "tenant" : "person"}
+                    type="tenant"
                     background="transparent"
                     placeholder="请输入素材关键词"
                     onSearch={(val: string) => {

+ 12 - 11
src/tenant/music/coursewarePlay/component/musicScore.tsx

@@ -37,18 +37,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.colexiu.com'
-      : location.origin
-    const query = qs.stringify({
-      t: +new Date(),
-      id: props.music.content,
-      Authorization: Authorization,
-      isHideBack: 'true',
-      limitModel: 'practice' // 只显示练习模式
-    })
 
-    const src = `${origin}/accompany/?` + query
+    const musicScorePath = "/klx-music-score/";
+      const src = qs.stringifyUrl({
+        url: location.origin + musicScorePath,
+        query: {
+          t: +new Date(),
+          id: props.music.content,
+          Authorization: Authorization,
+          isHideBack: "true",
+          limitModel: 'practice', // 只显示练习模式
+          systemType: browserInfo.isStudent ? 'student' : 'teacher',
+        }
+      })
     const checkView = () => {
       fetch(src)
         .then(() => {