lsc 1 rok temu
rodzic
commit
1c7f2afd00

+ 1 - 1
dist/index.html

@@ -18,7 +18,7 @@
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
-    }</style><link href=./static/css/app.2b23a9fa2bd62d85fe4cf825cabc95f6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2ea62301d5bc18e5b15b.js></script><script type=text/javascript src=./static/js/app.924da9bb0c512c3a098d.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.20482527c51a4e3e0612813972ef54d2.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2ea62301d5bc18e5b15b.js></script><script type=text/javascript src=./static/js/app.86e3282079da988f9846.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Plik diff jest za duży
+ 0 - 0
dist/static/css/app.20482527c51a4e3e0612813972ef54d2.css


Plik diff jest za duży
+ 0 - 0
dist/static/css/app.20482527c51a4e3e0612813972ef54d2.css.map


Plik diff jest za duży
+ 0 - 0
dist/static/css/app.2b23a9fa2bd62d85fe4cf825cabc95f6.css


Plik diff jest za duży
+ 0 - 0
dist/static/css/app.2b23a9fa2bd62d85fe4cf825cabc95f6.css.map


Plik diff jest za duży
+ 0 - 0
dist/static/js/app.86e3282079da988f9846.js


Plik diff jest za duży
+ 0 - 0
dist/static/js/app.86e3282079da988f9846.js.map


Plik diff jest za duży
+ 0 - 0
dist/static/js/app.924da9bb0c512c3a098d.js


Plik diff jest za duży
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 3 - 1
src/App.vue

@@ -464,7 +464,9 @@ html::-webkit-scrollbar-thumb {
   color: #FFF !important;
 }
 
