|
|
@@ -471,6 +471,8 @@ const getCourseid = (id) => {
|
|
|
console.log(res.data[0]);
|
|
|
// console.log(res.data[0][0].courseId);
|
|
|
if (res.data[0].length > 0) {
|
|
|
+ console.log(res.data[0][0], 'res.data[0][0]');
|
|
|
+ // getCourseUrl2(res.data[0][0]) //新课备课 获取id
|
|
|
DialogRef.value.getClasslist(res.data[0][0])
|
|
|
} else {
|
|
|
let classResult = await checkClass()
|
|
|
@@ -552,7 +554,47 @@ const openCourseDetail = (id) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const getCourseUrl2 = (item) => {
|
|
|
+ console.log(item, 'item');
|
|
|
+ let _str = ""
|
|
|
+ if(item.state == 1){
|
|
|
+ _str = "course_stageMode_open"
|
|
|
+ }if(item.state == 2){
|
|
|
+ _str = "course_taskMode_open"
|
|
|
+ }if(item.state == 3){
|
|
|
+ _str = "course_easyMode_open"
|
|
|
+ }if(item.state == 5){
|
|
|
+ _str = "course_aiMode_open"
|
|
|
+ }if(item.state == 6){
|
|
|
+ _str = "course_aiEasyMode_open"
|
|
|
+ }if(item.state == 7){
|
|
|
+ _str = "course_pptMode_open"
|
|
|
+ }
|
|
|
+ addOp3('1', "", { courseid: item.courseId, type: _str }, "success")
|
|
|
|
|
|
+ // window.topU.postMessage({ cid: item.courseId, screenType: "3" }, "*");
|
|
|
+ // let url = 'https://beta.pbl.cocorobo.cn'
|
|
|
+ // if (window.location.href.includes('beta')) {
|
|
|
+ // url = url
|
|
|
+ // }else if (lang.lang === 'cn') {
|
|
|
+ // url = 'https://pbl.cocorobo.cn'
|
|
|
+ // }else if (lang.lang === 'hk') {
|
|
|
+ // url = 'https://pbl.cocorobo.hk'
|
|
|
+ // }else if (lang.lang === 'en') {
|
|
|
+ // url = 'https://pbl.cocorobo.com'
|
|
|
+ // }
|
|
|
+ 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=${item.courseId}&tType=1&cid=&screenType=2&noLogin=4`
|
|
|
+
|
|
|
+ openCourseIframe(url2)
|
|
|
+}
|
|
|
const getCourseUrl = (item) => {
|
|
|
// return console.log(item);
|
|
|
|