feat: 移除合作伙伴模块并优化荣誉资质展示样式与名称显示
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
15
js/index.js
15
js/index.js
@@ -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>
|
||||
`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user