Kaynağa Gözat

修改文字

11wqe1 1 hafta önce
ebeveyn
işleme
66e84f5853
2 değiştirilmiş dosya ile 17 ekleme ve 39 silme
  1. 1 1
      src/lang/en.json
  2. 16 38
      src/views/HomeView.vue

+ 1 - 1
src/lang/en.json

@@ -50,7 +50,7 @@
   "loginaccount": "Confirm login to account *?",
   "scancodeagain": "Scan login failed. Please scan again",
   "Welcometouse": "Welcome to use",
-  "CocoaPlatform": "Cocoa Intelligent Education Platform",
+  "CocoaPlatform": "cococlass",
   "Viewmore": "View more",
   "viewmoreAI": "Click to view more AI applications",
   "Failedtooldata": "Failed to retrieve tool data",

+ 16 - 38
src/views/HomeView.vue

@@ -395,12 +395,22 @@ export default {
 							this.addOp3('1', "", { courseid: this.courseId , type: (this.roleUser.type == 1 ? '_teacher' : '_student') +  "CocoNote_open" }, "success")
 						} else {
 							this.$message.error("没有加入分组请先加入分组");
-							this.goToCourse3(this.courseId)
+							// this.goToCourse3(this.courseId)
+							this.openApp4({
+								stateL: true,
+								toolId: "synergyCourse/add",
+								clearL: true,
+							});
 							this.addOp3('1', "", { courseid: this.courseId , type:  (this.roleUser.type == 1 ? '_teacher' : '_student') +  "CocoNote_open" }, '没有加入分组请先加入分组')
 						}
 					} else {
 						this.$message.error("没有加入分组请先加入分组");
-						this.goToCourse3(this.courseId)
+						// this.goToCourse3(this.courseId) 
+						this.openApp4({
+							stateL: true,
+							toolId: "synergyCourse/add",
+							clearL: true,
+						});
 						this.addOp3('1', "", { courseid: this.courseId , type:  (this.roleUser.type == 1 ? '_teacher' : '_student') +  "CocoNote_open" }, '没有加入分组请先加入分组')
 					}
 				} catch (error) {
@@ -533,45 +543,11 @@ export default {
 				}, 2000);
 			}
 		},
+		// iframe加载完成
 		async handleLoad(){
 			this.loading = false;
 			console.log('iframe加载完成');
 		},
-		goToCourse3() {
-
-			// if (courseId) {
-
-				this.openApp4({
-					stateL: true,
-					toolId: "synergyCourse/add",
-					clearL: true,
-				});
-				// this.$router.push(
-				// "/synergyCourse/add?cid=" +
-				// courseId +
-				// "&userid=" +
-				// this.userid +
-				// "&oid=" +
-				// this.oid +
-				// "&org=" +
-				// this.org +
-				// "&role=" +
-				// this.role
-				// );
-			// } else {
-			// 	this.$router.push(
-			// 	"/synergyCourse/add?userid=" +
-			// 	this.userid +
-			// 	"&oid=" +
-			// 	this.oid +
-			// 	"&org=" +
-			// 	this.org +
-			// 	"&role=" +
-			// 	this.role
-			// 	);
-			// 	this.addOp3('1', "", { type: "CocoNote_standard_add" }, "success")
-			// }
-		},
 		async handleLogout() {
 			this.$confirm(this.lang.sureexit, this.lang.tip, {
 				confirmButtonText: this.lang.confirm,
@@ -833,10 +809,12 @@ export default {
 			this.editInfo();
 		}
 		// this.getMsg()
-		if(this.cocoNoteType){
+		// 跨学科app跳转 
+		if(this.cocoNoteType == 'coconote'){
 			this.cocoNoteif()
 			return
 		}else if (this.courseId) {
+			// 随机码登录跳转
 			this.openApp2({
 				stateL: true,
 				toolId: "courseDetail",