Browse Source

Merge branch 'feature-903' of http://git.dayaedu.com/liushengqiang/orchestra-music-score into feature-903

黄琪勇 6 months ago
parent
commit
e6acbd6536
2 changed files with 20 additions and 14 deletions
  1. 10 7
      index.html
  2. 10 7
      orchestra.html

+ 10 - 7
index.html

@@ -31,13 +31,16 @@
         instance.postMessage(JSON.stringify(data))
       }
     }
-    _postMessage({
-      api: 'cloudLoading',
-      content: {
-        show: true,
-        type: 'fullscreen',
-      },
-    })
+    // 是否隐藏APP的loading动画
+    if (!window.location.href.includes('isHideLoading')) {
+      _postMessage({
+        api: 'cloudLoading',
+        content: {
+          show: true,
+          type: 'fullscreen',
+        },
+      })
+    }
   </script>
 
   <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>

+ 10 - 7
orchestra.html

@@ -31,13 +31,16 @@
         instance.postMessage(JSON.stringify(data))
       }
     }
-    _postMessage({
-      api: 'cloudLoading',
-      content: {
-        show: true,
-        type: 'fullscreen',
-      },
-    })
+    // 是否隐藏APP的loading动画
+    if (!window.location.href.includes('isHideLoading')) {
+      _postMessage({
+        api: 'cloudLoading',
+        content: {
+          show: true,
+          type: 'fullscreen',
+        },
+      })
+    }
   </script>
 
 <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>