lex 11 months ago
parent
commit
094792a75b
2 changed files with 9 additions and 8 deletions
  1. 1 1
      instrument.html
  2. 8 7
      src/page-instrument/view-figner/index.tsx

+ 1 - 1
instrument.html

@@ -45,7 +45,7 @@
   <img id="loading" class="show" src="/loading.svg" alt="loading" />
   <script>
     // 处理课堂乐器老师端打开听音练习时去掉加载动画
-    if (location.href.indexOf('view-figner') >= 0 && location.href.indexOf('platform=pc') >= 0 || (location.href.indexOf('view-figner') >= 0 && location.href.indexOf('linkSource=class') >= 0)) {
+    if (location.href.indexOf('view-figner') >= 0 && location.href.indexOf('platform=pc') >= 0) {
       var _loading = document.getElementById("loading");
       _loading && document.body.removeChild(_loading);
     }

+ 8 - 7
src/page-instrument/view-figner/index.tsx

@@ -1182,15 +1182,16 @@ export default defineComponent({
                 </div>
               )}
             </div>
-            <div
-              class={[styles.tips, data.loadingDom ? styles.hiddens : "", data.tipShow ? "" : styles.tipHidden]}
-              onClick={(e: any) => {
-                e.stopPropagation();
-              }}
-            >
+            <div class={[styles.tips, data.loadingDom ? styles.hiddens : "", data.tipShow ? "" : styles.tipHidden]}>
               <div class={styles.tipTitle}>
                 <div class={styles.tipTitleName}>{fingerData.fingeringInfo.code}使用说明</div>
-                <Button class={styles.tipClose} onClick={() => (data.tipShow = false)}>
+                <Button
+                  class={styles.tipClose}
+                  onClick={(e: any) => {
+                    e.stopPropagation();
+                    data.tipShow = false;
+                  }}
+                >
                   <Icon name="cross" size={19} color="#fff" />
                 </Button>
               </div>