mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改
This commit is contained in:
parent
ac2c00bd59
commit
91a6fab082
@ -62,7 +62,7 @@ class Module extends Controller
|
||||
$this->current = $locals[$data['name']] ?? [];
|
||||
$pattern = "|^(\d{4})\.(\d{2})\.(\d{2})\.(\d+)$|";
|
||||
foreach ($this->module['change'] as $version => &$change) {
|
||||
$change = ['content' => $change, 'version' => preg_replace($pattern, '于 $1年$2月$3日 第 $4 次更新', $version)];
|
||||
$change = ['content' => $change, 'version' => preg_replace($pattern, '$1年$2月$3日 第 $4 次更新', $version)];
|
||||
}
|
||||
$this->fetch();
|
||||
} else {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
|
||||
<div class="layui-card-body padding-left-40">
|
||||
<div class="layui-textarea font-s14 layui-bg-gray padding-top-20 padding-left-20">
|
||||
<div class="layui-textarea border-0 font-s14 layui-bg-gray padding-top-20 padding-left-20">
|
||||
<div class="layui-row margin-bottom-15">
|
||||
<div class="layui-col-xs6">模块名称:<b class="color-green">{$module.name}</b></div>
|
||||
<div class="layui-col-xs6">开发作者:<b class="color-green">{$module.author}</b></div>
|
||||
@ -9,7 +9,7 @@
|
||||
<div class="layui-col-xs6">最新版本:<b class="color-green">{$module.version}</b></div>
|
||||
<div class="layui-col-xs6">{if isset($current.version)}已安装版本:<b class="color-green">{$current.version}</b>{/if}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">模块描述:{$module.content}</div>
|
||||
<div class="margin-bottom-15">模块描述:{$module.content}</div>
|
||||
</div>
|
||||
<ul class="layui-timeline margin-top-30 margin-bottom-30" style="max-height:400px;overflow:auto">
|
||||
{foreach $module.change as $version=>$change}
|
||||
@ -20,7 +20,9 @@
|
||||
<i class="layui-icon layui-timeline-axis"></i>
|
||||
{/if}
|
||||
<div class="layui-timeline-content layui-text">
|
||||
<h3 class="layui-timeline-title">版本号 {$version},{$change.version|default=''}</h3>
|
||||
<h3 class="layui-timeline-title">
|
||||
版本号 {$version} <span class="margin-left-10 font-s13 color-desc">{$change.version|default=''}</span>
|
||||
</h3>
|
||||
{$change.content|default=''|raw}
|
||||
</div>
|
||||
</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user