[更新]修改后台样式

This commit is contained in:
Anyon 2019-09-30 15:30:36 +08:00
parent 56a9dc9156
commit b4a3a96378
6 changed files with 13 additions and 18 deletions

View File

@ -96,9 +96,9 @@ class Plugs extends Controller
{
if ($this->getUploadType() === 'qiniu') {
$file = File::instance('qiniu');
return ['url' => $file->upload(true), 'token' => $file->buildUploadToken()];
return ['url' => $file->upload(true), 'token' => $file->buildUploadToken(), 'uptype' => $this->getUploadType()];
} else {
return ['url' => '?s=admin/api.plugs/upload', 'token' => uniqid('local_upload_')];
return ['url' => '?s=admin/api.plugs/upload', 'token' => uniqid('local_upload_'), 'uptype' => $this->getUploadType()];
}
}

View File

@ -13,25 +13,19 @@
{if auth('config')}
<div class="think-box-shadow margin-bottom-15">
<span class="color-green font-w7">系统配置参数</span>
<span class="color-green font-w7">系统参数配置:</span>
<a class="layui-btn layui-btn-sm layui-btn-primary" data-modal="{:url('config')}">修改系统配置</a>
</div>
{/if}
<div class="think-box-shadow padding-40">
<div class="layui-form-item">
<div class="absolute" style="width:100px;overflow:hidden">
<span class="color-green font-w7">网站图标</span>
<img alt="icon" data-tips-image style="height:auto;max-height:55px;min-width:55px" src="{:sysconf('site_icon')}"/>
</div>
<div style="padding-left:80px">
<span class="color-green font-w7">网站名称 Website</span>
<label class="relative block">
<input readonly value="{:sysconf('site_name')}" class="layui-input layui-bg-gray">
<a data-copy="{:sysconf('site_name')}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">网站名称及网站图标,将显示在浏览器的标签上</p>
</div>
<span class="color-green font-w7">网站名称 Website</span>
<label class="relative block">
<input readonly value="{:sysconf('site_name')}" class="layui-input layui-bg-gray">
<a data-copy="{:sysconf('site_name')}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">网站名称及网站图标,将显示在浏览器的标签上</p>
</div>
<div class="layui-form-item">
<span class="color-green font-w7">管理程序名称 Name</span>

View File

@ -1,6 +1,6 @@
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body">
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px;background:none">
<p>文件将存储在本地服务器,需确保服务器的 public/upload 目录有写入权限,有足够的存储空间!</p>
</div>
<div class="layui-form-item">

View File

@ -1,6 +1,6 @@
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body">
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px;background:none">
<p class="margin-bottom-5 font-w7">文件将上传到阿里云OSS空间需要配置OSS公开访问及跨域策略</p>
目前已实现自动创建空间及配置访问策略!<a target="_blank" href="https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=08p1pddw">我要免费申请</a>
</div>

View File

@ -1,6 +1,6 @@
<form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body">
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px;background:none">
<p class="margin-bottom-5 font-w7">文件将上传到七牛云存储对象存储需要配置为公开访问的Bucket空间</p>
完成实名认证后可获得10G免费存储空间哦<a target="_blank" href="https://portal.qiniu.com/signup?code=3lhz6nmnwbple">我要免费申请</a>
</div>

View File

@ -1,5 +1,6 @@
<form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body padding-left-40">
<div class="layui-form-item">
<label class="relative block">
<span class="color-green font-w7">网站名称 Website</span>