|
@@ -407,7 +407,7 @@
|
|
|
<iframe id="dialogFrame"
|
|
|
allow="camera *; microphone *;display-capture;midi;encrypted-media;"
|
|
|
src="https://pi.cocorobo.cn/"
|
|
|
- ref="iframeMainMapRef"
|
|
|
+ ref="iframePiRef"
|
|
|
></iframe>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -722,7 +722,7 @@
|
|
|
|
|
|
<div class="answerSelect " v-if="[57].includes(toolType)">
|
|
|
<!-- <img style="width: 300px;" src="../../assets/icon/word2.png" /> -->
|
|
|
- <div style="width: 100%;height: 110px;text-align: center;line-height: 110px;">点击打开CocoPi</div>
|
|
|
+ <div style="width: 100%;height: 110px;text-align: center;line-height: 110px;">CocoPi作业</div>
|
|
|
</div>
|
|
|
<div class="answerSelect" v-if="[4].includes(toolType)">
|
|
|
<span v-for="(item2,index2) in JSON.parse(item.works)[0].anwer"
|
|
@@ -1285,17 +1285,17 @@ export default {
|
|
|
let iframeWindow = ''
|
|
|
let str = ''
|
|
|
if (this.toolType == 7) { //思维网格
|
|
|
- str = 'mindNetwork'
|
|
|
+ // str = 'mindNetwork'
|
|
|
iframeWindow = this.$refs.iframeThoughtGridRef.contentWindow;
|
|
|
}else if (this.toolType == 1) {//电子白板
|
|
|
- str = 'whiteboard'
|
|
|
+ // str = 'whiteboard'
|
|
|
iframeWindow = this.$refs.iframeWhiteBoardRef.contentWindow;
|
|
|
}else if (this.toolType == 3) {//思维导图
|
|
|
- str = 'mind'
|
|
|
+ // str = 'mind'
|
|
|
iframeWindow = this.$refs.iframeMainMapRef.contentWindow;
|
|
|
}else if (this.toolType == 57) {//CocoPi
|
|
|
- str = 'CocoPi'
|
|
|
- iframeWindow = this.$refs.iframeMainMapRef.contentWindow;
|
|
|
+ // str = 'CocoPi'
|
|
|
+ iframeWindow = this.$refs.iframePiRef.contentWindow;
|
|
|
}
|
|
|
console.log('iframeWindow',iframeWindow);
|
|
|
|
|
@@ -1344,7 +1344,7 @@ export default {
|
|
|
' var a = document.getElementsByTagName("img")\n' +
|
|
|
' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
|
|
|
" html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
|
|
|
- ' var base64Url = canvas.toDataURL("image/png");\n' +
|
|
|
+ ' var base64Url = canvas.toDataURL("image/png");\n' +
|
|
|
'var base64 = "<img src=" + base64Url + " />"\n' +
|
|
|
'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
|
|
|
"beforeUpload_shishi(file," +
|
|
@@ -1582,23 +1582,7 @@ export default {
|
|
|
console.log('item',item);
|
|
|
|
|
|
if (this.toolType == 57) {
|
|
|
- console.log('666666');
|
|
|
-
|
|
|
- let student = {
|
|
|
- userid: item.userid,
|
|
|
- student: item.sName
|
|
|
- };
|
|
|
- window.parent.postMessage(
|
|
|
- {
|
|
|
- tools: this.toolType + "teacher",
|
|
|
- cid: this.id,
|
|
|
- stage: this.courseType,
|
|
|
- task: this.taskCount,
|
|
|
- tool: this.toolIndex,
|
|
|
- student: student
|
|
|
- },
|
|
|
- "*"
|
|
|
- );
|
|
|
+ this.$message('投影下不可查看')
|
|
|
return
|
|
|
}
|
|
|
|