feat:合并

This commit is contained in:
lixg
2022-12-14 22:45:38 +08:00
14 changed files with 143 additions and 95 deletions

View File

@@ -342,7 +342,7 @@ import medal2 from "@/assets/image/medal/medal2.png";
import medal3 from "@/assets/image/medal/medal3.png";
import img from "@/assets/image/uploadimg.png";
import { boeRequest, useRequest } from "@/api/request";
import { BASE_URL, ROUTER_PROCESS } from "@/api/api";
import { ROUTER_PROCESS } from "@/api/api";
import { useRoute, useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import { useUserInfo } from "@/api/utils";
@@ -576,12 +576,11 @@ const types = ref({
13: "去完成",
},
path: {
// 1: `https://u-pre.boe.com/pc/course/studyindex?id=${}`,
1: `https://u-pre.boe.com/pc/course/studyindex`,
1: import.meta.env.VITE_BOE_ONLINE_CLASS_URL,
2: "/faceteach",
3: "",
3: import.meta.env.VITE_BOE_CASS_DETAIL_URL,
4: "/homeworkpage",
5: "",
5: import.meta.env.VITE_BOE_TEST_DETAIL_URL,
6: "/livebroadcast",
7: "",
8: "/discusspage",
@@ -598,6 +597,15 @@ function toFinish(d) {
ElMessage.error("暂时未开放");
return;
}
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
//配置文件
const url =
types.value.path[d.type] + (d.type === 1 ? d.targetId : d.courseId);
import.meta.env.DEV
? (window.location.href = url)
: (window.parent.location.href = url);
return;
}
router.push({
path: types.value.path[d.type],
query: { id: d.routerTaskId, type: 1, courseId: d.courseId },