Files
abot/plugins/value_rank/templates/social_graph.html
liuwei 6f4efcfa72 feat(value_rank): 社交边标签改为昵称并增加恶搞关系文案
- 关系图边标签新增双向@次数明细,并在边中点展示

- 标签从 wxid 改为群昵称显示,提升可读性

- 增加恶搞关系标签规则(如双向奔赴、单向上头、单箭头输出等)
2026-04-21 15:47:52 +08:00

66 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<style>
body {
margin: 0;
background: linear-gradient(135deg, #f7fbff 0%, #f2f7ff 45%, #fff8ed 100%);
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.card {
width: __WIDTH__px;
margin: 0 auto;
padding: 26px 26px 20px 26px;
box-sizing: border-box;
}
.title {
font-size: 38px;
color: #1f2d46;
font-weight: 800;
letter-spacing: 1px;
}
.subtitle {
margin-top: 8px;
font-size: 17px;
color: #5f6f8a;
}
.graph-wrap {
margin-top: 18px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.82);
border: 1px solid rgba(207, 221, 246, 0.9);
box-shadow: 0 8px 24px rgba(58, 82, 130, 0.12);
overflow: hidden;
}
.legend {
margin-top: 14px;
font-size: 14px;
color: #6f7d96;
line-height: 1.7;
}
</style>
</head>
<body>
<div class="card">
<div class="title">群友社交关系图</div>
<div class="subtitle">__GROUP_TITLE__</div>
<div class="subtitle">__SUMMARY_TEXT__</div>
<div class="graph-wrap">
<svg width="__WIDTH__" height="__HEIGHT__" viewBox="0 0 __WIDTH__ __HEIGHT__">
<rect x="0" y="0" width="__WIDTH__" height="__HEIGHT__" fill="rgba(247,251,255,0.72)"></rect>
<defs>
__NODE_DEFS__
</defs>
__EDGE_SVG__
__EDGE_LABELS__
__NODE_SVG__
</svg>
</div>
<div class="legend">
说明:节点越大代表连接群友越多;连线越粗代表互动越强。节点优先显示成员头像,缺失头像时自动回退昵称首字。
</div>
</div>
</body>
</html>