-
+.text_tooltip2 {
+  max-width: 250px;
+}
 
 .el-pagination.is-background .el-pager li:not(.disabled):hover {
     color: #0061FF !important;

+ 4 - 1
src/components/EnglishVoice2/component/left.vue

@@ -6,7 +6,10 @@
         </div>
         <div class="o_box_topic">
             <div class="o_box_child" v-for="(item, index) in checkJson" :key="index" :class="{active:checkType == index}" @click="setType(index)">
-                <span>{{ index + 1  }}.{{ item.content }}</span>
+                <el-tooltip :content="item.content.slice(0,130) + (item.content.length > 130 ? '...' : '')" placement="top" effect="dark" popper-class="text_tooltip2">
+                    <!-- content to trigger tooltip here -->
+                    <span>{{ index + 1  }}.{{ item.content }}</span>
+                </el-tooltip>
             </div>
         </div>
     </div>

+ 60 - 27
src/components/EnglishVoice2/component/right.vue

@@ -1,9 +1,12 @@
 <template>
-  <div class="o_box">
+  <div class="o_box" ref="obox">
     <div class="o_top">
 
     </div>
     <div class="o_content">
+      <div class="type_box" :style="{width: oWidth}">
+        {{ getType(cjson) }}
+      </div>
       <div class="word_box" v-if="cjson.type == 'word' || cjson.type == 'QA'" ref="wb">
         <div class="word_bbox" :style="{maxHeight: oheight}">
           <img class="word_img" :src="cjson.img" alt="" v-if="cjson.img" @click="previewImg(cjson.img)">
@@ -101,6 +104,7 @@ export default {
       isPlayerRecord: false,
       isloading: false,
       oheight: 'auto',
+      oWidth: '500px',
       calcTimer: null,
       totalSeconds: 0,
     }
@@ -114,6 +118,19 @@ export default {
     //   var parentHeight = parentElement.offsetHeight;
     //   return parentHeight + 'px'
     // }
+    getType() {
+      return function(json) {
+        if(json.type == 'word'){
+          return '单词/词组'
+        }else if(json.type == 'QA'){
+          return '问答题目'
+        }else if(json.type == 'sentence'){
+          return '句子/短文'
+        }else if(json.type == 'theme'){
+          return '主题陈述'
+        }
+      };
+    },
     Times() {
       let min = this.totalSeconds ? Math.floor(this.totalSeconds / 60) : 0
       let secode = this.totalSeconds ? this.totalSeconds % 60 : 0
@@ -130,23 +147,23 @@ export default {
         this.cjson = JSON.parse(JSON.stringify(this.checkJson[newVal]));
         this.LuAudioUrl = this.work[newVal] ? JSON.parse(JSON.stringify(this.work[newVal])) : ''
         this.oheight = 'auto'
-
-        const images = document.querySelectorAll('img');
+        this.oWidth = '500px'
+        const images = this.$refs['obox'].querySelectorAll('img');
         let loadedCount = 0;
 
-        if(images.length){
-          Array.from(images).forEach((image) => {
-            image.addEventListener('load', () => {
-              loadedCount++;
-
-              if (loadedCount === images.length) {
-                this.calculateParentHeight()
-              }
-            });
-          });
-        }else{
+        // if(images.length){
+        //   images.forEach((image) => {
+        //     image.addEventListener('load', () => {
+        //       loadedCount++;
+
+        //       if (loadedCount === images.length) {
+        //         this.calculateParentHeight()
+        //       }
+        //     });
+        //   });
+        // }else{
           this.calculateParentHeight()
-        }
+        // }
 
       },
       deep: true,
@@ -348,9 +365,11 @@ export default {
            var parentElement = this.$refs['wb'];
 
           // 计算父元素的高度
-          var parentHeight = parentElement.offsetHeight + 1;
-          this.oheight = parentHeight + 'px'
-         }, 1000);
+          // var parentHeight = parentElement.offsetHeight + 1;
+          var parentWidth = parentElement.offsetWidth;
+          // this.oheight = parentHeight + 'px'
+          this.oWidth = parentWidth + 'px'
+         }, 50);
       });
     },
     setSecodes(){
@@ -399,15 +418,20 @@ export default {
 
 .o_bottom {
   height: 185px;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
 }
 
 .word_box {
   min-width: 500px;
-  width: 70%;
+  max-width: 70%;
   background: #fff;
   border-radius: 10px;
   position: relative;
-  max-height: calc(100% - 40px);
+  /* max-height: calc(100% - 40px); */
+  max-height: calc(100% - 70px);
   /* overflow: auto; */
 }
 .tips_box{
@@ -425,9 +449,9 @@ export default {
 .sentence_box {
   background: #e0e0e04d;
   min-width: 500px;
-  width: 70%;
+  max-width: 70%;
   border-radius: 15px;
-  max-height: 100%;
+  /* max-height: 100%; */
   overflow: auto;
   padding: 15px;
   font-size: 16px;
@@ -435,6 +459,7 @@ export default {
   line-height: 20px;
   word-break: break-word;
   white-space: pre-line;
+  max-height: calc(100% - 80px);
 }
 
 .word_box::before {
@@ -443,7 +468,7 @@ export default {
   width: 100%;
   height: 100%;
   display: block;
-  box-shadow: 0 0 4px 4px #0000001c;
+  box-shadow: 0 0 4px 4px #1d39830d;
   border-radius: 10px;
   z-index: 2;
   background: #fff;
@@ -456,7 +481,7 @@ export default {
   height: 100%;
   background: #fff;
   display: block;
-  box-shadow: 0 0 4px 4px #0000001c;
+  box-shadow: 0 0 4px 4px #1d39830d;
   border-radius: 10px;
   z-index: 1;
   top: 15px;
@@ -468,11 +493,11 @@ export default {
   max-height: 300px;
   z-index: 999;
   position: relative;
-  margin: 15px auto 0;
+  margin: 15px auto;
   display: block;
   border-radius: 10px;
   cursor: pointer;
-  object-fit: cover;
+  object-fit: contain;
 }
 
 
@@ -499,7 +524,7 @@ export default {
   width: calc(100% - 30px);
   word-break: break-word;
   white-space: pre-line;
-  margin-top: 10px;
+  /* margin-top: 10px; */
 }
 
 
@@ -648,4 +673,12 @@ export default {
   font-size: 32px;
   color: #3581FC;
 }
+
+.type_box{
+  min-width: 500px;
+    width: 70%;
+    text-align: right;
+    color: #a5a5a5;
+    margin-bottom: 10px;
+}
 </style>

+ 5 - 2
src/components/EnglishVoice2/index.vue

@@ -11,7 +11,7 @@
                 </right>
             </div>
             <div class="ev_btn">
-                <el-button type="primary" :disabled="!(checkType == (checkJson.length - 1))" @click="addEnglishWork">点击提交</el-button>
+                <el-button type="primary" style="padding: 5px 10px;font-size: 14px;height: 30px;" size="mini" :disabled="!(checkType == (checkJson.length - 1))" @click="addEnglishWork">点击提交</el-button>
 
             </div>
         </div>
@@ -225,6 +225,9 @@ export default {
 
 .ev_btn {
     position: absolute;
-    bottom: 80px;
+    bottom: 0;
     right: 80px;
+    height: 185px;
+    display: flex;
+    align-items: center;
 }</style>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików