移除合作伙伴/成功案例模块
All checks were successful
continuous-integration/drone/push Build is passing

前端部分:
- 删除 index.html 中的"聚焦核心场景,助力数智升级"模块
- 删除 js/index.js 中处理 partner 数据的相关代码

主题配置插件部分:
- 从 ThemeConfigModel.php 的默认配置中移除 partner 字段
- 从后台配置界面移除"合作伙伴/成功案例"配置区块
- 删除 JavaScript 中的 addPartner 和 removePartner 方法
- 更新 README.md 移除合作伙伴相关说明

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
yiqiu
2025-11-25 17:34:08 +08:00
parent 732bc3696e
commit 7b8b838907
5 changed files with 5 additions and 120 deletions

View File

@@ -94,34 +94,6 @@ $(function () {
</div>`);
});
}
// 合作伙伴
if (commentObj.partner && commentObj.partner.length > 0) {
if (commentObj.partner.length <= 3) {
commentObj.partner.forEach((item) => {
$("#practiceBox").append(`<div class="practice-box">
<img src="${item.img}" alt="">
<div class="mt-10">${item.description}</div>
<p class="tr font-grey mt-20 font12">${item.name}</p>
</div>`);
});
} else {
const arr1 = commentObj.partner.slice(0, 3);
const arr2 = commentObj.partner.slice(3);
arr1.forEach((item) => {
$("#practiceBox").append(`<div class="practice-box">
<img src="${item.img}" alt="">
<div class="mt-10">${item.description}</div>
<p class="tr font-grey mt-20 font12">${item.name}</p>
</div>`);
});
$("#morPracticeBox").attr("style", "display: flex;");
arr2.forEach((item) => {
$("#morPracticeBox").append(` <div class="brand-box">
<img src="${item.img}" alt="">
</div>`);
});
}
}
}
// 获取通用配置信息
function getCommentInfo() {