fix(admission-officer): 修复样式问题并添加视频播放功能

- 修复列表项样式和间距问题
- 添加链接悬停效果
- 实现视频播放弹窗功能
- 优化圆角边框和交互细节
- 调整图片显示和文本溢出处理
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-07-14 19:00:55 +08:00
parent 9379c50224
commit 14ee9914ca
5 changed files with 514 additions and 243 deletions

View File

@@ -26,6 +26,13 @@
flex: 1;
}
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
.admission-head {
width: 100%;
height: 144px;
@@ -139,14 +146,16 @@
height: 36px;
}
}
.content {
width: 592px;
height: 333px;
position: relative;
border-radius: 10px;
overflow: hidden;
.img {
width: 592px;
// width: 592px;
height: 333px;
}
@@ -277,28 +286,29 @@
padding-top: 13px;
.introduce-list {
padding-left: 49px;
// .introduce-item {
width: 291px;
font-size: 14px;
line-height: 53px;
color: #333333;
// padding: 10px 0;
position: relative;
// &::after {
// content: "";
// width: 6px;
// height: 6px;
// background-color: #000000;
// border-radius: 50%;
// position: absolute;
// top: 24px;
// left: -16px;
// }
// &:not(:last-child) {
// border-bottom: 1px dotted #d7d7d7;
// }
// }
margin-left: 49px;
.introduce-item {
width: 291px;
font-size: 14px;
line-height: 52px;
color: #333333;
position: relative;
white-space: pre-line;
&::after {
content: "";
width: 6px;
height: 6px;
background-color: #000000;
border-radius: 50%;
position: absolute;
top: 24px;
left: -16px;
}
&:not(:last-child) {
border-bottom: 1px dotted #d7d7d7;
}
}
}
.play-btn {
@@ -312,6 +322,8 @@
font-size: 16px;
color: #ffffff;
margin-left: auto;
cursor: pointer;
user-select: none;
.icon {
width: 20px;
height: 20px;
@@ -372,7 +384,7 @@
border-radius: 67px;
margin: 0 2px;
transition: all 0.3s;
cursor: pointer;
&.pitch {
margin: 0 3px;
width: 20px;
@@ -474,6 +486,7 @@
.img {
width: 690px;
height: 293px;
border-radius: 10px;
}
}
}
@@ -547,6 +560,7 @@
height: 200px;
position: relative;
border-radius: 10px;
cursor: pointer;
&:not(:last-child) {
margin-right: 10px;
@@ -588,6 +602,7 @@
.school-list {
margin-bottom: 90px;
.school-item {
&:not(:last-child) {
margin-bottom: 102px;
@@ -601,7 +616,7 @@
width: 100px;
height: 32px;
line-height: 32px;
background-color: rgba(125, 40, 130, 1);
background-color: #7d2882;
border-radius: 86px;
font-family: "Arial-Black", "Arial Black", sans-serif;
font-weight: 900;
@@ -626,6 +641,7 @@
}
.img {
width: 505px;
border-radius: 20px;
}
}
.right {
@@ -647,6 +663,7 @@
font-size: 20px;
color: #000000;
margin-bottom: 6px;
display: block;
.arrows {
width: 12px;
height: 12px;
@@ -664,8 +681,14 @@
.introduce {
font-size: 14px;
color: #555555;
padding-top: 19px;
padding-bottom: 24px;
margin-top: 19px;
margin-bottom: 24px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
}
.content {
@@ -708,6 +731,7 @@
top: 0;
left: 0;
z-index: -1;
fill: #fff;
}
&.pitch {
@@ -728,10 +752,15 @@
}
&.more {
&.pitch {
.arrows {
fill: #fff;
}
}
&.unfold {
color: #fff;
.svg {
fill: #76c45e;
fill: #76c45e !important;
}
.arrows {
fill: #fff;
@@ -753,7 +782,7 @@
left: 0;
width: 100%;
height: 100%;
cursor: none;
cursor: auto;
display: none;
}
@@ -817,7 +846,6 @@
color: #333333;
margin-bottom: 8px;
.label {
width: 120px;
height: 26px;
line-height: 26px;
background-color: rgba(60, 125, 233, 1);
@@ -853,7 +881,7 @@
width: 100px;
height: 32px;
line-height: 32px;
background-color: rgba(125, 40, 130, 1);
background-color: #7d2882;
border-radius: 86px;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
@@ -895,6 +923,7 @@
align-items: flex-start;
padding: 20px;
margin-right: 12px;
cursor: pointer;
&:not(:nth-last-child(-n + 3)) {
margin-bottom: 12px;
@@ -921,9 +950,9 @@
.bg {
position: absolute;
top: 0;
right: 0;
height: 180px;
top: 10px;
right: 1px;
height: 160px;
display: block;
z-index: -2;
}
@@ -1056,6 +1085,7 @@
font-size: 20px;
color: #000000;
margin-bottom: 4px;
.icon {
width: 12px;
height: 12px;
@@ -1084,6 +1114,7 @@
text-align: center;
z-index: 1;
cursor: pointer;
user-select: none;
.svg {
width: 100px;
height: 28px;
@@ -1091,6 +1122,7 @@
top: 0;
left: 0;
z-index: -1;
fill: #fff;
}
&.pitch {
@@ -1111,6 +1143,11 @@
}
&.more {
&.pitch {
.arrows {
fill: #fff;
}
}
&.unfold {
color: #fff;
.svg {
@@ -1136,7 +1173,7 @@
left: 0;
width: 100%;
height: 100%;
cursor: none;
cursor: auto;
display: none;
}
@@ -1278,5 +1315,33 @@
}
}
}
.paly-box-mask {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.4);
z-index: 100;
.paly-box {
position: relative;
.close {
position: absolute;
top: -20px;
right: -20px;
width: 20px;
height: 20px;
cursor: pointer;
}
.paly-video {
width: 800px;
height: 600px;
background-color: rgba(0, 0, 0, 1);
border-radius: 10px;
}
}
}
}
}