|
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+<script lang="ts" setup>
|
|
|
2
|
+import { ref, computed } from 'vue';
|
|
|
3
|
+import { ElRate, ElInput, ElSelect, ElOption, ElButton, ElIcon, ElUpload, ElMessage, ElImageViewer } from 'element-plus';
|
|
|
4
|
+import { Camera, Plus, Message } from '@element-plus/icons-vue';
|
|
|
5
|
+
|
|
|
6
|
+// 评分等级映射
|
|
|
7
|
+const ratingLevelMap = {
|
|
|
8
|
+ 1: '差',
|
|
|
9
|
+ 2: '较差',
|
|
|
10
|
+ 3: '一般',
|
|
|
11
|
+ 4: '良好',
|
|
|
12
|
+ 5: '优秀',
|
|
|
13
|
+};
|
|
|
14
|
+
|
|
|
15
|
+// 模拟评论数据
|
|
|
16
|
+const comments = ref([
|
|
|
17
|
+ {
|
|
|
18
|
+ id: 1,
|
|
|
19
|
+ username: '王凯',
|
|
|
20
|
+ department: '当值经理',
|
|
|
21
|
+ avatar: '',
|
|
|
22
|
+ rating: 5,
|
|
|
23
|
+ content: '问题及时处理,处理结果第一时间反馈,下一步需注重现场卫生',
|
|
|
24
|
+ createdAt: '2025-11-07 19:42:05',
|
|
|
25
|
+ images: ['https://picsum.photos/200/150?random=1'],
|
|
|
26
|
+ showReply: false,
|
|
|
27
|
+ replyContent: '',
|
|
|
28
|
+ replies: [
|
|
|
29
|
+ {
|
|
|
30
|
+ username: '系统管理员',
|
|
|
31
|
+ department: '管理部',
|
|
|
32
|
+ content: '已收到您的反馈,我们会加强现场卫生管理,感谢您的建议!',
|
|
|
33
|
+ createdAt: '2025-11-07 20:00:00',
|
|
|
34
|
+ },
|
|
|
35
|
+ ],
|
|
|
36
|
+ },
|
|
|
37
|
+ {
|
|
|
38
|
+ id: 2,
|
|
|
39
|
+ username: '张小明',
|
|
|
40
|
+ department: '管理部',
|
|
|
41
|
+ avatar: '',
|
|
|
42
|
+ rating: 4,
|
|
|
43
|
+ content: '整体不错,细节可以再优化一下',
|
|
|
44
|
+ createdAt: '2025-11-06 16:30:00',
|
|
|
45
|
+ images: [],
|
|
|
46
|
+ showReply: false,
|
|
|
47
|
+ replyContent: '',
|
|
|
48
|
+ replies: [],
|
|
|
49
|
+ },
|
|
|
50
|
+]);
|
|
|
51
|
+
|
|
|
52
|
+// 评分
|
|
|
53
|
+const rating = ref(5);
|
|
|
54
|
+// 评价内容
|
|
|
55
|
+const commentContent = ref('');
|
|
|
56
|
+// 抄送人
|
|
|
57
|
+const ccPerson = ref('');
|
|
|
58
|
+// 评论图片
|
|
|
59
|
+const commentImages = ref<any[]>([]);
|
|
|
60
|
+
|
|
|
61
|
+// 图片预览相关
|
|
|
62
|
+const previewVisible = ref(false);
|
|
|
63
|
+const previewImages = ref<string[]>([]);
|
|
|
64
|
+
|
|
|
65
|
+// 处理评论图片上传
|
|
|
66
|
+const handleCommentImageUpload = (options: any) => {
|
|
|
67
|
+ // 模拟上传成功处理
|
|
|
68
|
+ const fileData = {
|
|
|
69
|
+ uid: options.file.uid,
|
|
|
70
|
+ name: options.file.name,
|
|
|
71
|
+ url: URL.createObjectURL(options.file),
|
|
|
72
|
+ status: 'success',
|
|
|
73
|
+ raw: options.file,
|
|
|
74
|
+ };
|
|
|
75
|
+ // 直接通过v-model:file-list绑定,无需手动添加
|
|
|
76
|
+};
|
|
|
77
|
+
|
|
|
78
|
+// 处理评论图片移除
|
|
|
79
|
+const handleCommentImageRemove = (file: any, fileList: any[]) => {
|
|
|
80
|
+ commentImages.value = fileList;
|
|
|
81
|
+};
|
|
|
82
|
+
|
|
|
83
|
+// 预览评论图片
|
|
|
84
|
+const handleCommentImagePreview = (file: any) => {
|
|
|
85
|
+ console.log('预览图片', file);
|
|
|
86
|
+ // TODO: 实现图片预览功能
|
|
|
87
|
+};
|
|
|
88
|
+
|
|
|
89
|
+// 评论提交
|
|
|
90
|
+const handleCommentSubmit = () => {
|
|
|
91
|
+ if (!commentContent.value.trim() && commentImages.value.length === 0) {
|
|
|
92
|
+ ElMessage.warning('请输入评论内容或上传图片');
|
|
|
93
|
+ return;
|
|
|
94
|
+ }
|
|
|
95
|
+ console.log('提交评论', { rating: rating.value, content: commentContent.value, ccPerson: ccPerson.value, images: commentImages.value });
|
|
|
96
|
+};
|
|
|
97
|
+
|
|
|
98
|
+// 切换回复输入框
|
|
|
99
|
+const toggleReply = (comment: any) => {
|
|
|
100
|
+ comment.showReply = !comment.showReply;
|
|
|
101
|
+};
|
|
|
102
|
+
|
|
|
103
|
+// 取消回复
|
|
|
104
|
+const cancelReply = (comment: any) => {
|
|
|
105
|
+ comment.showReply = false;
|
|
|
106
|
+ comment.replyContent = '';
|
|
|
107
|
+};
|
|
|
108
|
+
|
|
|
109
|
+// 提交回复
|
|
|
110
|
+const submitReply = (comment: any) => {
|
|
|
111
|
+ if (!comment.replyContent.trim()) {
|
|
|
112
|
+ ElMessage.warning('请输入回复内容');
|
|
|
113
|
+ return;
|
|
|
114
|
+ }
|
|
|
115
|
+
|
|
|
116
|
+ // 模拟提交回复
|
|
|
117
|
+ const newReply = {
|
|
|
118
|
+ username: '当前用户',
|
|
|
119
|
+ content: comment.replyContent,
|
|
|
120
|
+ createdAt: new Date().toLocaleString(),
|
|
|
121
|
+ };
|
|
|
122
|
+
|
|
|
123
|
+ // 添加到回复列表
|
|
|
124
|
+ if (!comment.replies) {
|
|
|
125
|
+ comment.replies = [];
|
|
|
126
|
+ }
|
|
|
127
|
+ comment.replies.push(newReply);
|
|
|
128
|
+
|
|
|
129
|
+ // 清空回复内容并隐藏回复框
|
|
|
130
|
+ comment.replyContent = '';
|
|
|
131
|
+ comment.showReply = false;
|
|
|
132
|
+
|
|
|
133
|
+ ElMessage.success('回复提交成功');
|
|
|
134
|
+};
|
|
|
135
|
+
|
|
|
136
|
+// 图片预览
|
|
|
137
|
+const previewImage = (imageUrl: string) => {
|
|
|
138
|
+ previewImages.value = [imageUrl];
|
|
|
139
|
+ previewVisible.value = true;
|
|
|
140
|
+};
|
|
|
141
|
+
|
|
|
142
|
+// 关闭图片预览
|
|
|
143
|
+const closePreview = () => {
|
|
|
144
|
+ previewVisible.value = false;
|
|
|
145
|
+};
|
|
|
146
|
+
|
|
|
147
|
+// 获取评分等级
|
|
|
148
|
+const getRatingLevel = (rating: number) => {
|
|
|
149
|
+ return ratingLevelMap[rating as keyof typeof ratingLevelMap] || '';
|
|
|
150
|
+};
|
|
|
151
|
+</script>
|
|
|
152
|
+
|
|
|
153
|
+<template>
|
|
|
154
|
+ <div class="comment-container">
|
|
|
155
|
+ <!-- 评价表单 -->
|
|
|
156
|
+ <div class="comment-form">
|
|
|
157
|
+ <div class="form-header">
|
|
|
158
|
+ <div class="rating-section">
|
|
|
159
|
+ <span class="rating-text">总体评价:</span>
|
|
|
160
|
+ <ElRate v-model="rating" class="rating-stars" />
|
|
|
161
|
+ </div>
|
|
|
162
|
+ </div>
|
|
|
163
|
+ <div class="form-content">
|
|
|
164
|
+ <div class="input-section">
|
|
|
165
|
+ <!-- 使用ElUpload组件实现多图片上传 -->
|
|
|
166
|
+ <div class="upload-section">
|
|
|
167
|
+ <ElUpload
|
|
|
168
|
+ v-model:file-list="commentImages"
|
|
|
169
|
+ action="#"
|
|
|
170
|
+ accept=".jpg,.jpeg,.png,.gif"
|
|
|
171
|
+ list-type="picture-card"
|
|
|
172
|
+ show-file-list
|
|
|
173
|
+ :auto-upload="true"
|
|
|
174
|
+ :drag="false"
|
|
|
175
|
+ :limit="10"
|
|
|
176
|
+ :multiple="true"
|
|
|
177
|
+ :http-request="handleCommentImageUpload"
|
|
|
178
|
+ :on-remove="handleCommentImageRemove"
|
|
|
179
|
+ :on-preview="handleCommentImagePreview"
|
|
|
180
|
+ class="mb-2"
|
|
|
181
|
+ >
|
|
|
182
|
+ <div class="flex h-full w-full items-center justify-center">
|
|
|
183
|
+ <ElIcon class="el-upload__icon">
|
|
|
184
|
+ <Plus size="18" />
|
|
|
185
|
+ </ElIcon>
|
|
|
186
|
+ </div>
|
|
|
187
|
+ </ElUpload>
|
|
|
188
|
+ </div>
|
|
|
189
|
+ <ElInput
|
|
|
190
|
+ v-model="commentContent"
|
|
|
191
|
+ type="textarea"
|
|
|
192
|
+ :rows="2"
|
|
|
193
|
+ placeholder="请对执行任务的情况进行点评,您的点评会帮助执行人更好的完善工作哦~"
|
|
|
194
|
+ class="comment-input"
|
|
|
195
|
+ />
|
|
|
196
|
+ <div class="form-footer">
|
|
|
197
|
+ <div class="footer-left">
|
|
|
198
|
+ <ElSelect v-model="ccPerson" placeholder="请选择抄送人" class="cc-select">
|
|
|
199
|
+ <ElOption label="测试抄送人" value="test" />
|
|
|
200
|
+ </ElSelect>
|
|
|
201
|
+ <ElButton type="primary" size="small" class="comment-btn" @click="handleCommentSubmit">
|
|
|
202
|
+ 评论
|
|
|
203
|
+ </ElButton>
|
|
|
204
|
+ </div>
|
|
|
205
|
+ </div>
|
|
|
206
|
+ </div>
|
|
|
207
|
+ </div>
|
|
|
208
|
+ </div>
|
|
|
209
|
+
|
|
|
210
|
+ <!-- 评论列表 -->
|
|
|
211
|
+ <div class="comment-list">
|
|
|
212
|
+ <div v-for="comment in comments" :key="comment.id" class="comment-item">
|
|
|
213
|
+ <div class="comment-header">
|
|
|
214
|
+ <div class="username-section">
|
|
|
215
|
+ <span class="username">{{ comment.username }}</span>
|
|
|
216
|
+ <span class="department">({{ comment.department }})</span>
|
|
|
217
|
+ <div class="rating-section">
|
|
|
218
|
+ <ElRate v-model="comment.rating" disabled class="rating-stars" />
|
|
|
219
|
+ <span class="rating-level">{{ getRatingLevel(comment.rating) }}</span>
|
|
|
220
|
+ </div>
|
|
|
221
|
+ </div>
|
|
|
222
|
+ </div>
|
|
|
223
|
+ <div class="comment-content">
|
|
|
224
|
+ {{ comment.content }}
|
|
|
225
|
+ </div>
|
|
|
226
|
+ <!-- 评论图片 -->
|
|
|
227
|
+ <div v-if="comment.images && comment.images.length > 0" class="comment-images">
|
|
|
228
|
+ <img
|
|
|
229
|
+ v-for="(image, index) in comment.images"
|
|
|
230
|
+ :key="index"
|
|
|
231
|
+ :src="image"
|
|
|
232
|
+ alt="评论图片"
|
|
|
233
|
+ class="comment-image"
|
|
|
234
|
+ @click="previewImage(image)"
|
|
|
235
|
+ />
|
|
|
236
|
+ </div>
|
|
|
237
|
+ <!-- 评论时间 -->
|
|
|
238
|
+ <div class="comment-time">{{ comment.createdAt }}</div>
|
|
|
239
|
+ <!-- 评论操作 -->
|
|
|
240
|
+ <div class="comment-footer">
|
|
|
241
|
+ <div class="comment-actions">
|
|
|
242
|
+ <ElIcon class="reply-icon">
|
|
|
243
|
+ <Message class="h-4 w-4" />
|
|
|
244
|
+ </ElIcon>
|
|
|
245
|
+ <span class="reply-btn" @click="toggleReply(comment)">回复</span>
|
|
|
246
|
+ </div>
|
|
|
247
|
+ </div>
|
|
|
248
|
+
|
|
|
249
|
+ <!-- 回复输入框 -->
|
|
|
250
|
+ <div v-if="comment.showReply" class="reply-form">
|
|
|
251
|
+ <ElInput
|
|
|
252
|
+ v-model="comment.replyContent"
|
|
|
253
|
+ type="textarea"
|
|
|
254
|
+ :rows="2"
|
|
|
255
|
+ placeholder="请输入回复内容"
|
|
|
256
|
+ class="reply-input"
|
|
|
257
|
+ />
|
|
|
258
|
+ <div class="reply-footer">
|
|
|
259
|
+ <ElButton type="default" size="small" @click="cancelReply(comment)">取消</ElButton>
|
|
|
260
|
+ <ElButton type="primary" size="small" @click="submitReply(comment)">提交</ElButton>
|
|
|
261
|
+ </div>
|
|
|
262
|
+ </div>
|
|
|
263
|
+
|
|
|
264
|
+ <!-- 回复信息 -->
|
|
|
265
|
+ <div v-if="comment.replies && comment.replies.length > 0" class="reply-list">
|
|
|
266
|
+ <div v-for="(reply, index) in comment.replies" :key="index" class="reply-item">
|
|
|
267
|
+ <div class="reply-header">
|
|
|
268
|
+ <span class="reply-username">{{ reply.username }}</span>
|
|
|
269
|
+ <span v-if="reply.department" class="reply-department">({{ reply.department }})</span>
|
|
|
270
|
+ </div>
|
|
|
271
|
+ <div class="reply-content">{{ reply.content }}</div>
|
|
|
272
|
+ <div class="reply-time">{{ reply.createdAt }}</div>
|
|
|
273
|
+ </div>
|
|
|
274
|
+ </div>
|
|
|
275
|
+ </div>
|
|
|
276
|
+ </div>
|
|
|
277
|
+ </div>
|
|
|
278
|
+
|
|
|
279
|
+ <!-- 图片预览组件 -->
|
|
|
280
|
+ <ElImageViewer
|
|
|
281
|
+ v-if="previewVisible"
|
|
|
282
|
+ :url-list="previewImages"
|
|
|
283
|
+ @close="closePreview"
|
|
|
284
|
+ />
|
|
|
285
|
+</template>
|
|
|
286
|
+
|
|
|
287
|
+<style scoped lang="scss">
|
|
|
288
|
+.comment-container {
|
|
|
289
|
+ width: 100%;
|
|
|
290
|
+ font-size: 14px;
|
|
|
291
|
+
|
|
|
292
|
+ .comment-form {
|
|
|
293
|
+ margin-bottom: 24px;
|
|
|
294
|
+ padding: 16px 0;
|
|
|
295
|
+
|
|
|
296
|
+ .form-header {
|
|
|
297
|
+ margin-bottom: 12px;
|
|
|
298
|
+ }
|
|
|
299
|
+
|
|
|
300
|
+ .rating-section {
|
|
|
301
|
+ display: flex;
|
|
|
302
|
+ align-items: center;
|
|
|
303
|
+
|
|
|
304
|
+ .rating-text {
|
|
|
305
|
+ color: var(--text-color-secondary);
|
|
|
306
|
+ font-size: 14px;
|
|
|
307
|
+ margin-right: 8px;
|
|
|
308
|
+ }
|
|
|
309
|
+
|
|
|
310
|
+ .rating-stars {
|
|
|
311
|
+ margin-right: 0;
|
|
|
312
|
+ }
|
|
|
313
|
+ }
|
|
|
314
|
+
|
|
|
315
|
+ .form-content {
|
|
|
316
|
+ .input-section {
|
|
|
317
|
+ width: 100%;
|
|
|
318
|
+
|
|
|
319
|
+ .upload-section {
|
|
|
320
|
+ margin-bottom: 12px;
|
|
|
321
|
+
|
|
|
322
|
+ :deep(.el-upload--picture-card) {
|
|
|
323
|
+ width: 60px;
|
|
|
324
|
+ height: 60px;
|
|
|
325
|
+ }
|
|
|
326
|
+
|
|
|
327
|
+ :deep(.el-upload-list--picture-card .el-upload-list__item) {
|
|
|
328
|
+ width: 60px;
|
|
|
329
|
+ height: 60px;
|
|
|
330
|
+ }
|
|
|
331
|
+ }
|
|
|
332
|
+
|
|
|
333
|
+ .comment-input {
|
|
|
334
|
+ margin-bottom: 12px;
|
|
|
335
|
+
|
|
|
336
|
+ :deep(.el-textarea__inner) {
|
|
|
337
|
+ border-radius: 4px;
|
|
|
338
|
+ resize: none;
|
|
|
339
|
+ }
|
|
|
340
|
+ }
|
|
|
341
|
+
|
|
|
342
|
+ .form-footer {
|
|
|
343
|
+ .footer-left {
|
|
|
344
|
+ display: flex;
|
|
|
345
|
+ align-items: center;
|
|
|
346
|
+
|
|
|
347
|
+ .cc-select {
|
|
|
348
|
+ width: 200px;
|
|
|
349
|
+ margin-right: 12px;
|
|
|
350
|
+ }
|
|
|
351
|
+
|
|
|
352
|
+ .comment-btn {
|
|
|
353
|
+ padding: 4px 12px;
|
|
|
354
|
+ }
|
|
|
355
|
+ }
|
|
|
356
|
+ }
|
|
|
357
|
+ }
|
|
|
358
|
+ }
|
|
|
359
|
+ }
|
|
|
360
|
+
|
|
|
361
|
+ .comment-list {
|
|
|
362
|
+ .comment-item {
|
|
|
363
|
+ margin-bottom: 20px;
|
|
|
364
|
+ padding: 0;
|
|
|
365
|
+ background-color: transparent;
|
|
|
366
|
+ border: none;
|
|
|
367
|
+ font-size: 14px;
|
|
|
368
|
+
|
|
|
369
|
+ .comment-header {
|
|
|
370
|
+ margin-bottom: 8px;
|
|
|
371
|
+
|
|
|
372
|
+ .username-section {
|
|
|
373
|
+ display: flex;
|
|
|
374
|
+ align-items: center;
|
|
|
375
|
+
|
|
|
376
|
+ .username {
|
|
|
377
|
+ font-weight: 500;
|
|
|
378
|
+ color: var(--text-color-primary);
|
|
|
379
|
+ margin-right: 8px;
|
|
|
380
|
+ }
|
|
|
381
|
+
|
|
|
382
|
+ .department {
|
|
|
383
|
+ color: var(--text-color-secondary);
|
|
|
384
|
+ font-size: 13px;
|
|
|
385
|
+ margin-right: 16px;
|
|
|
386
|
+ }
|
|
|
387
|
+
|
|
|
388
|
+ .rating-section {
|
|
|
389
|
+ display: flex;
|
|
|
390
|
+ align-items: center;
|
|
|
391
|
+
|
|
|
392
|
+ .rating-stars {
|
|
|
393
|
+ margin-right: 8px;
|
|
|
394
|
+ }
|
|
|
395
|
+
|
|
|
396
|
+ .rating-level {
|
|
|
397
|
+ color: #f7ba2a;
|
|
|
398
|
+ font-size: 13px;
|
|
|
399
|
+ }
|
|
|
400
|
+ }
|
|
|
401
|
+ }
|
|
|
402
|
+ }
|
|
|
403
|
+
|
|
|
404
|
+ .comment-content {
|
|
|
405
|
+ color: var(--text-color-primary);
|
|
|
406
|
+ line-height: 1.5;
|
|
|
407
|
+ margin-bottom: 12px;
|
|
|
408
|
+ padding-right: 20px;
|
|
|
409
|
+ }
|
|
|
410
|
+
|
|
|
411
|
+ .comment-images {
|
|
|
412
|
+ display: flex;
|
|
|
413
|
+ gap: 12px;
|
|
|
414
|
+ margin-bottom: 12px;
|
|
|
415
|
+
|
|
|
416
|
+ .comment-image {
|
|
|
417
|
+ width: 60px;
|
|
|
418
|
+ height: 60px;
|
|
|
419
|
+ border-radius: 4px;
|
|
|
420
|
+ object-fit: cover;
|
|
|
421
|
+ cursor: pointer;
|
|
|
422
|
+ transition: transform 0.2s;
|
|
|
423
|
+
|
|
|
424
|
+ &:hover {
|
|
|
425
|
+ transform: scale(1.05);
|
|
|
426
|
+ }
|
|
|
427
|
+ }
|
|
|
428
|
+ }
|
|
|
429
|
+
|
|
|
430
|
+ /* 评论时间样式 */
|
|
|
431
|
+ .comment-time {
|
|
|
432
|
+ font-size: 12px;
|
|
|
433
|
+ color: #999999;
|
|
|
434
|
+ margin-top: 8px;
|
|
|
435
|
+ }
|
|
|
436
|
+
|
|
|
437
|
+ /* 评论操作样式 */
|
|
|
438
|
+ .comment-footer {
|
|
|
439
|
+ display: flex;
|
|
|
440
|
+ justify-content: flex-start;
|
|
|
441
|
+ align-items: center;
|
|
|
442
|
+ margin-top: 4px;
|
|
|
443
|
+
|
|
|
444
|
+ .comment-actions {
|
|
|
445
|
+ display: flex;
|
|
|
446
|
+ align-items: center;
|
|
|
447
|
+
|
|
|
448
|
+ .reply-icon {
|
|
|
449
|
+ margin-right: 4px;
|
|
|
450
|
+ color: #409eff;
|
|
|
451
|
+ font-size: 12px;
|
|
|
452
|
+ }
|
|
|
453
|
+
|
|
|
454
|
+ .reply-btn {
|
|
|
455
|
+ color: #409eff;
|
|
|
456
|
+ font-size: 12px;
|
|
|
457
|
+ cursor: pointer;
|
|
|
458
|
+
|
|
|
459
|
+ &:hover {
|
|
|
460
|
+ text-decoration: underline;
|
|
|
461
|
+ }
|
|
|
462
|
+ }
|
|
|
463
|
+ }
|
|
|
464
|
+ }
|
|
|
465
|
+
|
|
|
466
|
+ /* 回复表单样式 */
|
|
|
467
|
+ .reply-form {
|
|
|
468
|
+ margin-top: 12px;
|
|
|
469
|
+ padding: 12px;
|
|
|
470
|
+ background-color: var(--bg-color-light);
|
|
|
471
|
+ border-radius: 4px;
|
|
|
472
|
+ border: 1px solid var(--border-color);
|
|
|
473
|
+
|
|
|
474
|
+ .reply-input {
|
|
|
475
|
+ margin-bottom: 12px;
|
|
|
476
|
+
|
|
|
477
|
+ :deep(.el-textarea__inner) {
|
|
|
478
|
+ border-radius: 4px;
|
|
|
479
|
+ resize: none;
|
|
|
480
|
+ }
|
|
|
481
|
+ }
|
|
|
482
|
+
|
|
|
483
|
+ .reply-footer {
|
|
|
484
|
+ display: flex;
|
|
|
485
|
+ justify-content: flex-end;
|
|
|
486
|
+ gap: 8px;
|
|
|
487
|
+
|
|
|
488
|
+ :deep(.el-button) {
|
|
|
489
|
+ padding: 4px 12px;
|
|
|
490
|
+ }
|
|
|
491
|
+ }
|
|
|
492
|
+ }
|
|
|
493
|
+
|
|
|
494
|
+ /* 回复列表样式 */
|
|
|
495
|
+ .reply-list {
|
|
|
496
|
+ margin-top: 12px;
|
|
|
497
|
+ margin-left: 40px;
|
|
|
498
|
+
|
|
|
499
|
+ .reply-item {
|
|
|
500
|
+ margin-bottom: 12px;
|
|
|
501
|
+ padding: 8px 12px;
|
|
|
502
|
+ background-color: var(--bg-color-light);
|
|
|
503
|
+ border-radius: 4px;
|
|
|
504
|
+ border-left: 3px solid #409eff;
|
|
|
505
|
+
|
|
|
506
|
+ .reply-header {
|
|
|
507
|
+ margin-bottom: 4px;
|
|
|
508
|
+
|
|
|
509
|
+ .reply-username {
|
|
|
510
|
+ font-weight: 500;
|
|
|
511
|
+ color: var(--text-color-primary);
|
|
|
512
|
+ font-size: 13px;
|
|
|
513
|
+ margin-right: 4px;
|
|
|
514
|
+ }
|
|
|
515
|
+
|
|
|
516
|
+ .reply-department {
|
|
|
517
|
+ color: var(--text-color-secondary);
|
|
|
518
|
+ font-size: 13px;
|
|
|
519
|
+ }
|
|
|
520
|
+ }
|
|
|
521
|
+
|
|
|
522
|
+ .reply-content {
|
|
|
523
|
+ color: var(--text-color-primary);
|
|
|
524
|
+ font-size: 13px;
|
|
|
525
|
+ line-height: 1.4;
|
|
|
526
|
+ margin-bottom: 4px;
|
|
|
527
|
+ }
|
|
|
528
|
+
|
|
|
529
|
+ .reply-time {
|
|
|
530
|
+ font-size: 12px;
|
|
|
531
|
+ color: #999999;
|
|
|
532
|
+ text-align: left;
|
|
|
533
|
+ }
|
|
|
534
|
+ }
|
|
|
535
|
+ }
|
|
|
536
|
+ }
|
|
|
537
|
+ }
|
|
|
538
|
+}
|
|
|
539
|
+</style>
|