SanHQin 3 місяців тому
батько
коміт
9bab173229

+ 1 - 1
dist/index.html

@@ -27,7 +27,7 @@
     html,
     body{
       font-family: '黑体';
-    }</style><link href=./static/css/app.a205befa9b15d5861690e5eb6c443111.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.acbd8cb5870df69e0141.js></script><script type=text/javascript src=./static/js/app.c5906bd210ebdfb3866f.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.55c9a06d1166fe45ad77c3d4bdf666d4.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.acbd8cb5870df69e0141.js></script><script type=text/javascript src=./static/js/app.3673e32dcc3be10f58fa.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/css/app.55c9a06d1166fe45ad77c3d4bdf666d4.css


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/css/app.55c9a06d1166fe45ad77c3d4bdf666d4.css.map


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/app.3673e32dcc3be10f58fa.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/app.3673e32dcc3be10f58fa.js.map


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 1 - 1
src/components/classRoomHelper/component/workFlowIframe.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="ibox">
-    <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;" webkitallowfullscreen mozallowfullscreen allowfullscreen :src="src" frameborder="0" style="width: 100%;" :style="{height: iframeSrc.length > 1 ? 'calc(100% - 30px)' : '100%'}"></iframe>
+    <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;" sandboxed="*" webkitallowfullscreen mozallowfullscreen allowfullscreen :src="src" frameborder="0" style="width: 100%;" :style="{height: iframeSrc.length > 1 ? 'calc(100% - 30px)' : '100%'}"></iframe>
     <div v-if='iframeSrc.length > 1' class="ibox-tools">
         <span class="tool" v-for="(item, index) in iframeSrc" :key="index" @click="setSrc(index)" :class="{active: index == checkIndex}">
             {{ item.name }}

+ 46 - 1
src/components/classRoomHelper/index.vue

@@ -43,6 +43,8 @@
       />
 
       <workFlowIframe v-show="itemType == 6 && iframeSrc.length" :iframeSrc="iframeSrc"></workFlowIframe>
+
+      <workFlowIframe v-show="itemType == 7 && iframeSrc2.length" :iframeSrc="iframeSrc2"></workFlowIframe>
       <!-- <dialogArea
         :courseDetail="courseDetail"
 				:openMegaphone="openMegaphone"
@@ -293,6 +295,26 @@
           />
           <div>工作流</div>
         </div>
+
+        <div
+          v-if="iframeSrc2.length"
+          :class="[
+            'ch_nav_box_middle_item',
+            itemType == 7 ? 'ch_nav_box_middle_item_active' : ''
+          ]"
+          @click.stop="changeItemType(7)"
+        >
+          <img
+            v-if="itemType == 7"
+            :src="require('../../assets/icon/course/gongzuoliu2.svg')"
+          />
+          <img
+            v-if="itemType != 7"
+            :src="require('../../assets/icon/course/gongzuoliu.svg')"
+          />
+          <div>Ai应用</div>
+        </div>
+
         <div
           :class="[
             'ch_nav_box_middle_item',
@@ -590,6 +612,7 @@ export default {
         loading: false
       },
       iframeSrc: [],
+      iframeSrc2: [],
       canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5']
     };
   },
@@ -609,7 +632,12 @@ export default {
   watch: {
     courseType(newValue, oldValue) {
       this.setIframeSrc();
-    }
+      this.getAiApp()
+    },
+    taskCount(newValue){
+      this.getAiApp()
+    },
+
   },
   mounted() {
     let setting = this.courseDetail.setting;
@@ -636,6 +664,7 @@ export default {
       this.getTipsList();
     }, 3000);
     this.setIframeSrc();
+    this.getAiApp();
   },
   methods: {
     getTipsListTime(time = 5000) {
@@ -1169,6 +1198,22 @@ Instruction: Based on the context, follow "Format example", write content
         .catch(err => {
           console.error(err);
         });
+    },
+    getAiApp(){
+      try {
+        let _chapters = JSON.parse(this.courseDetail.chapters);
+        let _list = _chapters[this.courseType].chapterInfo[0].taskJson[this.taskCount].chapterData;
+        let _app = _list.find(i=>i.type==15);
+        if(_app){
+          _app.src = _app.url;
+          this.iframeSrc2 = [_app]
+        }else{
+          this.iframeSrc2 = [];
+        }
+      } catch (error) {
+        console.log("👉==",error)
+        this.iframeSrc2 = [];
+      }
     }
   }
 };

+ 7 - 6
src/components/easy2/studyStudent.vue

@@ -656,7 +656,6 @@
                   >
                   <iframe
                       style="width: 100%; height: 100%; border: none"
-                      security="restricted"
                       v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1"
                       :src="pptImgUrl1"
                     ></iframe>
@@ -788,7 +787,7 @@
                           </div>
                           <div
                             class="navListItem"
-                            v-if="vitem.type == 8 || vitem.type == 14"
+                            v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
                           >
                             <div
                               @click="doUrl(vitem.url, vindex)"
