feat: 移除合作伙伴模块并优化荣誉资质展示样式与名称显示
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-12-26 22:51:23 +08:00
parent 56a31b968d
commit ec93a25ff5
3 changed files with 51 additions and 58 deletions

View File

@@ -88,7 +88,6 @@ $(function () {
function setIndexData(commentObj) {
// 清空容器,避免重复插入数据
$("#certBox").empty();
$("#partnerBox").empty();
// 荣誉资质 - 网格布局
if (commentObj.honor && commentObj.honor.length > 0) {
@@ -97,19 +96,7 @@ $(function () {
$("#honorGrid").append(`
<div class="honor-grid-item">
<img src="${item.img}" alt="${item.name}" title="${item.name}">
</div>
`);
});
}
// 合作伙伴
if (commentObj.partner && commentObj.partner.length > 0) {
commentObj.partner.forEach((item) => {
$("#partnerBox").append(`
<div class="honor-item">
<div class="honor-icon">
<img src="${item.img}" alt="${item.name}">
</div>
<h4 class="honor-name">${item.name}</h4>
<p class="honor-grid-name">${item.name}</p>
</div>
`);
});