From ee08d2dab2a5c1163464d8d7535ce5fdb64f9419 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Thu, 27 Feb 2025 13:57:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/CONST.js | 5 +- src/views/growth/components/gowthPath2.vue | 15 +++--- src/views/growth/growthDetails.vue | 55 ++++++++++++---------- src/views/growth/growthPath.vue | 10 ++-- vite.config.js | 2 +- 5 files changed, 47 insertions(+), 40 deletions(-) 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..2dcd708 100644 --- a/src/views/growth/components/gowthPath2.vue +++ b/src/views/growth/components/gowthPath2.vue @@ -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; 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 @@ -
-
-
必修
-
-
-
-
选修
-
-
+
+
+
必修
+
+
+
选修
+
+
+