feat(single): align author bar follow and reward actions with the site flows

- guests get the sign-in trigger instead of a redirect to the login page,
  for both follow and wallet reward controls
- follow requests swap the label for an inline loader and block a second
  submit; the followed state uses the .actived hook
- follower counts sync through data-follow-count on the user homepage
  (the previous selector matched nothing) and only for the viewed profile
- reward button uses the secondary action colour; the reward template is
  only rendered for signed-in visitors
- drop the unused author-hero aria-disabled rule and stale wording in the
  touched comments

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-11-04 13:34:34 +08:00
1 parent 8ad5ef9aff
commit d40906b4a3
13 files changed
+148 -56

No files matched your search

+2 -8
View File
@@ -139,11 +139,6 @@
gap: 8px;
}
.jio-author-hero__follow-btn[aria-disabled="true"] {
opacity: 0.72;
cursor: not-allowed;
}
.jio-author-hero__message-btn {
position: relative;
}
@@ -634,9 +629,8 @@
/* 加载期收起旧页内容:翻页 / 切 tab 是整页替换语义(author.js 最终就是
panel.innerHTML = html),骨架必须独占内容区,而不是追加在旧卡片下方 ——
否则先看到「第 1 页卡片 + 脚下一摞骨架」,等接口返回才换页。
对齐参考主题 post_ajax() 的 beforeSend:replace 时 $item.remove() +
find(pag).remove()。收 display 而非删节点,仍守住「不写 inline display」契约。
否则先看到「第 1 页卡片 + 脚下一摞骨架」,等接口返回才换页。替换时旧卡片
与旧分页都先撤掉。收 display 而非删节点,仍守住「不写 inline display」契约。
只收 .jio-user-home__post-list 的**直接子级** .posts-item:骨架内层同样带
.posts-item,写成后代选择器会连骨架自己一起隐藏掉。 */