11wqe1 1 месяц назад
Родитель
Сommit
144c0ca3a1

+ 19 - 10
src/components/dialog/selectTeachingClassDialog.vue

@@ -145,10 +145,19 @@ const gotoCourse = (id) => {
 
 
       addOp3('1', "", { courseid: courseDetail.value.courseId,classIdL: !id ? 'ssAll' : id ,type: "course_class_open" }, "success")
       addOp3('1', "", { courseid: courseDetail.value.courseId,classIdL: !id ? 'ssAll' : id ,type: "course_class_open" }, "success")
 
 
+      let url = '';
+      if (lang.lang == 'hk') {
+        url = "https://pbl.cocorobo.hk"
+      }else if (lang.lang == 'en') {
+        url = "https://pbl.cocorobo.com"
+      }else{
+        url = "https://pbl.cocorobo.cn"
+      }
+
       if (courseDetail.value.state == 1) {
       if (courseDetail.value.state == 1) {
         if (classList.value.length) {
         if (classList.value.length) {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studyStudent?type=" +
+             url + "/pbl-student-table/dist/#/studyStudent?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -169,7 +178,7 @@ const gotoCourse = (id) => {
           );
           );
         } else {
         } else {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studyStudent?type=" +
+              url + "/pbl-student-table/dist/#/studyStudent?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -190,7 +199,7 @@ const gotoCourse = (id) => {
       } else if (courseDetail.value.state == 2 || courseDetail.value.state == 5) {
       } else if (courseDetail.value.state == 2 || courseDetail.value.state == 5) {
         if (classList.value.length) {
         if (classList.value.length) {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studystudentE2?type=" +
+             url + "/pbl-student-table/dist/#/studystudentE2?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -211,7 +220,7 @@ const gotoCourse = (id) => {
           );
           );
         } else {
         } else {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studystudentE2?type=" +
+            url + "/pbl-student-table/dist/#/studystudentE2?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -232,7 +241,7 @@ const gotoCourse = (id) => {
       } else if (courseDetail.value.state == 3 || courseDetail.value.state == 4) {
       } else if (courseDetail.value.state == 3 || courseDetail.value.state == 4) {
         if (classList.value.length) {
         if (classList.value.length) {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studystudentE3?type=" +
+            url + "/pbl-student-table/dist/#/studystudentE3?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -253,7 +262,7 @@ const gotoCourse = (id) => {
           );
           );
         } else {
         } else {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studystudentE3?type=" +
+            url + "/pbl-student-table/dist/#/studystudentE3?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -274,7 +283,7 @@ const gotoCourse = (id) => {
       } else if (courseDetail.value.state == 6) {
       } else if (courseDetail.value.state == 6) {
         if (classList.value.length) {
         if (classList.value.length) {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studySutdentClass?type=" +
+            url + "/pbl-student-table/dist/#/studySutdentClass?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -295,7 +304,7 @@ const gotoCourse = (id) => {
           );
           );
         } else {
         } else {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studySutdentClass?type=" +
+            url + "/pbl-student-table/dist/#/studySutdentClass?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -316,7 +325,7 @@ const gotoCourse = (id) => {
       }  else if (courseDetail.value.state == 7) {
       }  else if (courseDetail.value.state == 7) {
         if(classList.value.length){
         if(classList.value.length){
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/pptEasyClass?type=" +
+            url + "/pbl-student-table/dist/#/pptEasyClass?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +
@@ -337,7 +346,7 @@ const gotoCourse = (id) => {
           );
           );
         }else {
         }else {
           goto(
           goto(
-            "https://pbl.cocorobo.cn/pbl-student-table/dist/#/pptEasyClass?type=" +
+            url + "/pbl-student-table/dist/#/pptEasyClass?type=" +
               checkStage.value +
               checkStage.value +
               "&courseId=" +
               "&courseId=" +
               courseDetail.value.courseId +
               courseDetail.value.courseId +

+ 27 - 2
src/components/main/courseSelect.vue

@@ -468,7 +468,19 @@ const openCourseDetail = (id) => {
       //   return x.courseId == id
       //   return x.courseId == id
       // })
       // })
       //这个是打开指定的课程接口
       //这个是打开指定的课程接口
-      top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 2, user.user.type);
+      	let url = '';
+				if (lang.lang == 'hk') {
+					url = "https://pbl.cocorobo.hk"
+				}else if (lang.lang == 'en') {
+					url = "https://pbl.cocorobo.com"
+				}else{
+					url = "https://pbl.cocorobo.cn"
+				}
+      // https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=0c3735c9-a2ef-11ef-9b30-005056b86db5&oid=414f2361-ad04-11ed-b13d-005056b86db5&org=0fec3a8a-ad04-11ed-b13d-005056b86db5&courseId=91886917-2f3b-11f1-bcd9-005056924926&tType=1&cid=&screenType=2
+      
+      let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.value[0][0].courseId}&tType=1&cid=&screenType=2`
+      // top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 2, user.user.type);
+      top.U.MD.D.I.openInApplication('setUrl',{url:url2,title:'课程详情',id:new Date().getTime()})
     } else {
     } else {
       updateCourseId(id, "studyDetail")
       updateCourseId(id, "studyDetail")
     }
     }
@@ -543,7 +555,20 @@ const updateCourseId = (id, type) => {
       if (type == "openCourseNewUpdate") {
       if (type == "openCourseNewUpdate") {
         top.U.MD.D.I.openInApplication("openCourseNewUpdate", res.value[0][0].courseId)
         top.U.MD.D.I.openInApplication("openCourseNewUpdate", res.value[0][0].courseId)
       } else {
       } else {
-        top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 3, user.user.type);
+        let url = '';
+				if (lang.lang == 'hk') {
+					url = "https://pbl.cocorobo.hk"
+				}else if (lang.lang == 'en') {
+					url = "https://pbl.cocorobo.com"
+				}else{
+					url = "https://pbl.cocorobo.cn"
+				}
+        // https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=0c3735c9-a2ef-11ef-9b30-005056b86db5&oid=414f2361-ad04-11ed-b13d-005056b86db5&org=0fec3a8a-ad04-11ed-b13d-005056b86db5&courseId=91886917-2f3b-11f1-bcd9-005056924926&tType=1&cid=&screenType=2
+        
+        let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.value[0][0].courseId}&tType=1&cid=&screenType=2`
+        // top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 2, user.user.type);
+        top.U.MD.D.I.openInApplication('setUrl',{url:url2,title:'课程详情',id:new Date().getTime()})
+        // top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 3, user.user.type);
       }
       }
     }
     }
   }, [], { "type": "POST", "withCredentials": true });
   }, [], { "type": "POST", "withCredentials": true });

