修改数据类型

This commit is contained in:
邹景立 2022-04-16 22:33:56 +08:00
parent cd718510b3
commit 0d2871b732
3 changed files with 9 additions and 9 deletions

View File

@ -26,7 +26,7 @@ class Data extends Controller
} }
/** /**
* 获取轮播图片数据 * 获取图片内容数据
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
@ -34,7 +34,7 @@ class Data extends Controller
public function getSlider() public function getSlider()
{ {
$data = sysdata(input('keys', 'slider')); $data = sysdata(input('keys', 'slider'));
$this->success('获取轮播图片', $data); $this->success('获取图片内容', $data);
} }
/** /**

View File

@ -6,7 +6,7 @@ use think\admin\Controller;
use think\admin\model\SystemBase; use think\admin\model\SystemBase;
/** /**
* 轮播图片管理 * 图片内容管理
* Class Slider * Class Slider
* @package app\data\controller\base * @package app\data\controller\base
*/ */
@ -27,7 +27,7 @@ class Slider extends Controller
* 数据类型 * 数据类型
* @var string * @var string
*/ */
protected $type = '轮播图片'; protected $type = '图片内容';
/** /**
* 页面类型 * 页面类型
@ -45,18 +45,18 @@ class Slider extends Controller
} }
/** /**
* 轮播图片管理 * 图片内容管理
* @auth true * @auth true
* @menu true * @menu true
*/ */
public function index() public function index()
{ {
$this->title = '轮播图片管理'; $this->title = '图片内容管理';
$this->fetch(); $this->fetch();
} }
/** /**
* 编辑轮播图片 * 编辑图片内容
* @auth true * @auth true
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
@ -72,7 +72,7 @@ class Slider extends Controller
} }
/** /**
* 保存轮播图片 * 保存图片内容
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException

View File

@ -12,7 +12,7 @@
<div class="think-box-shadow"> <div class="think-box-shadow">
<form id="DataForm" class='layui-form' autocomplete='off' action="{:sysuri()}?type={$get.type|default=''}" onsubmit="return false" style="width:850px"> <form id="DataForm" class='layui-form' autocomplete='off' action="{:sysuri()}?type={$get.type|default=''}" onsubmit="return false" style="width:850px">
<div class="text-center padding-top-10"> <div class="text-center padding-top-10">
<b class="color-text font-s16">{$title|default='轮播图片管理'}</b> <b class="color-text font-s16">{$title|default='图片内容管理'}</b>
<div class="color-desc font-s12">{$base.content|default='图片尺寸1080px * 1882px'}</div> <div class="color-desc font-s12">{$base.content|default='图片尺寸1080px * 1882px'}</div>
<!--{if $app->isDebug() && !empty($skey)}--> <!--{if $app->isDebug() && !empty($skey)}-->
<i class="color-desc pull-right">{$skey}</i> <i class="color-desc pull-right">{$skey}</i>