diff --git a/src/api/CONST.js b/src/api/CONST.js index 5f5b0ea..b127de7 100644 --- a/src/api/CONST.js +++ b/src/api/CONST.js @@ -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", diff --git a/src/views/growth/components/gowthPath2.vue b/src/views/growth/components/gowthPath2.vue index 414388a..fe516ab 100644 --- a/src/views/growth/components/gowthPath2.vue +++ b/src/views/growth/components/gowthPath2.vue @@ -3,7 +3,7 @@
{ let num2 = index % 10; return { - top: `${multiple * (853 + 25) + point[num2].top}px`, + top: `${multiple * (853 + 35) + point[num2].top}px`, right: `${point[num2].right}px`, - topNum: multiple * (853 + 25) + point[num2].top, + topNum: multiple * (853 + 35) + point[num2].top, align: point[num2].align, }; }; @@ -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; diff --git a/src/views/growth/growthDetails.vue b/src/views/growth/growthDetails.vue index b8a4486..f62043a 100644 --- a/src/views/growth/growthDetails.vue +++ b/src/views/growth/growthDetails.vue @@ -7,24 +7,24 @@
-
-
-
必修
-
-
-
-
选修
-
-
+
+
+
必修
+
+
+
选修
+
+
+