微件:B站用户:修订间差异
来自植物大战僵尸杂交版Wiki
更多操作
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的4个中间版本) | |||
| 第21行: | 第21行: | ||
object-fit: cover; | object-fit: cover; | ||
border: 2px solid #f0f0f0; | border: 2px solid #f0f0f0; | ||
} | } | ||
.bili-card-info { flex: 1; min-width: 0; } | .bili-card-info { flex: 1; min-width: 0; } | ||
| 第47行: | 第46行: | ||
border-radius: 6px; | border-radius: 6px; | ||
font-size: 13px; | font-size: 13px; | ||
white-space: nowrap; | white-space: nowrap; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
border: none; | border: none; | ||
cursor: pointer; | |||
transition: all 0.2s; | transition: all 0.2s; | ||
} | } | ||
.bili-card-btn:hover { background: #0091c2; } | .bili-card-btn:hover { background: #0091c2; } | ||
.bili-card-btn.followed { background: #f0f0f0; color: #999; | .bili-card-btn.followed { | ||
background: #f0f0f0; | |||
color: #999; | |||
pointer-events: none; | |||
} | |||
</style> | </style> | ||
| 第69行: | 第71行: | ||
<div class="bili-card-desc"><!--{$desc|escape:'html'}--></div> | <div class="bili-card-desc"><!--{$desc|escape:'html'}--></div> | ||
</div> | </div> | ||
<button class="bili-card-btn" id="bili-btn-<!--{$uid|escape:'html'}-->">+关注</button> | <button class="bili-card-btn" id="bili-btn-<!--{$uid|escape:'html'}-->" | ||
onclick="followUser('<!--{$uid|escape:'html'}-->', this)"> | |||
+关注 | |||
</button> | |||
</div> | </div> | ||
<script> | <script> | ||
function followUser(uid, btn) { | |||
btn.textContent = '已关注'; | |||
btn.classList.add('followed'); | |||
localStorage.setItem('bili_followed_' + uid, 'true'); | |||
} | |||
(function() { | (function() { | ||
var uid = '<!--{$uid|escape:'html'}-->'; | var uid = '<!--{$uid|escape:'html'}-->'; | ||
if (!uid) return; | if (!uid) return; | ||
if (localStorage.getItem('bili_followed_' + uid) === 'true') { | |||
var btn = document.getElementById('bili-btn-' + uid); | |||
if (btn) { | |||
btn.textContent = '已关注'; | |||
btn.classList.add('followed'); | btn.classList.add('followed'); | ||
} | } | ||
} | } | ||
})(); | })(); | ||
</script> | </script> | ||
| 第105行: | 第100行: | ||
|avatar=https://new.pvzhe.wiki/images/f/f1/%E6%BD%9C%E8%89%87%E4%BC%9F%E4%BC%9F%E8%BF%B7.jpg | |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=潜艇伟伟迷 | |name=潜艇伟伟迷 | ||
|verify= | |verify=个人认证:2024百大UP主…… | ||
}} | }} | ||