修改功能

This commit is contained in:
2026-08-29 19:06:07 +08:00
parent f94c652c7c
commit aaed0584b1
142 changed files with 6176 additions and 869 deletions
+8 -1
View File
@@ -13,6 +13,13 @@
})(typeof globalThis !== 'undefined' ? globalThis : window, function (root) {
'use strict';
function confirmAction(message) {
if (root.ProfileUI && typeof root.ProfileUI.confirmAction === 'function') {
return root.ProfileUI.confirmAction(message);
}
return Promise.resolve(!root['confirm'] || root['confirm'](message));
}
var APPLY_STATUS = {
'0': '待审核',
'1': '已通过',
@@ -403,7 +410,7 @@
if (!button || !list.contains(button) || writePending) return;
applyId = normalizeId(button.getAttribute('data-join-cancel-id'));
if (!applyId) return;
if (root.confirm && !root.confirm('确认撤销这条加入申请吗?')) return;
if (!await confirmAction('确认撤销这条加入申请吗?')) return;
writePending = true;
button.disabled = true;
setText('[data-my-join-applies-status]', '正在撤销申请…', 'loading');