diff --git a/resources/views/chat/partials/toolbar.blade.php b/resources/views/chat/partials/toolbar.blade.php
index e7060eb..2efd378 100644
--- a/resources/views/chat/partials/toolbar.blade.php
+++ b/resources/views/chat/partials/toolbar.blade.php
@@ -822,13 +822,22 @@
const header = document.createElement('div');
header.className = 'shop-group-header';
- // 自动钓鱼卡分组:若持有有效卡,在标题后附加剩余时间徽章
+ // 分组标题徽章:
+ // - auto_fishing:显示剩余时间(紫色)
+ // - duration:显示当前已激活的周卡名称(绿色)
let groupSuffix = '';
if (g.type === 'auto_fishing' && (data.auto_fishing_minutes_left || 0) > 0) {
const left = data.auto_fishing_minutes_left;
const leftStr = left >= 60 ? Math.floor(left / 60) + ' 小时' : left + ' 分钟';
groupSuffix =
` ⏳ 剩余 ${leftStr}`;
+ } else if (g.type === 'duration' && data.active_week_effect) {
+ // active_week_effect 是 effectKey 字符串,从 items 列表反查对应商品名称
+ const effKey = data.active_week_effect;
+ const effItem = data.items.find(i => i.type === 'duration' && i.slug.includes(effKey));
+ const effName = effItem ? effItem.name : effKey;
+ groupSuffix =
+ ` ✅ 已激活:${effName}`;
}
header.innerHTML = `${g.label}${groupSuffix}${g.desc ? ` ${g.desc}` : ''}`;
list.appendChild(header);