打开/关闭菜单
456
1282
47
5231
植物大战僵尸杂交版Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

微件:B站用户:修订间差异

来自植物大战僵尸杂交版Wiki
无编辑摘要
无编辑摘要
第21行: 第21行:
     object-fit: cover;
     object-fit: cover;
     border: 2px solid #f0f0f0;
     border: 2px solid #f0f0f0;
    text-decoration: none;
}
}
.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;
    cursor: pointer;
     white-space: nowrap;
     white-space: nowrap;
     flex-shrink: 0;
     flex-shrink: 0;
     border: none;
     text-decoration: none;
     transition: all 0.2s;
     cursor: pointer;
}
}
.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; }
.bili-card-btn.followed:hover { background: #ffebee; color: #f44336; }
</style>
</style>


第69行: 第66行:
         <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>
     <a class="bili-card-btn" id="bili-btn-<!--{$uid|escape:'html'}-->"
      href="https://space.bilibili.com/<!--{$uid|escape:'html'}-->?spm_id_from=333.337.0.0"
      onclick="var t=this;setTimeout(function(){t.textContent='已关注';t.classList.add('followed');localStorage.setItem('bili_followed_<!--{$uid|escape:'html'}-->','true');},500);">
      +关注
    </a>
</div>
</div>
<script>
<script>
(function() {
(function() {
     var uid = '<!--{$uid|escape:'html'}-->';
     var uid = '<!--{$uid|escape:'html'}-->';
     if (!uid) return;
     if (!uid) return;
     var key = 'bili_followed_' + uid;
     if (localStorage.getItem('bili_followed_' + uid) === 'true') {
    var btn = document.getElementById('bili-btn-' + uid);
        var btn = document.getElementById('bili-btn-' + uid);
    if (!btn) return;
        if (btn) { btn.textContent = '已关注'; btn.classList.add('followed'); }
 
    if (localStorage.getItem(key) === 'true') {
        btn.textContent = '已关注';
        btn.classList.add('followed');
     }
     }
    btn.addEventListener('click', function(e) {
        e.preventDefault();
        e.stopPropagation();
        var followed = localStorage.getItem(key) !== 'true';
        localStorage.setItem(key, followed ? 'true' : 'false');
        btn.textContent = followed ? '已关注' : '+关注';
        if (followed) {
            btn.classList.add('followed');
        } else {
            btn.classList.remove('followed');
        }
    });
})();
})();
</script>
</script>

2026年6月14日 (日) 01:46的版本

头像
个人认证:2024百大UP主……
{{#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主…… }}