mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改模块管理
This commit is contained in:
parent
a4bf5f598f
commit
1bf63fa7d3
@ -60,8 +60,8 @@ class Module extends Controller
|
|||||||
$this->module = $modules[$data['name']];
|
$this->module = $modules[$data['name']];
|
||||||
foreach ($this->module['change'] as $key => &$change) {
|
foreach ($this->module['change'] as $key => &$change) {
|
||||||
$change = [
|
$change = [
|
||||||
'datetime' => preg_replace("|^(\d{4})\.(\d{2})\.(\d{2}).*?$|", '$1年$2月$3日', $key),
|
'version' => preg_replace("|^(\d{4})\.(\d{2})\.(\d{2})\.(\d+)$|", '$1年$2月$3日 第$4次更新', $key),
|
||||||
'content' => $change,
|
'content' => $change,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
$this->fetch();
|
$this->fetch();
|
||||||
|
1
app/admin/module/change/2020.08.03.01.md
Normal file
1
app/admin/module/change/2020.08.03.01.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
* 少于更新,修复部分BUG
|
@ -15,11 +15,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<ul class="layui-timeline margin-top-30 margin-bottom-30" style="max-height:400px;overflow:auto">
|
<ul class="layui-timeline margin-top-30 margin-bottom-30" style="max-height:400px;overflow:auto">
|
||||||
{foreach $module.change as $version=>$change}
|
{foreach $module.change as $change}
|
||||||
<li class="layui-timeline-item">
|
<li class="layui-timeline-item">
|
||||||
<i class="layui-icon layui-timeline-axis"></i>
|
<i class="layui-icon layui-timeline-axis"></i>
|
||||||
<div class="layui-timeline-content layui-text">
|
<div class="layui-timeline-content layui-text">
|
||||||
<h3 class="layui-timeline-title">版本号 {$version|default=''},于 {$change.datetime|default=''} 更新</h3>
|
<h3 class="layui-timeline-title">{$change.version|default=''}</h3>
|
||||||
{$change.content|default=''|raw}
|
{$change.content|default=''|raw}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user