+ 36 - 12
src/components/main/opendetail.vue

@@ -257,12 +257,24 @@ const openCourseDetail = () => {
 				//   return x.courseId == id
 				//   return x.courseId == id
 				// })
 				// })
 				//这个是打开指定的课程接口
 				//这个是打开指定的课程接口
-				top.U.MD.D.I.openInApplication(
-					"studyDetail",
-					res.value[0][0].courseId,
-					2,
-					user.user.type
-				);
+				let url = '';
+				if (lang.lang == 'hk') {
+					url = "https://pbl.cocorobo.hk"
+				}else if (lang.lang == 'en') {
+					url = "https://pbl.cocorobo.com"
+				}else{
+					url = "https://pbl.cocorobo.cn"
+				}
+				let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.value[0][0].courseId}&tType=1&cid=&screenType=2`
+				// top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 2, user.user.type);
+				top.U.MD.D.I.openInApplication('setUrl',{url:url2,title:'课程详情',id:new Date().getTime()})
+				
+				// top.U.MD.D.I.openInApplication(
+				// 	"studyDetail",
+				// 	res.value[0][0].courseId,
+				// 	2,
+				// 	user.user.type
+				// );
 			} else {
 			} else {
 				updateCourseId(id, "studyDetail");
 				updateCourseId(id, "studyDetail");
 			}
 			}
@@ -284,12 +296,24 @@ const updateCourseId = (id, type) => {
 						res.value[0][0].courseId
 						res.value[0][0].courseId
 					);
 					);
 				} else {
 				} else {
-					top.U.MD.D.I.openInApplication(
-						"studyDetail",
-						res.value[0][0].courseId,
-						3,
-						user.user.type
-					);
+					let url = '';
+					if (lang.lang == 'hk') {
+						url = "https://pbl.cocorobo.hk"
+					}else if (lang.lang == 'en') {
+						url = "https://pbl.cocorobo.com"
+					}else{
+						url = "https://pbl.cocorobo.cn"
+					}
+					let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.value[0][0].courseId}&tType=${user.user.type}&cid=&screenType=2`
+					// top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 2, user.user.type);
+					top.U.MD.D.I.openInApplication('setUrl',{url:url2,title:'课程详情',id:new Date().getTime()})
+
+					// top.U.MD.D.I.openInApplication(
+					// 	"studyDetail",
+					// 	res.value[0][0].courseId,
+					// 	3,
+					// 	user.user.type
+					// );
 				}
 				}
 			}
 			}
 		},
 		},