SanHQin 2 周之前
父节点
当前提交
d00f092d14

+ 1 - 0
package.json

@@ -29,6 +29,7 @@
     "js-audio-recorder": "^1.0.7",
     "jsmind": "^0.4.8",
     "jszip": "^3.10.1",
+    "katex": "^0.16.22",
     "lamejs": "^1.2.1",
     "markdown-it": "^13.0.1",
     "opencc-js": "^1.0.5",

+ 2 - 2
src/components/easy/studyStudent.vue

@@ -243,7 +243,7 @@
                       style="width: 100%; height: 100%; border: none"
                       security="restricted"
 											allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-                      v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
+                      v-if="pptImgUrl1.indexOf('cocorobo.cn')!=-1"
                       :src="pptImgUrl1"
                     ></iframe>
                     <iframe
@@ -1499,7 +1499,7 @@
             style="width: 100%; height: 100%; border: none"
 						:key="diffKey"
 						allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-            v-else-if="fulltype == 2 && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
+            v-else-if="fulltype == 2 && (fullUrl.indexOf('cocorobo')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe

+ 2 - 2
src/components/easy2/studyStudent.vue

@@ -13927,7 +13927,7 @@
         <iframe
             style="width: 100%; height: 100%; border: none"
 						allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe
@@ -13949,7 +13949,7 @@
           sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
           :src="fullUrl"
         ></iframe>
- 
+
       </div>
       <!-- <div slot="footer">
         <el-button @click="fullDialogVisible = false">关 闭</el-button>

+ 1 - 1
src/components/easy3/studyStudent.vue

@@ -622,7 +622,7 @@
                       style="width: 100%; height: 100%; border: none"
                       :key="diffKey"
 											allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-                      v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
+                      v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
                       :src="pptImgUrl1"
                     ></iframe>
                     <iframe

+ 4 - 4
src/components/studyStudent.vue

@@ -587,7 +587,7 @@
                       style="width: 100%; height: 100%; border: none"
                       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
                       :key="diffKey"
-                      v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
+                      v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
                       :src="pptImgUrl1"
                     ></iframe>
                     <iframe
@@ -812,7 +812,7 @@
                               </div>
                           </div>
                         </div>
-                        
+
                         <div
                           class="fileC_box"
                           v-if="fileC[taskCount].length > 0"
@@ -10499,7 +10499,7 @@
           <iframe
             style="width: 100%; height: 100%; border: none"
             allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe
@@ -13361,7 +13361,7 @@ export default {
 					this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
 				}
       }
-      
+
       // var b = this.$refs["bz" + k][0];
       // a.scrollTop = b.offsetTop;
     },

+ 2 - 2
src/components/studySutdentClass/studyStudent.vue

@@ -621,7 +621,7 @@
                       style="width: 100%; height: 100%; border: none"
                       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
                       :key="diffKey"
-                      v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
+                      v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
                       :src="pptImgUrl1"
 
                     ></iframe>
@@ -13737,7 +13737,7 @@
         <iframe
             style="width: 100%; height: 100%; border: none"
             allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe