|
|
@@ -81,36 +81,6 @@ const getdata =()=>{
|
|
|
loading.value = false
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-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>
|