lsc 2 years ago
parent
commit
d145a2c203
1 changed files with 47 additions and 22 deletions
  1. 47 22
      src/components/liveProjectDetail.vue

+ 47 - 22
src/components/liveProjectDetail.vue

@@ -244,9 +244,9 @@
                   </div>
                 </div>
                 <iframe
-                  webkitallowfullscreen=''
-                  mozallowfullscreen=''
-                  allowfullscreen=''
+                  webkitallowfullscreen
+                  mozallowfullscreen
+                  allowfullscreen
                   style="width: 100%; height: 100%; border: none"
                   src="https://iwb.cocorobo.cn/"
                   ref="whiteBoard"
@@ -260,9 +260,9 @@
                   </div>
                 </div>
                 <iframe
-                  webkitallowfullscreen=''
-                  mozallowfullscreen=''
-                  allowfullscreen=''
+                  webkitallowfullscreen
+                  mozallowfullscreen
+                  allowfullscreen
                   style="width: 100%; height: 100%; border: none"
                   src="//cloud.cocorobo.cn/mind/"
                   ref="mind"
@@ -276,9 +276,9 @@
                   </div>
                 </div>
                 <iframe
-                  webkitallowfullscreen=''
-                  mozallowfullscreen=''
-                  allowfullscreen=''
+                  webkitallowfullscreen
+                  mozallowfullscreen
+                  allowfullscreen
                   style="width: 100%; height: 100%; border: none"
                   src="//dict.youdao.com/"
                   ref="mind"
@@ -292,9 +292,9 @@
                   </div>
                 </div>
                 <iframe
-                  webkitallowfullscreen=''
-                  mozallowfullscreen=''
-                  allowfullscreen=''
+                  webkitallowfullscreen
+                  mozallowfullscreen
+                  allowfullscreen
                   style="width: 100%; height: 100%; border: none"
                   src="https://cloud.cocorobo.cn/Office/Word/WordEditArea.htm"
                 ></iframe>
@@ -307,9 +307,9 @@
                   </div>
                 </div>
                 <iframe
-                  webkitallowfullscreen=''
-                  mozallowfullscreen=''
-                  allowfullscreen=''
+                  webkitallowfullscreen
+                  mozallowfullscreen
+                  allowfullscreen
                   style="width: 100%; height: 100%; border: none"
                   src="https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid"
                   ref="grid"
@@ -444,6 +444,13 @@
                     :value="tkA"
                   ></el-option>
                 </el-select>
+                <span
+                  v-if="tiankongAnswer.length && isNoHomeWork"
+                  class="tiankongAnswer"
+                  :class="{ tfalse: tiankongAnswer[tIndex] != tkAnswer[tIndex] }"
+                >
+                  正确答案:{{ tiankongAnswer[tIndex] }}</span
+                >
               </div>
             </div>
             <span
@@ -731,7 +738,18 @@ export default {
         { tools: [9] },
         { tools: [9] },
         { tools: [12] },
-        { tools: [27] },
+        {
+          tools: [27],
+          answer: [
+            "Feelings",
+            "Weather",
+            "Activities before the festival",
+            "Origin",
+            "Food",
+            "Time",
+            "ctivities during the festival",
+          ],
+        },
         {
           file: [
             {
@@ -807,6 +825,7 @@ export default {
       videoindex: 0,
       videoBlock: 0,
       Vwidth: 0,
+      tiankongAnswer: [],
     };
   },
   methods: {
@@ -1386,6 +1405,9 @@ export default {
           this.tools[this.ppage - 1].tools &&
           this.tools[this.ppage - 1].tools.indexOf(27) != -1
         ) {
+          if (this.tools[this.ppage - 1].answer) {
+            this.tiankongAnswer = this.tools[this.ppage - 1].answer;
+          }
           this.isBlock = 8;
         }
       }
@@ -1440,12 +1462,6 @@ export default {
     },
     getWidth(total) {
       this.Vwidth = total;
-      if (this.videoBlock == 6) {
-        this.videoBlock = 0;
-        setTimeout(() => {
-          this.videoBlock = 6;
-        }, 1000);
-      }
     },
     fullTools() {
       this.full = !this.full;
@@ -2016,4 +2032,13 @@ img {
   transform: translateX(-50%);
   z-index: 999;
 }
+
+.tiankongAnswer {
+  margin-left: 10px;
+  color: #1834c0;
+}
+
+.tfalse {
+  color: rgb(189, 30, 30) !important;
+}
 </style>