|
|
@@ -597,6 +597,26 @@ function showMemberSelection(members) {
|
|
|
🔄 ${member.adoption_note}
|
|
|
</span>
|
|
|
</div>` : '';
|
|
|
+ // 子女信息
|
|
|
+ let childrenPart = '';
|
|
|
+ if (member.children && member.children.length > 0) {
|
|
|
+ const kids = member.children;
|
|
|
+ const MAX_SHOW = 3;
|
|
|
+ const shown = kids.slice(0, MAX_SHOW);
|
|
|
+ const extra = kids.length - MAX_SHOW;
|
|
|
+ const kidLinks = shown.map(k =>
|
|
|
+ `<a href="/manager/member_detail/${k.id}" target="_blank"
|
|
|
+ onclick="event.stopPropagation()"
|
|
|
+ style="color:#86efac; text-decoration:none; font-size:11px;"
|
|
|
+ onmouseover="this.style.textDecoration='underline'"
|
|
|
+ onmouseout="this.style.textDecoration='none'">${k.name}</a>`
|
|
|
+ ).join('<span style="color:rgba(255,255,255,0.3);margin:0 2px;">·</span>');
|
|
|
+ const extraBadge = extra > 0
|
|
|
+ ? `<span style="color:rgba(255,255,255,0.35);font-size:11px;margin-left:3px;">+${extra}子</span>` : '';
|
|
|
+ childrenPart = `<div style="margin-top:3px;margin-left:2px;">
|
|
|
+ <span style="color:rgba(255,255,255,0.35);font-size:11px;">子:</span>${kidLinks}${extraBadge}
|
|
|
+ </div>`;
|
|
|
+ }
|
|
|
return `
|
|
|
<div class="member-select-row"
|
|
|
onclick="selectMemberByIndex(${index})"
|
|
|
@@ -611,7 +631,7 @@ function showMemberSelection(members) {
|
|
|
<span style="color: #fff; font-weight: 600;">${member.name}</span>
|
|
|
${simplifiedPart}${genPart}${fatherPart}${idPart}
|
|
|
</div>
|
|
|
- ${adoptionPart}
|
|
|
+ ${adoptionPart}${childrenPart}
|
|
|
</div>
|
|
|
<a href="/manager/member_detail/${member.id}" target="_blank"
|
|
|
onclick="event.stopPropagation()"
|