fix(vip): add spacing before points exchange notice

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Opus 5 committed 2026-10-19 13:22:04 +08:00
1 parent 573040381d
commit 0d51beeaad
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -250,7 +250,7 @@ trait VipServiceModal {
// (参考主题源码写作 `!$min_val > $user_points`,因运算符优先级恒假,
// 此处按其原意取真实比较,保证提示分支可达。)
if ($min_points > $user_points) {
$form = '<div class="badg c-red btn-block">' . esc_html__('积分不足,暂时无法兑换', 'aksrt') . '</div>';
$form = '<div class="mt20"><div class="badg c-red btn-block">' . esc_html__('积分不足,暂时无法兑换', 'aksrt') . '</div></div>';
} else {
$form = '<div class="mt20">'
. '<input type="hidden" name="product_id" value="' . $first_package_id . '">'
@@ -66,7 +66,9 @@ test('弹窗内容保持参考主题结构:标题/我的积分/卡片选择/
assert.match(modal, /name="action" value="points_initiate_pay"/);
assert.match(modal, /mt6 but jb-yellow btn-block radius padding-lg/);
assert.match(modal, /data-aksrt-vip-points-submit/);
assert.match(modal, /badg c-red btn-block/);
// CTA 与积分不足状态都从卡片选择区留出 20px 上间距,避免状态切换时布局贴紧。
assert.match(modal, /\$form = '<div class="mt20">'/);
assert.match(modal, /'<div class="mt20"><div class="badg c-red btn-block">'/);
});
test('弹窗壳随 wp_footer 全局输出且不进入 catalog 载荷', () => {