Browse Source

学习资料

lsc 2 năm trước cách đây
mục cha
commit
0b1eaaa759
1 tập tin đã thay đổi với 17 bổ sung0 xóa
  1. 17 0
      src/components/study.vue

+ 17 - 0
src/components/study.vue

@@ -351,6 +351,14 @@
                           />
                           <div style="margin: 5px 0">素材库</div>
                         </div>
+                        <div v-if="tooC == 17">
+                          <img
+                            src="../assets/icon/secondToolList/library.png"
+                            alt
+                            @click="addTools(tooC, toolIndex)"
+                          />
+                          <div style="margin: 5px 0">学习资料</div>
+                        </div>
                         <div v-if="tooC == 2">
                           <img
                             @click="addTools(tooC, toolIndex)"
@@ -1827,6 +1835,15 @@ export default {
           this.toolsCount(a, t);
         }
         window.parent.postMessage({ tools: "8" }, "*");
+      } else if (t == 17) {
+        if (this.libraryCount > 0) {
+          this.updateCount(this.libraryCount, t);
+        } else {
+          this.libraryCount++;
+          a = this.libraryCount;
+          this.toolsCount(a, t);
+        }
+        window.parent.postMessage({ tools: "17" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);