@@ -21644,7 +21643,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -21723,7 +21722,8 @@ export default {
                 let _url = _chapterData[this.taskCount][0].url;
                 if (
                   _chapterData[this.taskCount][0].type == 8 ||
-                  _chapterData[this.taskCount][0].type == 14
+                  _chapterData[this.taskCount][0].type == 14 ||
+                  _chapterData[this.taskCount][0].type == 15
                 ) {
                   this.showType = 2;
                   if (
@@ -21854,7 +21854,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -21888,7 +21888,8 @@ export default {
                 let _url = _chapterData[this.taskCount][0].url;
                 if (
                   _chapterData[this.taskCount][0].type == 8 ||
-                  _chapterData[this.taskCount][0].type == 14
+                  _chapterData[this.taskCount][0].type == 14 ||
+                  _chapterData[this.taskCount][0].type == 15
                 ) {
                   this.showType = 2;
                   if (

+ 7 - 6
src/components/easy3/studyStudent.vue

@@ -620,7 +620,6 @@
 
                   <iframe
                       style="width: 100%; height: 100%; border: none"
-                      security="restricted"
                       v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1"
                       :src="pptImgUrl1"
                     ></iframe>
@@ -746,7 +745,7 @@
                           </div>
                           <div
                             class="navListItem"
-                            v-if="vitem.type == 8 || vitem.type == 14"
+                            v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
                           >
                             <div
                               @click="doUrl(vitem.url, vindex)"
@@ -17164,7 +17163,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -17242,7 +17241,8 @@ export default {
                 let _url = _chapterData[taskCount][0].url;
                 if (
                   _chapterData[taskCount][0].type == 8 ||
-                  _chapterData[taskCount][0].type == 14
+                  _chapterData[taskCount][0].type == 14 ||
+                  _chapterData[taskCount][0].type == 15
                 ) {
                   this.showType = 2;
                   if (
@@ -17372,7 +17372,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -17408,7 +17408,8 @@ export default {
                 let _url = _chapterData[taskCount][0].url;
                 if (
                   _chapterData[taskCount][0].type == 8 ||
-                  _chapterData[taskCount][0].type == 14
+                  _chapterData[taskCount][0].type == 14||
+                  _chapterData[taskCount][0].type == 15
                 ) {
                   // this.showType = 2;
                   if (

+ 8 - 7
src/components/studyStudent.vue

@@ -585,7 +585,6 @@
                   >
                   <iframe
                       style="width: 100%; height: 100%; border: none"
-                      security="restricted"
                       v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1"
                       :src="pptImgUrl1"
                     ></iframe>
@@ -711,7 +710,7 @@
                           </div>
                           <div
                             class="navListItem"
-                            v-if="vitem.type == 8 || vitem.type == 14"
+                            v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
                           >
                             <div
                               @click="doUrl(vitem.url, vindex)"
@@ -17144,7 +17143,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -17221,7 +17220,8 @@ export default {
                 let _url = _chapterData[this.taskCount][0].url;
                 if (
                   _chapterData[this.taskCount][0].type == 8 ||
-                  _chapterData[this.taskCount][0].type == 14
+                  _chapterData[this.taskCount][0].type == 14 ||
+                  _chapterData[this.taskCount][0].type == 15
                 ) {
                   this.showType = 2;
                   if (
@@ -17352,7 +17352,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -17386,7 +17386,8 @@ export default {
                 let _url = _chapterData[this.taskCount][0].url;
                 if (
                   _chapterData[this.taskCount][0].type == 8 ||
-                  _chapterData[this.taskCount][0].type == 14
+                  _chapterData[this.taskCount][0].type == 14 ||
+                  _chapterData[this.taskCount][0].type == 15
                 ) {
                   this.showType = 2;
                   if (
@@ -21356,7 +21357,7 @@ export default {
         this.updateToolDetail(this.toolDetailIndex);
       }
     });
-   
+
     this.setOperationTime();
     this.selectEva();
     this.getCourseDetail();

+ 8 - 6
src/components/studySutdentClass/studyStudent.vue

@@ -619,9 +619,9 @@
                   >
                   <iframe
                       style="width: 100%; height: 100%; border: none"
-                      security="restricted"
                       v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1"
                       :src="pptImgUrl1"
+
                     ></iframe>
                     <iframe
                       style="width: 100%; height: 100%; border: none"
@@ -744,7 +744,7 @@
                           </div>
                           <div
                             class="navListItem"
-                            v-if="vitem.type == 8 || vitem.type == 14"
+                            v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
                           >
                             <div
                               @click="doUrl(vitem.url, vindex)"
@@ -21061,7 +21061,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -21139,7 +21139,8 @@ export default {
                 let _url = _chapterData[taskCount][0].url;
                 if (
                   _chapterData[taskCount][0].type == 8 ||
-                  _chapterData[taskCount][0].type == 14
+                  _chapterData[taskCount][0].type == 14 ||
+                  _chapterData[taskCount][0].type == 15
                 ) {
                   this.showType = 2;
                   if (
@@ -21269,7 +21270,7 @@ export default {
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
-                } else if (c[j].type == 8 || c[j].type == 14) {
+                } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
                   this.lineList[i].push(c[j]);
                 } else if (c[j].type == 6) {
                   this.textList[i].push(c[j]);
@@ -21305,7 +21306,8 @@ export default {
                 let _url = _chapterData[taskCount][0].url;
                 if (
                   _chapterData[taskCount][0].type == 8 ||
-                  _chapterData[taskCount][0].type == 14
+                  _chapterData[taskCount][0].type == 14 ||
+                  _chapterData[taskCount][0].type == 15
                 ) {
                   // this.showType = 2;
                   if (

Деякі файли не було показано, через те що забагато файлів було змінено