mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +08:00
提交
This commit is contained in:
@@ -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')}),
|
||||
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",
|
||||
|
||||
@@ -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;
|
||||
:deep(.el-progress-bar__outer) {
|
||||
background-color: #aeb3b8;
|
||||
}
|
||||
.path-item {
|
||||
position: absolute;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user