natasha пре 6 месеци
родитељ
комит
640e88eb3f
2 измењених фајлова са 17 додато и 2 уклоњено
  1. 9 2
      src/components/Adult/preview/NewWordShow.vue
  2. 8 0
      src/views/courseView.vue

+ 9 - 2
src/components/Adult/preview/NewWordShow.vue

@@ -266,8 +266,8 @@
       :append-to-body="true"
       :lock-scroll="true"
       width="320px"
-      top="20%"
-      class="practiceBox practiceBoxStrock"
+      top="0"
+      class="practiceBox practiceBoxStrock practiceBoxCenter"
       v-if="ifFreeShow"
     >
       <FreewriteLettle
@@ -804,4 +804,11 @@ export default {
     }
   }
 }
+.practiceBoxCenter {
+  .el-dialog {
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+  }
+}
 </style>

+ 8 - 0
src/views/courseView.vue

@@ -250,6 +250,13 @@ export default {
         _this.fullTree = false;
         document.getElementById("content-tree").style.display = "none";
       }
+      if (document.getElementById("content-scroll")) {
+        document.getElementById("content-scroll").scrollTop = 0;
+      }
+      if (_this.isPhone) {
+        _this.showMenu = false;
+        document.getElementsByClassName("content-tree-phone")[0].scrollTop = 0;
+      }
     },
     // 点击全屏展示 隐藏tree
     fullScreen() {
@@ -362,6 +369,7 @@ export default {
       background: #fff;
       &-phone {
         width: 50%;
+        padding-top: 20px;
       }
       &-unfold {
         width: 40px;