Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-18 22:11:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1c85f2ff7cd893c2488ff32742defbcd561d5916
1c85f2ff
1 parent
0da2e40f
feat(检查页面): 添加作业描述显示区域
在检查页面中添加作业描述显示区域,包括样式和空状态处理
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
1 deletions
src/views/checkin/IndexCheckInPage.vue
src/views/checkin/IndexCheckInPage.vue
View file @
1c85f2f
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-18 2
1:57:29
* @LastEditTime: 2026-01-18 2
2:09:36
* @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue
* @Description: 文件描述
-->
...
...
@@ -25,6 +25,15 @@
<!-- 可滚动的内容区域 -->
<div class="scrollable-content">
<!-- 作业描述 -->
<div v-if="taskDetail.note" class="text-wrapper">
<div class="text-header">作业描述</div>
<div class="task-note-box">
<div v-if="taskDetail.note" class="task-note-text" v-html="taskDetail.note"></div>
<div v-else class="task-note-empty">暂无作业描述</div>
</div>
</div>
<div v-if="taskDetail.task_type === 'count'" class="text-wrapper" style="padding-bottom: 0;">
<div class="text-header">我的{{ dynamicFieldText }}</div>
<div style="margin: 0.5rem 0;">
...
...
@@ -891,6 +900,37 @@ onActivated(async () => {
font-size: 1.15rem;
}
.task-note-box {
background-color: #fff;
margin-top: 1rem;
border-radius: 12px;
padding: 0.75rem 1rem;
}
.task-note-text {
color: #333;
font-size: 0.9rem;
line-height: 1.6;
word-break: break-word;
p {
margin: 0.4rem 0;
}
img {
max-width: 100%;
height: auto;
border-radius: 8px;
display: block;
margin: 0.5rem 0;
}
}
.task-note-empty {
color: #9ca3af;
font-size: 0.9rem;
}
.grade-percentage-main {
padding: 0.75rem 1rem;
}
...
...
Please
register
or
login
to post a comment