Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Jun 14, 2024
1 parent e0587d7 commit ce0458e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"laket" : {
"title": "系统设置",
"version": "1.2.3",
"version": "1.2.5",
"adaptation": "1.2.*"
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion resources/menus/menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title" => "系统配置",
"url" => "settings/setting",
"method" => "GET",
"slug" => $this->slug,
"slug" => $slug,
"icon" => "icon-zidongxiufu",
"listorder" => 1000,
"menu_show" => 1,
Expand Down
19 changes: 11 additions & 8 deletions resources/view/common/input-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@
<div id="file_list_{$vo.name}" class="uploader-list">
{notempty name="$vo.value"}
<div class="file-item thumbnail">
<img data-original="{$vo.value|laket_attachment_url|default='admin/img/none.png'}" src="{$vo.value|laket_attachment_url|default='admin/img/none.png'}" width="100" style="max-height: 100px;">
<img data-original="{$vo.value|laket_attachment_url|default=laket_assets('img/none.png')}"
src="{$vo.value|laket_attachment_url|default=laket_assets('img/none.png')}" width="100" style="max-height: 100px;">
<i class="iconfont icon-delete_fill remove-picture" data-id="{$vo.value}"></i>
</div>
{/notempty}
Expand Down Expand Up @@ -409,7 +410,9 @@
{notempty name="$vo.value"}
{volist name="$vo.value|explode=',',###" id="v"}
<div class="file-item thumbnail">
<img data-original="{$v|laket_attachment_url}" src="{$v|laket_attachment_url|default='admin/img/none.png'}" width="100" style="max-height: 100px;">
<img data-original="{$v|laket_attachment_url}"
src="{$v|laket_attachment_url|default=laket_assets('img/none.png')}"
width="100" style="max-height: 100px;">
<i class="iconfont icon-delete_fill remove-picture" data-id="{$v}"></i>
<i class="iconfont icon-yidong move-picture"></i>
</div>
Expand Down Expand Up @@ -452,7 +455,7 @@
</div>
<script type="text/javascript">
layui.config({
base: 'admin/js/layui-extend/'
base: "{:laket_assets('js/layui-extend/')}"
}).extend({
tagsinput: 'tagsinput/tagsinput',
}).use(["jquery", "tagsinput"], function() {
Expand Down Expand Up @@ -602,12 +605,12 @@
float: right;
}
</style>
<script type="text/javascript" src="admin/js/webuploader/webuploader.min.js"></script>
<link rel="stylesheet" href="admin/js/webuploader/webuploader.css">
<script type="text/javascript" src="{:laket_assets('js/webuploader/webuploader.min.js')}"></script>
<link rel="stylesheet" href="{:laket_assets('js/webuploader/webuploader.css')}">

<script type="text/javascript" src="admin/js/Sortable.js"></script>
<script type="text/javascript" src="admin/js/viewer/viewer.min.js"></script>
<link rel="stylesheet" href="admin/js/viewer/viewer.min.css">
<script type="text/javascript" src="{:laket_assets('js/Sortable.js')}"></script>
<script type="text/javascript" src="{:laket_assets('js/viewer/viewer.min.js')}"></script>
<link rel="stylesheet" href="{:laket_assets('js/viewer/viewer.min.css')}">

<script type="text/javascript">
$('.uploader-list').each(function () {
Expand Down
1 change: 1 addition & 0 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function start()
*/
public function install()
{
$slug = $this->slug;
$menus = include __DIR__ . '/../resources/menus/menus.php';

// 添加菜单
Expand Down

0 comments on commit ce0458e

Please sign in to comment.