11wqe1 5 ماه پیش
والد
کامیت
e92f9eb284

+ 12 - 1
src/components/pages/EnglishVoice/component/component/testRole.vue

@@ -24,7 +24,7 @@
                 <input type="file" style="display: none;" @change="fileChange">
             </div>
             <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-                src="https://beta.cloud.cocorobo.cn/browser/public/index.html" ref="iiframe" style="display: none;"></iframe>
+                :src="iframeUrl" ref="iiframe" style="display: none;"></iframe>
         </div>
     </el-dialog>
 </template>
@@ -71,6 +71,17 @@ export default {
             id: this.guid()
         };
     },
+    computed: {
+        iframeUrl() {
+            if (this.lang.lang == 'com') {
+                return `https://cloud.cocorobo.com/browser/public/index.html`;
+            }else if(this.lang.lang == 'hk'){
+                return `https://cloud.cocorobo.hk/browser/public/index.html`;
+            }else{
+                return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+            }
+        }
+    },
     methods: {
         handleClose(done) {
             this.close();

+ 12 - 1
src/components/pages/EnglishVoiceNew/component/talkPreview.vue

@@ -143,7 +143,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -207,6 +207,17 @@ export default {
         "Read the following text aloud.A Car Accident I saw a car accident this morning. A boy wanted to cross the road but he did not look carefully. He just ran out into the road. A car was coming and the driver stopped at once. Luckily, the boy was not hurt. However, there was a bus behind the car. It could not stop and hit the back of the car. Someone called the police and they arrived quickly.",
     };
   },
+  computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    }
+  },
   methods: {
     handleClose(done) {
       this.close();

+ 10 - 1
src/components/pages/aiAddCourse/aiBoxCourseDetail.vue

@@ -365,7 +365,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -1612,6 +1612,15 @@ ${message}`;
     }
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     pan() {
       return content => {
         try {

+ 10 - 1
src/components/pages/aiAddCourse/aiBoxRight.vue

@@ -369,7 +369,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -1893,6 +1893,15 @@ ${message}`;
     }
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     pan() {
       return content => {
         try {

+ 12 - 1
src/components/pages/aiAddCourse/record.vue

@@ -136,7 +136,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -153,6 +153,17 @@ export default {
       type: String
     }
   },
+  computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    }
+  },
   data() {
     return {
       videoText: this.videoText2,

+ 10 - 1
src/components/pages/aiEasy/aiBoxCourseDetail.vue

@@ -365,7 +365,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -1616,6 +1616,15 @@ ${message}`;
     }
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     pan() {
       return content => {
         try {

+ 10 - 1
src/components/pages/aiEasy/aiBoxRight.vue

@@ -363,7 +363,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -1862,6 +1862,15 @@ ${message}`;
     }
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     pan() {
       return content => {
         try {

+ 12 - 1
src/components/pages/aiEasy/record.vue

@@ -136,7 +136,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -185,6 +185,17 @@ export default {
       }
     };
   },
+  computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    }
+  },
   watch: {
     videoText(newValue) {
       this.$emit("update:videoText2", newValue);

+ 10 - 1
src/components/pages/classroomObservation/components/chatArea.vue

@@ -512,7 +512,7 @@
     <!-- 录音转文字 -->
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -808,6 +808,15 @@ export default {
     };
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     // 选择可以@的角色
     choseRoleList() {
       let result = [...this.roleList, ...this.publicRoleList];

+ 10 - 1
src/components/pages/classroomObservation/dialog/batchCreationClassDialog.vue

@@ -111,7 +111,7 @@
     <!-- 录音转文字 -->
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iframeRef"
       v-show="false"
     ></iframe>
@@ -151,6 +151,15 @@ export default {
     };
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     selectAll: {
       get() {
         let _result = false;

+ 10 - 1
src/components/pages/test/check/aiBoxRight.vue

@@ -330,7 +330,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -1483,6 +1483,15 @@ export default {
     }
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     pan() {
       return content => {
         try {

+ 10 - 1
src/components/pages/test/checkAi/aiLeader.vue

@@ -608,7 +608,7 @@
     </div>
     <iframe
       allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://beta.cloud.cocorobo.cn/browser/public/index.html"
+      :src="iframeUrl"
       ref="iiframe"
       v-show="false"
     ></iframe>
@@ -2653,6 +2653,15 @@ ${_echartsType[type].text}
     }
   },
   computed: {
+    iframeUrl() {
+      if (this.lang.lang == 'com') {
+        return `https://cloud.cocorobo.com/browser/public/index.html`;
+      }else if(this.lang.lang == 'hk'){
+        return `https://cloud.cocorobo.hk/browser/public/index.html`;
+      }else{
+        return `https://beta.cloud.cocorobo.cn/browser/public/index.html`;
+      }
+    },
     localFormList() {
       // 在 computed 属性中返回一个新的数组,而不是直接修改 prop
       let localFormList = [...this.formList];