微件:B站用户:修订间差异
来自植物大战僵尸杂交版Wiki
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly> | ||
<style> | <style> | ||
.bili-card- | .bili-card { | ||
display: flex; | |||
align-items: center; | |||
gap: 12px; | |||
padding: 14px 18px; | |||
background: #fff; | |||
border-radius: 12px; | |||
border: 1px solid #e8e8e8; | |||
max-width: 420px; | |||
width: 100%; | width: 100%; | ||
box-shadow: 0 1px 4px rgba(0,0,0,0.06); | |||
height: | box-sizing: border-box; | ||
} | |||
.bili-card-icon { | |||
width: 52px; | |||
height: 52px; | |||
border-radius: 50%; | |||
background: #fb7299; | |||
flex-shrink: 0; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
color: #fff; | |||
font-size: 24px; | |||
font-weight: bold; | |||
text-decoration: none; | |||
} | |||
.bili-card-info { flex: 1; min-width: 0; } | |||
.bili-card-name { | |||
font-size: 16px; | |||
font-weight: bold; | |||
color: #222; | |||
} | |||
.bili-card-name a { color: #222; text-decoration: none; } | |||
.bili-card-uid { font-size: 12px; color: #999; margin-top: 4px; } | |||
.bili-card-btn { | |||
padding: 6px 16px; | |||
background: #00a1d6; | |||
color: #fff; | |||
border-radius: 6px; | |||
font-size: 13px; | |||
cursor: pointer; | |||
white-space: nowrap; | |||
flex-shrink: 0; | |||
border: none; | border: none; | ||
} | } | ||
.bili-card-btn:hover { background: #0091c2; } | |||
.bili-card-btn.followed { background: #f0f0f0; color: #999; } | |||
.bili-card-btn.followed:hover { background: #ffebee; color: #f44336; } | |||
</style> | </style> | ||
< | <div class="bili-card"> | ||
<a class="bili-card-icon" href="https://space.bilibili.com/<!--{$uid|escape:'html'}-->" target="_blank">B</a> | |||
<div class="bili-card-info"> | |||
</ | <div class="bili-card-name"> | ||
<a href="https://space.bilibili.com/<!--{$uid|escape:'html'}-->" target="_blank"><!--{$name|default:'B站用户'}--></a> | |||
</div> | |||
<div class="bili-card-uid">UID:<!--{$uid|escape:'html'}--></div> | |||
</div> | |||
<button class="bili-card-btn" id="bili-btn-<!--{$uid|escape:'html'}-->">+关注</button> | |||
</div> | |||
<script> | |||
(function() { | |||
var uid = '<!--{$uid|escape:'html'}-->'; | |||
if (!uid) return; | |||
var btn = document.getElementById('bili-btn-' + uid); | |||
if (!btn) return; | |||
var key = 'bili_followed_' + uid; | |||
if (localStorage.getItem(key) === 'true') { | |||
btn.textContent = '已关注'; | |||
btn.classList.add('followed'); | |||
} | |||
btn.addEventListener('click', function() { | |||
var followed = localStorage.getItem(key) !== 'true'; | |||
localStorage.setItem(key, followed ? 'true' : 'false'); | |||
btn.textContent = followed ? '已关注' : '+关注'; | |||
btn.classList.toggle('followed', followed); | |||
}); | |||
})(); | |||
</script> | |||
</includeonly> | </includeonly> | ||
{{#widget:B站用户|uid=97213827}} | {{#widget:B站用户|uid=97213827}} | ||
2026年6月14日 (日) 01:38的版本
{{#widget:B站用户 |uid=97213827 |avatar=https://new.pvzhe.wiki/images/f/f1/%E6%BD%9C%E8%89%87%E4%BC%9F%E4%BC%9F%E8%BF%B7.jpg |name=潜艇伟伟迷 |verify=个人认证:2024百大UP主…… }}