[PR #942] feat: 在播放界面、评论区、专辑等页面添加具体评论数量 #737

Open
opened 2026-02-27 07:12:55 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/942
Author: @WorldSansha
Created: 2/26/2026
Status: 🔄 Open

Base: devHead: feat-new-work


📝 Commits (3)

  • c35fddc feat: 在播放界面和评论区内添加评论数量
  • feb38c6 feat: 在专辑、歌单、播客页面中显示具体评论数量
  • eea042c fix: 将缩减数值由四舍五入修改为向下取整

📊 Changes

8 files changed (+155 additions, -13 deletions)

View changed files

📝 src/components/List/ListComment.vue (+18 -0)
📝 src/components/List/ListDetail.vue (+6 -1)
📝 src/components/Player/PlayerComponents/PlayerComment.vue (+14 -0)
📝 src/components/Player/PlayerControl.vue (+71 -11)
📝 src/components/Setting/config/appearance.ts (+15 -0)
📝 src/stores/setting.ts (+3 -0)
📝 src/stores/status.ts (+3 -0)
📝 src/views/List/album.vue (+25 -1)

📄 Description

概述
在全屏播放器的评论按钮右上角显示当前歌曲的评论数量角标,并在评论面板的"全部评论"标题旁显示具体评论数。

改动内容

  • 评论数量角标
  • 全屏播放器评论按钮右上角新增评论数量角标,样式参考播放列表数量角标
  • 歌曲切换时自动通过 /comment/new 接口轻量获取评论总数(pageSize=1)
  • 数量格式化:1236 → 1.2K+,133145 → 13.3W+

评论面板

  • "全部评论"标题右侧显示完整评论数量

设置项

  • 新增「显示评论数量」设置(外观设置 → 界面布局)

三种模式:

  • 关闭:不显示角标,不发起额外 API 请求
  • 缩减(默认):超过 999 自动缩写(K+ / W+)
  • 完整:显示原始数字
image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imsyy/SPlayer/pull/942 **Author:** [@WorldSansha](https://github.com/WorldSansha) **Created:** 2/26/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `feat-new-work` --- ### 📝 Commits (3) - [`c35fddc`](https://github.com/imsyy/SPlayer/commit/c35fddc0273fad2a41cc32186aca2c4673918c2c) feat: 在播放界面和评论区内添加评论数量 - [`feb38c6`](https://github.com/imsyy/SPlayer/commit/feb38c6c3eb6dec7a9e9462e55481ec62abe0ae9) feat: 在专辑、歌单、播客页面中显示具体评论数量 - [`eea042c`](https://github.com/imsyy/SPlayer/commit/eea042c39714416cb9f655f8ae9805047967e3a2) fix: 将缩减数值由四舍五入修改为向下取整 ### 📊 Changes **8 files changed** (+155 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/components/List/ListComment.vue` (+18 -0) 📝 `src/components/List/ListDetail.vue` (+6 -1) 📝 `src/components/Player/PlayerComponents/PlayerComment.vue` (+14 -0) 📝 `src/components/Player/PlayerControl.vue` (+71 -11) 📝 `src/components/Setting/config/appearance.ts` (+15 -0) 📝 `src/stores/setting.ts` (+3 -0) 📝 `src/stores/status.ts` (+3 -0) 📝 `src/views/List/album.vue` (+25 -1) </details> ### 📄 Description 概述 在全屏播放器的评论按钮右上角显示当前歌曲的评论数量角标,并在评论面板的"全部评论"标题旁显示具体评论数。 改动内容 - 评论数量角标 - 全屏播放器评论按钮右上角新增评论数量角标,样式参考播放列表数量角标 - 歌曲切换时自动通过 /comment/new 接口轻量获取评论总数(pageSize=1) - 数量格式化:1236 → 1.2K+,133145 → 13.3W+ 评论面板 - "全部评论"标题右侧显示完整评论数量 设置项 - 新增「显示评论数量」设置(外观设置 → 界面布局) 三种模式: - 关闭:不显示角标,不发起额外 API 请求 - 缩减(默认):超过 999 自动缩写(K+ / W+) - 完整:显示原始数字 <img width="2085" height="1370" alt="image" src="https://github.com/user-attachments/assets/c477dbb5-5f6d-4671-9a5f-af259d799f84" /> <img width="2085" height="1368" alt="image" src="https://github.com/user-attachments/assets/498c8e86-ee96-4f2b-a734-0920749af3f0" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SPlayer#737
No description provided.