This commit is contained in:
Pengxiansen
2025-02-27 13:57:58 +08:00
parent baec2692f7
commit ee08d2dab2
5 changed files with 47 additions and 40 deletions

View File

@@ -44,11 +44,12 @@ export const TASK_TYPES = {
},
path: {
// 增加异步防止ios阻止弹窗弹出
1: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL + courseId) }), //在线
2: ({ targetId }) => setTimeout(() => { window.open(`${location.protocol}//${location.host}${import.meta.env.VITE_BASE_API}/stu/project/redirectDetail?courseId=${targetId}`, '_top') }),
3: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL + courseId) }), //案例
4: "/homeworkpage",
5: ({ examType }) => examType === 2 ? '/externalexam' : setTimeout(() => {(window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL)}), //考试
5: ({ examType }) => examType === 2 ? '/externalexam' : (window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL), //考试
6: "/liveboradcast",
7: '/outerchain', //外联
8: "/discusspage",

View File

@@ -97,7 +97,7 @@ const props = defineProps({
const point = [
{
top: 0,
right: -24,
right: -40,
},
{
top: 51,
@@ -148,11 +148,11 @@ const widthConfig = [
"20px",
"64px",
"40px",
"80px",
"67px",
"40px",
"64px",
"47px",
"80px",
"45px",
"34px",
"65px",
];
@@ -229,13 +229,14 @@ const toFinish = (item) => {
}
.gowth-path2 {
position: relative;
margin: 50px 45px 31px 63px;
width: 310px;
margin: 20px auto 31px auto;
box-sizing: border-box;
background-image: url(@/assets/image/growth/path2.png);
background-size: 100%;
:deep(.el-progress-bar__outer) {
background-color: #AEB3B8;
background-color: #aeb3b8;
}
.path-item {
position: absolute;

View File

@@ -79,7 +79,6 @@
}" -->
<template v-if="stageProcessList && stageProcessList.length">
<div
:id="item.id"
v-for="(item, key) in stageProcessList"
:key="key"
@@ -92,7 +91,10 @@
/>
<div class="task-img-icon">{{ key + 1 }}</div>
</div>
<div style="margin-left: 11px; width: 58%" @click.native="toFinish(item)">
<div
style="margin-left: 11px; width: 58%"
@click.native="toFinish(item)"
>
<div style="display: flex; align-items: center">
<div class="task-type">
{{ TASK_TYPES.typeName[item.courseType] }}
@@ -507,7 +509,6 @@ async function toFinish(d) {
}
console.log("TASK_TYPES.path[d.type]", TASK_TYPES.path[d.courseType]);
if (typeof TASK_TYPES.path[d.courseType] === "string") {
TASK_TYPES.path[d.courseType] &&
TASK_TYPES.path[d.courseType].startsWith("http") &&
window.open(TASK_TYPES.path[d.type] + d.targetId, "_top");
@@ -545,10 +546,12 @@ async function toFinish(d) {
let params = {
examType: d.info.examType,
};
window.open(
TASK_TYPES.path[d.courseType](params) + d.info.examinationPaperId,
"_top"
);
const path =
TASK_TYPES.path[d.courseType](params) + d.info.examinationPaperId;
// 增加异步防止ios阻止弹窗弹出
setTimeout(() => {
window.open(path, "_top");
});
} else {
let params = {
courseId: d.courseId ? d.courseId : d.info.id,

View File

@@ -783,10 +783,12 @@ async function toFinish(d) {
let params = {
examType: d.info.examType,
};
window.open(
TASK_TYPES.path[d.courseType](params) + d.info.examinationPaperId,
"_top"
);
const path =
TASK_TYPES.path[d.courseType](params) + d.info.examinationPaperId;
// 增加异步防止ios阻止弹窗弹出
setTimeout(() => {
window.open(path, "_top");
});
} else {
let params = {
courseId: d.courseId ? d.courseId : d.info.id,

View File

@@ -41,7 +41,7 @@ export default defineConfig(({ command, mode }) =>
]
},
server: {
// host: "192.168.3.51",
// host: "0.0.0.0",
proxy: {
// "/professional": {
// // target: 'http://192.168.237.141:32002',