feature: 面板
This commit is contained in:
parent
d62501995d
commit
c7c8ffc453
|
|
@ -67,6 +67,16 @@
|
|||
color: #999;
|
||||
}
|
||||
|
||||
.no-task {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: #888;
|
||||
font-size: 14px;
|
||||
background: #fff;
|
||||
border: 1px dashed #ccc;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
/* 响应式:小屏变成1列 */
|
||||
@media (max-width: 1024px) {
|
||||
.dashboard {
|
||||
|
|
@ -90,6 +100,7 @@
|
|||
<!-- 每日任务 -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每日任务</h3>
|
||||
{if $day}
|
||||
{foreach $day as $item}
|
||||
{if $item->status != 1}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
|
|
@ -100,11 +111,15 @@
|
|||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="no-task">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- 每周任务 -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每周任务</h3>
|
||||
{if $week}
|
||||
{foreach $week as $item}
|
||||
{if $item->status != 1}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
|
|
@ -115,11 +130,15 @@
|
|||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="no-task">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- 每月任务(举例) -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每月任务</h3>
|
||||
{if $month}
|
||||
{foreach $month as $item}
|
||||
{if $item->status != 1}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
|
|
@ -130,6 +149,9 @@
|
|||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="no-task">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user