mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-12 10:31:07 +08:00
Compare commits
No commits in common. "53bd2071a969c4003b5323c3a1ed10153c8e08ea" and "93fce3cbc63a7d8ac11a94ca2af492bdbcf31c85" have entirely different histories.
53bd2071a9
...
93fce3cbc6
@ -4,7 +4,6 @@ namespace app\data\controller\api;
|
||||
|
||||
use app\data\model\BaseUserMessage;
|
||||
use think\admin\Controller;
|
||||
use think\admin\model\SystemBase;
|
||||
|
||||
/**
|
||||
* 基础数据接口
|
||||
@ -23,12 +22,7 @@ class Data extends Controller
|
||||
public function getData()
|
||||
{
|
||||
$data = $this->_vali(['name.require' => '数据名称不能为空!']);
|
||||
$extra = ['about', 'slider', 'agreement', 'cropper']; // 其他数据
|
||||
if (in_array($data['name'], $extra) || isset(SystemBase::items('页面内容')[$data['name']])) {
|
||||
$this->success('获取数据对象', sysdata($data['name']));
|
||||
} else {
|
||||
$this->error('获取数据失败', []);
|
||||
}
|
||||
$this->success('获取数据对象', sysdata($data['name']));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -39,13 +33,8 @@ class Data extends Controller
|
||||
*/
|
||||
public function getSlider()
|
||||
{
|
||||
$keys = input('keys', 'slider');
|
||||
$extra = []; // 其他数据
|
||||
if (in_array($keys, $extra) || isset(SystemBase::items('图片内容')[$keys])) {
|
||||
$this->success('获取图片内容', sysdata($keys));
|
||||
} else {
|
||||
$this->error('获取图片失败', []);
|
||||
}
|
||||
$data = sysdata(input('keys', 'slider'));
|
||||
$this->success('获取图片内容', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -295,7 +295,6 @@
|
||||
|
||||
white-space: nowrap;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid @InputBorderNormalColor;
|
||||
|
||||
.layui-form-label {
|
||||
@ -332,10 +331,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& + .layui-table {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 表单验证异常提示 */
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
fieldset {
|
||||
margin: 0 0 10px 0;
|
||||
border: 1px solid @BoxBorderColor;
|
||||
padding: 5px 15px;
|
||||
padding: 10px 20px 5px 20px;
|
||||
background: #fff;
|
||||
border-radius: @BoxBorderRadius;
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user