瀏覽代碼

修改数据类型

邹景立 3 年之前
父節點
當前提交
0d2871b732
共有 3 個文件被更改,包括 9 次插入9 次删除
  1. 2 2
      app/data/controller/api/Data.php
  2. 6 6
      app/data/controller/base/Slider.php
  3. 1 1
      app/data/view/base/slider/form.html

+ 2 - 2
app/data/controller/api/Data.php

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

+ 6 - 6
app/data/controller/base/Slider.php

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

+ 1 - 1
app/data/view/base/slider/form.html

@@ -12,7 +12,7 @@
 <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">
         <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>
             <!--{if $app->isDebug() && !empty($skey)}-->
             <i class="color-desc pull-right">{$skey}</i>