添加评论置顶标签

This commit is contained in:
ember 2025-04-11 00:37:41 +08:00
parent 5e6cbfb320
commit 9869bee476
7 changed files with 20 additions and 7 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -1 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.f3a85c9b.js"></script><script defer="defer" src="/js/app.100c0fce.js"></script><link href="/css/app.91c3e0f8.css" rel="stylesheet"></head><body><noscript><strong>抱歉NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.f3a85c9b.js"></script><script defer="defer" src="/js/app.93ab883c.js"></script><link href="/css/app.91c3e0f8.css" rel="stylesheet"></head><body><noscript><strong>抱歉NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>

2
dist/js/56.d32c133f.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/js/app.93ab883c.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,10 @@
</div>
<div class="comment-body">
<div class="comment-content">{{ comment.content }}</div>
<div class="comment-content">
<span v-if="comment.top" class="top-tag">置顶</span>
{{ comment.content }}
</div>
<div class="comment-actions">
<button class="action-btn reply-btn" @click="toggleReplyForm(comment.id)">回复</button>
@ -120,6 +123,7 @@
<div class="comment-body">
<div class="comment-content">
<span v-if="childComment.top" class="top-tag">置顶</span>
<span v-if="childComment.reply_to" class="reply-target">回复 {{ childComment.reply_to }}</span>
{{ childComment.content }}
</div>
@ -668,6 +672,15 @@
color: #3273dc;
font-weight: 500;
}
.top-tag {
background-color: #ff4757;
color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.8rem;
margin-right: 8px;
}
}
}