Browse Source

add tips for empty data

master
filesite 4 weeks ago
parent
commit
98d8fd53f4
  1. 9
      themes/beauty/views/list/bydate.php

9
themes/beauty/views/list/bydate.php

@ -217,7 +217,7 @@ eof;
//显示月份导航菜单 //显示月份导航菜单
if (!empty($viewData['para_year']) && !empty($viewData['cacheData_keys'][$viewData['para_year']])) { if (!empty($viewData['allFiles']) && !empty($viewData['para_year']) && !empty($viewData['cacheData_keys'][$viewData['para_year']])) {
echo '<ul class="nav nav-pills ml-1 mb-1">'; echo '<ul class="nav nav-pills ml-1 mb-1">';
$activedClass = empty($viewData['para_month']) ? 'active' : ''; $activedClass = empty($viewData['para_month']) ? 'active' : '';
@ -422,6 +422,13 @@ eof;
$index++; $index++;
} }
}else {
echo <<<eof
<div class="alert alert-warning mt-1 mr-1 ml-1">
<h2>咦?没有文件哦</h2>
<p class="mt-1">人面不知何处去,桃花依旧笑春风...</p>
</div>
eof;
} }
?> ?>
</div><!--im_mainl--> </div><!--im_mainl-->

Loading…
Cancel
Save