11wqe1 1 місяць тому
батько
коміт
af59dd6431

+ 29 - 29
src/components/main/AIexplorationCon.vue

@@ -170,35 +170,35 @@ const gotoPage = (val)=>{
 	// dialogVisible.value = true
 	// Tips.value = val.name
 }
-const openCourseDetail = () => {
-	let id = cid.value
-	console.log(user.user)
-	// 会返回复制得课程
-	top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
-		console.log(res)
-		if (res.value[0].length > 0) {
-		// let isSave = res.value[0].filter(x => {
-		//   return x.courseId == id
-		// })
-		//这个是打开指定的课程接口
-		top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 2, user.user.type);
-		} else {
-			updateCourseId(id, "studyDetail")
-		}
-	}, [], { "type": "POST", "withCredentials": true });
-}
-const updateCourseId = (id, type) => {
-  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", [id, user.user.userid], function (res) {
-    console.log(res)
-    if (res.value[0][0].courseId != "") {
-      if (type == "openCourseNewUpdate") {
-        top.U.MD.D.I.openInApplication("openCourseNewUpdate", res.value[0][0].courseId)
-      } else {
-        top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 3, user.user.type);
-      }
-    }
-  }, [], { "type": "POST", "withCredentials": true });
-}
+// const openCourseDetail = () => {
+// 	let id = cid.value
+// 	console.log(user.user)
+// 	// 会返回复制得课程
+// 	top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
+// 		console.log(res)
+// 		if (res.value[0].length > 0) {
+// 		// let isSave = res.value[0].filter(x => {
+// 		//   return x.courseId == id
+// 		// })
+// 		//这个是打开指定的课程接口
+// 		top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 2, user.user.type);
+// 		} else {
+// 			updateCourseId(id, "studyDetail")
+// 		}
+// 	}, [], { "type": "POST", "withCredentials": true });
+// }
+// const updateCourseId = (id, type) => {
+//   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", [id, user.user.userid], function (res) {
+//     console.log(res)
+//     if (res.value[0][0].courseId != "") {
+//       if (type == "openCourseNewUpdate") {
+//         top.U.MD.D.I.openInApplication("openCourseNewUpdate", res.value[0][0].courseId)
+//       } else {
+//         top.U.MD.D.I.openInApplication("studyDetail", res.value[0][0].courseId, 3, user.user.type);
+//       }
+//     }
+//   }, [], { "type": "POST", "withCredentials": true });
+// }
 </script>
 
 <style lang="scss" scoped>

+ 14 - 11
src/components/main/Practice.vue

@@ -99,18 +99,21 @@ const openApplication = (type) => {
   // }
   
 }
