feat: 添加项目库组件并优化搜索页面样式和功能

新增项目库组件item-project,包含学校、专业、学费等信息的展示
优化搜索页面样式,调整分类项宽度和间距
修复搜索页面滚动定位问题,完善分页和URL参数处理
添加本地开发服务器脚本serve.ps1
更新public.css和public.less样式文件
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-11-20 19:11:48 +08:00
parent c9e229a5cd
commit 40d06c180f
14 changed files with 558 additions and 124 deletions

View File

@@ -728,6 +728,119 @@ body {
}
}
&.item-project {
padding-bottom: 18px;
.school {
.icon {
width: 18px;
height: 20px;
margin-right: 8px;
}
color: #333333;
font-size: 14px;
margin-top: 2px;
margin-bottom: 5px;
}
.name {
word-break: break-word;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 20px;
color: #000000;
line-height: 36px;
}
.en {
font-size: 14px;
color: #7f7f7f;
margin-top: 4px;
word-break: break-all;
}
.introduce {
font-size: 14px;
color: #555555;
margin-top: 8px;
flex-wrap: wrap;
.line {
color: #d7d7d7;
margin: 0 8px;
}
.q {
font-family: "Arial", "Arial-Black", "Arial Black", sans-serif;
font-weight: 900;
color: #000000;
margin-left: 8px;
}
}
.word {
font-size: 14px;
color: #7f7f7f;
padding: 0 10px;
height: 46px;
line-height: 46px;
background-color: #f6f6f6;
border-radius: 10px;
margin-top: 10px;
word-break: break-all;
display: inherit;
}
.tag {
flex-wrap: wrap;
.tag-item {
&.admissions {
background-color: #04b0d5;
border: none;
color: #fff;
}
&.gray {
border: none;
color: #fff;
background-color: rgba(51, 51, 51, 1);
&.semester {
background-color: #f95d5d;
}
}
font-size: 14px;
color: #555555;
padding: 0 8px;
width: fit-content;
height: 24px;
line-height: 24px;
background-color: #f2f2f2;
border-radius: 6px;
margin-bottom: 10px;
&:not(:last-child) {
margin-right: 10px;
}
&.blue {
color: #ffffff;
background-color: #04b0d5;
}
&.icon {
height: 24px;
width: 94px;
padding: 0;
margin-right: 10px;
}
}
}
}
.comment {
height: 40px;
background-color: rgba(246, 246, 246, 1);
@@ -1360,7 +1473,7 @@ body {
}
.side-box.newest-side-box .box .item .dot.dot-green {
background-image: url(/img/dot-green.svg);
background-image: url(../img/dot-green.svg);
background-repeat: no-repeat;
}
@@ -1403,7 +1516,7 @@ body {
width: 6px;
height: 6px;
margin-right: 10px;
background-image: url(/img/dot-blue.svg);
background-image: url(../img/dot-blue.svg);
background-repeat: no-repeat;
}
@@ -1831,7 +1944,6 @@ body {
}
}
.input {
border: none;
outline: none;
@@ -2160,4 +2272,4 @@ td {
100% {
transform: rotate(360deg);
}
}
}