diff --git a/src/views/growth/growthList.vue b/src/views/growth/growthList.vue index ddd8791..4074ff2 100644 --- a/src/views/growth/growthList.vue +++ b/src/views/growth/growthList.vue @@ -666,8 +666,13 @@ function toOffcoursePlanPage(id) { } .item-img { width: 100%; - background: #cccccc; border-radius: 14px 14px 0px 0px; + overflow: hidden; + + img:hover { + transform: scale(1.1); + transition: all 1s ease; + } } .item-content { padding: 29px 24px 31px 26px; diff --git a/src/views/growth/growthRoadmap.vue b/src/views/growth/growthRoadmap.vue index e7d723a..f7cad30 100644 --- a/src/views/growth/growthRoadmap.vue +++ b/src/views/growth/growthRoadmap.vue @@ -86,45 +86,15 @@
- - @@ -305,62 +305,63 @@ const { } = useRoute(); const point = [ - { - top: 0, - right: "234px", - }, { top: "226px", right: "128px", }, { - top: "92px", - right: "455px", + top: 0, + right: "234px", }, { top: "347px", right: "341px", }, { - top: "155px", - right: "673px", + top: "92px", + right: "455px", }, { top: "443px", right: "561px", }, { - top: "200px", - right: "893px", + top: "155px", + right: "673px", }, { top: "512px", right: "780px", }, { - top: "232px", - right: "1111px", + top: "200px", + right: "893px", }, { top: "565px", right: "1000px", }, { - top: "254px", - right: "1331px", + top: "232px", + right: "1111px", }, { top: "602px", right: "1220px", }, { - top: "267px", - right: "1551px", + top: "254px", + right: "1331px", }, { top: "630px", right: "1440px", }, + { + top: "267px", + right: "1551px", + }, + { top: "650px", right: "1660px", @@ -463,8 +464,17 @@ const getList = () => { } loading.value = true; growthRequest(PROFESSIONAL_STUDENT_TASKLIST, params).then((res) => { - console.log(res); - stageProcessList.value = res.data; + let newData = res.data.slice(0, 15); + // 默认第一个在第一点位 + let num = 15 / newData.length; + stageProcessList.value = newData.map((item, index) => { + // 默认第一个在第一点位 + if (index === 0) { + item.position = 0; + } + item.position = Number((index * num).toFixed()); + return item; + }); loading.value = false; }); }; @@ -815,6 +825,7 @@ function toOffcoursePlanPage(id) { .path-item-bottom { position: absolute; width: 210px; + cursor: pointer; .item-progress { flex: 1; } @@ -871,6 +882,7 @@ function toOffcoursePlanPage(id) { .path-item-top { position: absolute; width: 210px; + cursor: pointer; .item-progress { flex: 1; }