瀏覽代碼

修复无线套娃

skyblued 2 年之前
父節點
當前提交
fe432f66a9
共有 2 個文件被更改,包括 20 次插入23 次删除
  1. 4 0
      src/subpages/colexiu-report/header/index.tsx
  2. 16 23
      src/subpages/colexiu/popups/evaluating/content.tsx

+ 4 - 0
src/subpages/colexiu-report/header/index.tsx

@@ -57,6 +57,10 @@ export default defineComponent({
     }
 
     const again = () => {
+      if (search.source == 'evaluation') {
+        back()
+        return
+      }
       const behaviorId = sessionStorage.getItem('behaviorId') || '' + new Date().valueOf()
       const url = qs.stringifyUrl({
         url: location.origin + '/orchestra-music-score',

+ 16 - 23
src/subpages/colexiu/popups/evaluating/content.tsx

@@ -138,29 +138,22 @@ export default defineComponent({
     }
 
     const viewReport = () => {
-      // postMessage({
-      //   api: 'openAccompanyWebView',
-      //   content: {
-      //     // url: location.origin + '/accompany/#/report/',
-      //     url:
-      //       location.origin +
-      //         pathname +
-      //         '/colexiu-report.html?source=evaluation&musicId=' +
-      //         search.id +
-      //         '&id=' +
-      //         data.value?.recordIdStr || '',
-      //     orientation: 0,
-      //     isHideTitle: true, // 此处兼容安卓,意思为隐藏全部头部
-      //     statusBarTextColor: false,
-      //     isOpenLight: true,
-      //   },
-      // })
-      location.href = location.origin +
-      pathname +
-      `/colexiu-report.html?source=evaluation&t=${Date.now()}&musicId=` +
-      search.id +
-      '&id=' +
-      data.value?.recordIdStr || ''
+      postMessage({
+        api: 'openAccompanyWebView',
+        content: {
+          url:
+            location.origin +
+              pathname +
+              '/colexiu-report.html?source=evaluation&musicId=' +
+              search.id +
+              '&id=' +
+              data.value?.recordIdStr || '',
+          orientation: 0,
+          isHideTitle: true, // 此处兼容安卓,意思为隐藏全部头部
+          statusBarTextColor: false,
+          isOpenLight: true,
+        },
+      })
     }
     return () => {
       const info = getLeveByScoreId(data.value?.score)