Commit 55a2149c by chenwq

feat: 优化任务列表和详情页的空状态展示,添加图片支持

1 parent 5d7b2b0c
......@@ -10,7 +10,10 @@
:title="getCardTitle"
@action="viewDetail" />
</template>
<van-empty v-else description="暂无任务" />
<van-empty v-else
description="暂无任务"
image-size="100"
:image="`${IMG_URL}icon-empty.png`" />
</div>
</template>
......@@ -31,6 +34,7 @@ export default {
},
data() {
return {
IMG_URL: constantData.BASE_IMG_URL,
cardConfig: constantData.SPECIAL_TASK_CARD_CONFIG,
};
},
......
......@@ -20,7 +20,8 @@
</van-list>
<van-empty v-if="!loading && !refreshing && list.length === 0"
description="暂无任务"
image-size="100" />
image-size="100"
:image="`${IMG_URL}icon-empty.png`" />
</van-pull-refresh>
</div>
</template>
......@@ -76,6 +77,7 @@ export default {
},
data() {
return {
IMG_URL: constantData.BASE_IMG_URL,
list: [],
pageNum: 1,
pageSize: 10,
......
......@@ -38,9 +38,7 @@
<div class="card-title">
专项任务 <span class="required">*</span>
</div>
<div class="card-content">
{{ task.taskContext || '暂无内容' }}
</div>
<div class="card-content" v-text="task.taskContext || '暂无内容'" />
</div>
</div>
</div>
......
......@@ -42,9 +42,7 @@
<div class="label">
带教内容摘要
</div>
<div class="summary-text">
{{ detail.assigneeDetail || '-' }}
</div>
<div class="summary-text" v-text="detail.assigneeDetail || '-'" />
</div>
<div class="content-card">
......@@ -236,7 +234,6 @@ export default {
line-height: 21px;
color: #00000066;
word-break: break-all;
white-space: pre-line;
}
.image-list {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!