-const openApplications = (type) => {
-  if (type) {
-    console.log(type, InfoStore.user)
-    window.open('https://cloud.cocorobo.cn//#/' + type)
-  }else{
-    window.open("https://knowledge.cocorobo.cn/zh-CN/story-telling/643a21ae-d2ef-11ef-9d05-12e77c4cb76b")
-  }
-}
-const courseDown = e => {
-  dialogVisible.value = true
-  e.stopPropagation();
+const handleClose = () => {
+  dialogVisible.value = false
 }
+// const openApplications = (type) => {
+//   if (type) {
+//     console.log(type, InfoStore.user)
+//     window.open('https://cloud.cocorobo.cn//#/' + type)
+//   }else{
+//     window.open("https://knowledge.cocorobo.cn/zh-CN/story-telling/643a21ae-d2ef-11ef-9d05-12e77c4cb76b")
+//   }
+// }
+// const courseDown = e => {
+//   dialogVisible.value = true
+//   e.stopPropagation();
+// }
 watchEffect(() => {
   // console.log('111111111111',CurrentRole, user.user)
   if (JSON.stringify(InfoStore.user) != "{}") {

+ 150 - 68
src/components/main/courseSelect.vue

@@ -47,7 +47,7 @@
                 <!-- v-if="isupdateCourse" -->
                 <!-- v-if="isupdateCourse && item.courseType == '1'" -->
                 <el-popover v-if="isupdateCourse" placement="bottom" :width="210"
-                  trigger="click" show-after="500" @hide="checked1 = false">
+                  trigger="click" :show-after="500" @hide="checked1 = false">
                   <template #reference>
                     <img :src="DownloadImg" v-if="item.json.courseType == '2'" alt="">
                     <img :src="DownloadImg" v-else alt="" @click="getDate(item.json.dataId)">
@@ -116,7 +116,7 @@
                 </el-tooltip>
 
                 <el-popover v-if="isupdateCourse" placement="bottom" :width="210"
-                  trigger="click" show-after="500" @hide="checked1 = false">
+                  trigger="click" :show-after="500" @hide="checked1 = false">
                   <template #reference>
                     <img :src="DownloadImg" v-if="item.courseType == '2'" alt="">
                     <img :src="DownloadImg" v-else alt="" @click="getDate(item.dataId)">
@@ -413,16 +413,16 @@ const clickmod = val => {
     currentAI6Data.value = AI6Data.value[val]
   }
 }
-const SwitchCourseType = (val) => {
-  courseTypeShow.value = val
-  if (val) {
-    courseData.value = courseDataJson.new
-    volumes.value = true
-  } else {
-    courseData.value = courseDataJson.old
-  }
-  currentData.value = courseData.value[selectGrand.value]
-}
+// const SwitchCourseType = (val) => {
+//   courseTypeShow.value = val
+//   if (val) {
+//     courseData.value = courseDataJson.new
+//     volumes.value = true
+//   } else {
+//     courseData.value = courseDataJson.old
+//   }
+//   currentData.value = courseData.value[selectGrand.value]
+// }
 const getImageUrl = (url) => {
   return new URL(url, import.meta.url).href
 }
@@ -470,10 +470,13 @@ const getCourseid2 = (id, type) => {
 
 const openCourseDetail = (id) => {
   console.log(user.user)
-  // 会返回复制得课程
-  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
-    console.log(res)
-    if (res.value[0].length > 0) {
+  axios.post('https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz', {id: id +','+ user.user.userid}, {
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+    withCredentials: true
+  })
+  .then(res => {
+    console.log('openCourseDetail',res)
+    if (res.data[0].length > 0) {
       // let isSave = res.value[0].filter(x => {
       //   return x.courseId == id
       // })
@@ -488,13 +491,42 @@ const openCourseDetail = (id) => {
 				}
       // 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`
+      let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.data[0][0].courseId}&tType=1&cid=&screenType=2`
+      console.log(url2, "url2")
       // 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 {
       updateCourseId(id, "studyDetail")
     }
-  }, [], { "type": "POST", "withCredentials": true });
+  })
+  .catch(err => {
+    console.log(err)
+  })
+  // 会返回复制得课程
+  // top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
+  //   console.log(res)
+  //   if (res.value[0].length > 0) {
+  //     // let isSave = res.value[0].filter(x => {
+  //     //   return x.courseId == id
+  //     // })
+  //     //这个是打开指定的课程接口
+  //     	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 {
+  //     updateCourseId(id, "studyDetail")
+  //   }
+  // }, [], { "type": "POST", "withCredentials": true });
 
 }
 const getTimeCourse = (id, item) => {
@@ -503,9 +535,20 @@ const getTimeCourse = (id, item) => {
   }
   try {
     setIntervalNum.value = setInterval(() => {
-      top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/addOperationTimeT", [user.user.userid, id, '5', 30], function (res) {
+      axios.post('https://pbl.cocorobo.cn/api/pbl/addOperationTimeT', {userid: user.user.userid, id: id, type: '5', time: 30}, {
+        headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+        withCredentials: true
+      })
+      .then(res => {
         console.log(res, "22222222222222222");
-      }, [], { "type": "POST", "withCredentials": true });
+      })
+      .catch(err => {
+        console.log(err)
+      })
+      // top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/addOperationTimeT", [user.user.userid, id, '5', 30], function (res) {
+      //   console.log(res, "22222222222222222");
+      // }, [], { "type": "POST", "withCredentials": true });
+
     }, 30000)
   } catch (e) {
     console.log(e)
@@ -542,28 +585,34 @@ const getTimeCourse = (id, item) => {
     })
   }, interValtTime);
 }
-const updateCourse = (id, item) => {
-  // 会返回courseId和state 两个参数  然后打开
-  getTimeCourse(id, item)
-  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
-    console.log(res)
-    if (res.value[0].length > 0) {
-      // let isSave = res.value[0].filter(x => {
-      //   return x.courseId == id
-      // })
-      top.U.MD.D.I.openInApplication('openCourseNewUpdate', res.value[0][0].courseId); //这个是打开指定的课程接口
-    } else {
-      updateCourseId(id, "openCourseNewUpdate")
-    }
-  }, [], { "type": "POST", "withCredentials": true });
-}
+// const updateCourse = (id, item) => {
+//   // 会返回courseId和state 两个参数  然后打开
+//   getTimeCourse(id, item)
+//   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
+//     console.log(res)
+//     if (res.value[0].length > 0) {
+//       // let isSave = res.value[0].filter(x => {
+//       //   return x.courseId == id
+//       // })
+//       top.U.MD.D.I.openInApplication('openCourseNewUpdate', res.value[0][0].courseId); //这个是打开指定的课程接口
+//     } else {
+//       updateCourseId(id, "openCourseNewUpdate")
+//     }
+//   }, [], { "type": "POST", "withCredentials": true });
+// }
 
 const updateCourseId = (id, type) => {
-  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", [id, user.user.userid], function (res) {
+  axios.post('https://pbl.cocorobo.cn/api/pbl/copyCourseSz', {id: id +','+ user.user.userid}, {
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+    withCredentials: true
+  })
+  .then(res => {
+
+  // top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", [id, user.user.userid], function (res) {
     console.log(res)
-    if (res.value[0][0].courseId != "") {
+    if (res.data[0][0].courseId != "") {
       if (type == "openCourseNewUpdate") {
-        top.U.MD.D.I.openInApplication("openCourseNewUpdate", res.value[0][0].courseId)
+        top.U.MD.D.I.openInApplication("openCourseNewUpdate", res.data[0][0].courseId)
       } else {
         let url = '';
 				if (lang.lang == 'hk') {
@@ -575,39 +624,50 @@ const updateCourseId = (id, type) => {
 				}
         // 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`
+        let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.data[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 });
+  })
+  .catch(err => {
+    console.log(err)
+  })
 }
 
-const ReductionCourse = id => {
-  // updateReductionId.value = id
-  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
-    console.log(res)
-    if (res.value[0].length > 0) {
-      // let isSave = res.value[0].filter(x => {
-      //   return x.courseId == id
-      // })
-      dialogVisible.value = true
-      updateReductionId.value = res.value[0][0].courseId
-    } else {
-      ElMessage({
-        message: '该课程就是最初课程,不能还原',
-        type: 'warning',
-      })
-    }
-  }, [], { "type": "POST", "withCredentials": true });
-}
+// const ReductionCourse = id => {
+//   // updateReductionId.value = id
+//   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
+//     console.log(res)
+//     if (res.value[0].length > 0) {
+//       // let isSave = res.value[0].filter(x => {
+//       //   return x.courseId == id
+//       // })
+//       dialogVisible.value = true
+//       updateReductionId.value = res.value[0][0].courseId
+//     } else {
+//       ElMessage({
+//         message: '该课程就是最初课程,不能还原',
+//         type: 'warning',
+//       })
+//     }
+//   }, [], { "type": "POST", "withCredentials": true });
+// }
 
 const updateReduction = () => {
-  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/revertCourseSz", [updateReductionId.value], function (res) {
+  axios.post('https://pbl.cocorobo.cn/api/pbl/revertCourseSz', {id: updateReductionId.value}, {
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+    withCredentials: true
+  })
+  .then(res => {
     console.log(res, "还原")
     dialogVisible.value = false
-  }, [], { "type": "POST", "withCredentials": true });
+  })
+  .catch(err => {
+    console.log(err, "还原")
+    dialogVisible.value = false
+  });
 }
 
 const getDate = async (id) => {
@@ -615,14 +675,19 @@ const getDate = async (id) => {
   let dataList = [];
 
   return new Promise((resolve, reject) => {
-    top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/selectCourseDetailSz", [id], function (res) {
+    axios.post('https://pbl.cocorobo.cn/api/pbl/selectCourseDetailSz', {id: id}, {
+      headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+      withCredentials: true
+    })
+    .then(res => {
       console.log(res);
-      if (!res || !res.value || res.value[0].length === 0 || res.value[0][0].chapters.length === 0) {
+      console.log(res);
+      if (!res || !res.data || res.data[0].length === 0 || res.data[0][0].chapters.length === 0) {
         reject(new Error("Invalid response or no chapters found"));
         return;
       }
 
-      const datachapters = JSON.parse(res.value[0][0].chapters);
+      const datachapters = JSON.parse(res.data[0][0].chapters);
 
       for (let i = 0; i < datachapters.length; i++) {
         const data = datachapters[i];
@@ -640,7 +705,10 @@ const getDate = async (id) => {
       }
 
       resolve(dataList);
-    }, [], { "type": "POST", "withCredentials": true });
+    })
+    .catch(err => {
+      console.error("Error fetching data:", err);
+    });
   })
     .then((dataList) => {
       getUpdateCourse(dataList, id);
@@ -708,9 +776,16 @@ const checkedAll = (id) => {
 const downloadOne = async (url, fileName) => {
   try {
     console.log("urls", [user.user.userid, getUpdateCourseId.value, '4', 1])
-    top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/addOperationTimeT", [user.user.userid, getUpdateCourseId.value, '4', 1], function (res) {
+    axios.post('https://pbl.cocorobo.cn/api/pbl/addOperationTimeT', {userid: user.user.userid, id: getUpdateCourseId.value, type: '4', time: 1}, {
+      headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+      withCredentials: true
+    })
+    .then(res => {
       console.log(res, '11111111111')
-    }, [], { "type": "POST", "withCredentials": true });
+    })
+    .catch(err => {
+      console.error("Error fetching data:", err);
+    });
   } catch (error) {
     console.log(error);
   }
@@ -770,9 +845,16 @@ const DownloadProcessing = async () => {
 
   try {
     console.log("urls", [user.user.userid, getUpdateCourseId.value, '4', urls.length])
-    top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/addOperationTimeT", [user.user.userid, getUpdateCourseId.value, '4', urls.length], function (res) {
+    axios.post('https://pbl.cocorobo.cn/api/pbl/addOperationTimeT', {userid: user.user.userid, id: getUpdateCourseId.value, type: '4', time: urls.length}, {
+      headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+      withCredentials: true
+    })
+    .then(res => {
       console.log(res, '11111111111')
-    }, [], { "type": "POST", "withCredentials": true });
+    })
+    .catch(err => {
+      console.error("Error fetching data:", err);
+    });
   } catch (error) {
     console.log(error);
   }

+ 2 - 2
src/components/main/downloadCourse.vue

@@ -22,7 +22,7 @@
                 <span>上册</span>
                 {{ item.title }}
                 <!-- v-if="isupdateCourse" -->
-                <el-popover v-if="isupdateCourse" placement="bottom" :width="210" trigger="click" show-after="500"
+                <el-popover v-if="isupdateCourse" placement="bottom" :width="210" trigger="click" :show-after="500"
                   @hide="checked1 = false">
                   <template #reference>
                     <img :src="DownloadImg" alt="" @click="getDate(item.dataId)">
@@ -82,7 +82,7 @@
                 <span>下册</span>
                 {{ item.title }}
                 <!-- v-if="isupdateCourse" -->
-                <el-popover v-if="isupdateCourse" placement="bottom" :width="210" trigger="click" show-after="500"
+                <el-popover v-if="isupdateCourse" placement="bottom" :width="210" trigger="click" :show-after="500"
                   @hide="checked1 = false">
                   <template #reference>
                     <img :src="DownloadImg" alt="" @click="getDate(item.dataId)">

+ 114 - 101
src/components/main/opendetail.vue

@@ -5,7 +5,6 @@
 			:before-close="handleClose"
 			fullscreen
 			:show-close="false"
-			v-loading="pageloading"
 		>
 			<template #header>
 				<div class="topH">
@@ -32,95 +31,97 @@
 					</div>
 				</div>
 			</template>
-			<div class="fileArea2" @click="openDra" v-if="lang.lang != 'hk'">
-				<!-- <img src="../../assets/icon/filemr.svg" alt=""> -->
-			</div>
-			<el-drawer
-				v-model="drawer"
-				direction="rtl"
-				size="500px"
-				:close-on-click-modal="false"
-				:show-close="false"
-				:before-close="handleClose"
-			>
-				<template #header>
-					<div class="closeBtn">
-						<div style="display: flex; align-items: center; gap: 10px">
-							<img src="../../assets/icon/tishi.svg" alt="" />
-							<span>{{ lang.ssGuide }}</span>
+			<div v-loading="pageloading">
+				<div class="fileArea2" @click="openDra" v-if="lang.lang != 'hk'">
+					<!-- <img src="../../assets/icon/filemr.svg" alt=""> -->
+				</div>
+				<el-drawer
+					v-model="drawer"
+					direction="rtl"
+					size="500px"
+					:close-on-click-modal="false"
+					:show-close="false"
+					:before-close="handleClose"
+				>
+					<template #header>
+						<div class="closeBtn">
+							<div style="display: flex; align-items: center; gap: 10px">
+								<img src="../../assets/icon/tishi.svg" alt="" />
+								<span>{{ lang.ssGuide }}</span>
+							</div>
+							<div class="fileArea" @click="drawer = false"></div>
 						</div>
-						<div class="fileArea" @click="drawer = false"></div>
-					</div>
-				</template>
-				<template #default>
-					<div class="draCon">
-						<div class="dratit">
-							<div
-								class="tit"
-								:class="[drawertit == 1 ? 'tit2' : '']"
-								@click="drawertit = 1"
-							>
-								{{
-									lang.ssFilesCount.replace(
-										/\*/g,
-										inst.file && inst.file.length ? inst.file.length : 0
-									)
-								}}
+					</template>
+					<template #default>
+						<div class="draCon">
+							<div class="dratit">
+								<div
+									class="tit"
+									:class="[drawertit == 1 ? 'tit2' : '']"
+									@click="drawertit = 1"
+								>
+									{{
+										lang.ssFilesCount.replace(
+											/\*/g,
+											inst.file && inst.file.length ? inst.file.length : 0
+										)
+									}}
+								</div>
+								<div
+									class="tit"
+									:class="[drawertit == 0 ? 'tit2' : '']"
+									@click="drawertit = 0"
+								>
+									{{ lang.ssText }}
+								</div>
 							</div>
-							<div
-								class="tit"
-								:class="[drawertit == 0 ? 'tit2' : '']"
-								@click="drawertit = 0"
-							>
-								{{ lang.ssText }}
+							<div class="draconL" v-if="drawertit == 0">
+								<div v-html="inst.content" @click="showPreviewImg"></div>
 							</div>
-						</div>
-						<div class="draconL" v-if="drawertit == 0">
-							<div v-html="inst.content" @click="showPreviewImg"></div>
-						</div>
-						<div class="draCon" v-if="drawertit == 1">
-							<div class="pdflist" v-if="inst.file && inst.file.length">
-								<div v-for="item in inst.file" :key="item.id">
-									<div
-										@click="cutPdf(item.url)"
-										class="pdfCS"
-										:class="[pdfUrl == item.url ? 'pdfback' : '']"
-									>
-										<div class="pdfCSTit">{{ item.name }}</div>
-										<img
-											style="flex-shrink: 0"
-											src="../../assets/icon/xiazai.png"
-											alt=""
-											@click.stop="downloadPdf(item)"
-										/>
-										<!-- @click.stop="downloadPdf(item.url,item.name)" -->
+							<div class="draCon" v-if="drawertit == 1">
+								<div class="pdflist" v-if="inst.file && inst.file.length">
+									<div v-for="item in inst.file" :key="item.id">
+										<div
+											@click="cutPdf(item.url)"
+											class="pdfCS"
+											:class="[pdfUrl == item.url ? 'pdfback' : '']"
+										>
+											<div class="pdfCSTit">{{ item.name }}</div>
+											<img
+												style="flex-shrink: 0"
+												src="../../assets/icon/xiazai.png"
+												alt=""
+												@click.stop="downloadPdf(item)"
+											/>
+											<!-- @click.stop="downloadPdf(item.url,item.name)" -->
+										</div>
 									</div>
 								</div>
-							</div>
-							<div style="flex: 1" v-if="inst.file && inst.file.length">
-								<iframe
-									:src="pdfUrl"
-									width="100%"
-									height="100%"
-									frameborder="0"
-								></iframe>
+								<div style="flex: 1" v-if="inst.file && inst.file.length">
+									<iframe
+										:src="pdfUrl"
+										width="100%"
+										height="100%"
+										frameborder="0"
+									></iframe>
+								</div>
 							</div>
 						</div>
-					</div>
-				</template>
-			</el-drawer>
-			<!-- <div class="courseL" @click="openCourseDetail">
+					</template>
+				</el-drawer>
+				<!-- <div class="courseL" @click="openCourseDetail">
                 <span>点击进入对应课程</span>
                 <img :src="dian" alt="">
             </div> -->
-			<iframe
-				allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
-				ref="iframeRef1"
-				:src="iframeRef1Url"
-				style="width: 100%; height: 100%"
-				frameborder="0"
-			>
-			</iframe>
+				<iframe
+					allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
+					ref="iframeRef1"
+					:src="iframeRef1Url"
+					style="width: 100%; height: 100%"
+					frameborder="0"
+				>
+				</iframe>
+			</div>
 		</el-dialog>
 	</div>
     <!-- 富文本图片放大 -->
@@ -247,12 +248,18 @@ const openCourseDetail = () => {
 	let id = cid.value;
 	console.log(user.user);
 	// 会返回复制得课程
-	top.U.A.Request(
-		"https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz",
-		[id, user.user.userid],
-		function (res) {
+	axios.post("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", {id: id +','+ user.user.userid}, {
+		headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+		withCredentials: true
+	})
+	.then(res => {
+
+	// top.U.A.Request(
+	// 	"https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz",
+	// 	[id, user.user.userid],
+	// 	function (res) {
 			console.log(res);
-			if (res.value[0].length > 0) {
+			if (res.data[0].length > 0) {
 				// let isSave = res.value[0].filter(x => {
 				//   return x.courseId == id
 				// })
@@ -265,7 +272,7 @@ const openCourseDetail = () => {
 				}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`
+				let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.data[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()})
 				
@@ -278,22 +285,28 @@ const openCourseDetail = () => {
 			} else {
 				updateCourseId(id, "studyDetail");
 			}
-		},
-		[],
-		{ type: "POST", withCredentials: true }
-	);
+		})
+		.catch(err => {
+			console.log(err)
+		})
 };
 const updateCourseId = (id, type) => {
-	top.U.A.Request(
-		"https://pbl.cocorobo.cn/api/pbl/copyCourseSz",
-		[id, user.user.userid],
-		function (res) {
+	axios.post("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", {id: id +','+ user.user.userid}, {
+		headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+		withCredentials: true
+	})
+	.then(res => {
+	
+	// top.U.A.Request(
+	// 	"https://pbl.cocorobo.cn/api/pbl/copyCourseSz",
+	// 	[id, user.user.userid],
+	// 	function (res) {
 			console.log(res);
-			if (res.value[0][0].courseId != "") {
+			if (res.data[0][0].courseId != "") {
 				if (type == "openCourseNewUpdate") {
 					top.U.MD.D.I.openInApplication(
 						"openCourseNewUpdate",
-						res.value[0][0].courseId
+						res.data[0][0].courseId
 					);
 				} else {
 					let url = '';
@@ -304,7 +317,7 @@ const updateCourseId = (id, type) => {
 					}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`
+					let url2 = `${url}/pbl-student-table/dist/#/courseDetail?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&courseId=${res.data[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()})
 
@@ -316,10 +329,10 @@ const updateCourseId = (id, type) => {
 					// );
 				}
 			}
-		},
-		[],
-		{ type: "POST", withCredentials: true }
-	);
+		})
+		.catch(err => {
+			console.log(err)
+		})
 };
 </script>