This commit is contained in:
toom1996
2026-09-25 19:59:06 +08:00
parent 42f6316125
commit aaeab41d67
4 changed files with 915 additions and 902 deletions

View File

@ -124,7 +124,11 @@
body: JSON.stringify(data)
})
.then(function (r) { return r.json(); })
.then(function (d) { applyImages(d.images, kindOf(batchForm.getAttribute('action')), main.value); if (stat) stat.textContent = d.count + ' 张 · ' + d.groups + ' 组'; })
.then(function (d) {
applyImages(d.images, kindOf(batchForm.getAttribute('action')), main.value);
if (stat) stat.textContent = d.count + ' 张 · ' + d.groups + ' 组';
clearSelection();
})
.catch(function (err) { alert('合并失败:' + err); });
});
@ -146,6 +150,10 @@
return m ? m[1] : 'street';
}
function clearSelection() {
document.querySelectorAll('input[name="main"]:checked, input[name="img"]:checked').forEach(function (c) { c.checked = false; });
}
// 更新某个主图的「显示副图」开关:按最新副图数创建/更新/移除按钮,文案随展开态变化。
function updateToggle(mainId, detailCount) {
var cell = document.querySelector('.cell[data-img-id="' + mainId + '"]');