Browse Source

修改链接

lex 1 year ago
parent
commit
3788d3d4d5
2 changed files with 3 additions and 6 deletions
  1. 1 4
      src/views/coursewarePlay/component/musicScore.tsx
  2. 2 2
      src/views/hook/useFee.ts

+ 1 - 4
src/views/coursewarePlay/component/musicScore.tsx

@@ -73,10 +73,7 @@ export default defineComponent({
       if (!browserInfo.ios) {
         isLoading.value = true;
       }
-      const parmas = qs.stringify({
-        id: props.music.content
-      });
-      const src = `${location.origin}/orchestra-music-score/?` + parmas;
+      const src = `${location.origin}${path}?Authorization=${Authorization}#/detail/${props.music.content}?part-index=0`;
       postMessage(
         {
           api: 'openAccompanyWebView',

+ 2 - 2
src/views/hook/useFee.ts

@@ -8,7 +8,7 @@ export const gotoMemberCenter = () => {
   postMessage({ api: 'back' });
   const browserInfo = browser();
   if (browserInfo.isApp) {
-    const url = window.location.origin + `/#/member`;
+    const url = window.location.origin + window.location.pathname + `#/member`;
     postMessage({
       api: 'openWebView',
       content: {
@@ -18,7 +18,7 @@ export const gotoMemberCenter = () => {
     });
     return;
   }
-  location.href = location.origin + `/#/member`;
+  location.href = window.location.origin + window.location.pathname + `#/member`;
 };
 
 /**验证是否是会员 */