natasha 2 周之前
父節點
當前提交
fc9d825f01

+ 25 - 4
src/components/Adult/phonePreview/Ligature.vue

@@ -348,6 +348,27 @@ export default {
   watch: {
     curQue(val, oldval) {
       this.$forceUpdate(); //触发更新函数更新高度
+    },
+    baseSizePhone(val, oldval) {
+      setTimeout(() => {
+        for (let i = 0; i < this.curQue.con.length; i++) {
+          let nodeleft = document.getElementsByClassName(
+            this.judgeAnswer + `left${i + this.number}`
+          )[this.judgeAnswer == "standardAnswer" ? 1 : 0];
+          let noderight = document.getElementsByClassName(
+            this.judgeAnswer + `right${i + this.number}`
+          )[this.judgeAnswer == "standardAnswer" ? 1 : 0];
+          if (nodeleft && noderight) {
+            nodeleft.removeAttribute("style");
+            noderight.removeAttribute("style");
+            if (nodeleft.offsetHeight > noderight.offsetHeight) {
+              noderight.style.height = nodeleft.offsetHeight + "px";
+            } else {
+              nodeleft.style.height = noderight.offsetHeight + "px";
+            }
+          }
+        }
+      }, 50);
     }
   },
   //方法集合
@@ -929,8 +950,8 @@ export default {
             line-height: 150%;
             color: #000000;
             img {
-              max-width: 238px;
-              height: 158px;
+              max-width: 100%;
+              height: 78px;
             }
             .text {
               max-width: 200px;
@@ -1026,8 +1047,8 @@ export default {
             line-height: 150%;
             color: #000000;
             img {
-              max-width: 238px;
-              height: 158px;
+              max-width: 100%;
+              height: 78px;
             }
             .text {
               max-width: 200px;

+ 1 - 1
src/components/Adult/phonePreview/components/Intp.vue

@@ -119,7 +119,7 @@
 <script>
 import Audio from "./AudioRed.vue";
 import Strockplayredline from "./Strockplayredline.vue";
-import { getContentFile } from "@/api/ajax";
+import { getContentFile } from "../../../../api/ajax";
 export default {
   name: "WordIntp",
   components: {

+ 1 - 1
src/components/Adult/phonePreview/components/OptionTemp.vue

@@ -255,7 +255,7 @@ export default {
   data() {
     //这里存放数据
     return {
-      width: window.innerWidth - 100 + "px"
+      width: window.innerWidth - 124 + "px"
     };
   },
   //计算属性 类似于data概念

+ 1 - 1
src/components/Adult/preview/components/Intp.vue

@@ -119,7 +119,7 @@
 <script>
 import Audio from "./AudioRed.vue";
 import Strockplayredline from "./Strockplayredline.vue";
-import { getContentFile } from "@/api/ajax";
+import { getContentFile } from "../../../../api/ajax";
 export default {
   name: "WordIntp",
   components: {