   document.getElementById('loading').style.display = 'none';
            });
    }

    // 确认取消事件
    function confirmUnsubscribe() {
        const selectedReasons = Array.from(document.querySelectorAll('input[name="reason"]:checked')).map(checkbox => checkbox.value);
        if (selectedReasons.length === 0) {
            this.showError('Please select at least one');
            return;
        }
        requestApi(selectedReasons);
    }
</script>
</body>
</html>
