From 1fb02f94796c50ccf313347ee7ff1a944896bbb2 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Fri, 19 Jan 2024 11:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BD=91=E7=AB=99=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Ad.php | 18 ++++-------------- database/seeders/AdminMenuSeeder.php | 17 ++++++++++------- lang/zh_CN/menu.php | 4 ++-- 3 files changed, 16 insertions(+), 23 deletions(-) diff --git a/app/Models/Ad.php b/app/Models/Ad.php index 6311db2..f41df01 100644 --- a/app/Models/Ad.php +++ b/app/Models/Ad.php @@ -45,8 +45,8 @@ class Ad extends Model { return [ self::TYPE_WEB => '网页跳转', - self::TYPE_APP => '应用跳转', - self::TYPE_MINI => '小程序跳转', + // self::TYPE_APP => '应用跳转', + // self::TYPE_MINI => '小程序跳转', self::TYPE_OFF => '无跳转', ]; } @@ -56,22 +56,12 @@ class Ad extends Model return [ self::TYPE_OFF => "无跳转", self::TYPE_WEB => "网页跳转", - self::TYPE_APP => "应用跳转", - self::TYPE_MINI => "小程序跳转", + // self::TYPE_APP => "应用跳转", + // self::TYPE_MINI => "小程序跳转", '*'=>'其他:${jump_type}' ]; } - public static function typeMapLabel() - { - return [ - self::TYPE_IN => "入住缴费", - self::TYPE_CONTINUE => "续住缴费", - self::TYPE_EXIT => "离开结算", - '*'=>'其他:${live_in}' - ]; - } - public function scopeShow(){ $q->where('is_enable', true)->where('published_at', '>=', now()); } diff --git a/database/seeders/AdminMenuSeeder.php b/database/seeders/AdminMenuSeeder.php index 0f238e2..09ff181 100644 --- a/database/seeders/AdminMenuSeeder.php +++ b/database/seeders/AdminMenuSeeder.php @@ -19,8 +19,8 @@ class AdminMenuSeeder extends Seeder { // $menus = [ - ['title' => 'index', 'icon' => 'line-md:home-twotone-alt', 'url' => '/index', 'is_home'=>1, 'order'=>1], - ['title' => 'admin_system', 'icon' => 'material-symbols:settings-outline', 'url' => '/system', 'order'=>2, + ['title' => 'index', 'icon' => 'line-md:home-twotone-alt', 'url' => '/index', 'is_home'=>1, 'order'=>0], + ['title' => 'admin_system', 'icon' => 'material-symbols:settings-outline', 'url' => '/system', 'order'=>1, 'children' => [ ['title' => 'admin_users', 'icon' => 'ph:user-gear', 'url' => '/system/admin_users', 'order'=>1], ['title' => 'admin_roles', 'icon' => 'carbon:user-role', 'url' => '/system/admin_roles', 'order'=>2], @@ -30,7 +30,14 @@ class AdminMenuSeeder extends Seeder ['title' => 'keywords', 'icon' => 'ph:codesandbox-logo-light', 'url' => '/system/keywords', 'order'=>6],//字典管理 ], ], - ['title' => 'data_content', 'icon' => 'ph:codesandbox-logo-light', 'url' => '', 'order'=>3, + + ['title' => 'web_content', 'icon' => 'ph:codesandbox-logo-light', 'url' => '/web_content', 'order'=>2,//网站管理 + 'children' => [ + ['title'=>'ads', 'icon'=>'lets-icons:img-box','url'=>'/ads', 'order'=>0], + + ] + ], + ['title' => 'data_content', 'icon' => 'ph:codesandbox-logo-light', 'url' => '/data_content', 'order'=>3, //数据管理 'children' =>[ //财务报表类型,档案类型,部门管理,地区类型,社别管理,小区管理,楼栋管理,户籍类型,民族管理,政治面貌,文化程度,机构管理,口头纠纷类型,卫生检查类型,图书类型,企业地区管理,收支情况类型,福利类型,工种管理 ['title' => 'financial_cate', 'icon' => 'tabler:zoom-money', 'url' => '/financial_cate?parent_name=financial_cate&has_owner=0', 'order'=>0],//财务报表类型 @@ -52,10 +59,6 @@ class AdminMenuSeeder extends Seeder ['title' => 'money_cate', 'icon' => 'streamline:subscription-cashflow', 'url' => '/money_cate?parent_name=money_cate&has_owner=0', 'order'=>16],//收支情况类型 ['title' => 'welfare_cate', 'icon' => 'material-symbols:redeem-rounded', 'url' => '/welfare_cate?parent_name=welfare_cate&has_owner=0', 'order'=>17],//福利类型 ['title' => 'job_cate', 'icon' => 'gravity-ui:person-worker', 'url' => '/job_cate?parent_name=job_cate&has_owner=0', 'order'=>18],//工种管理 - - - // ['title'=>'articles', 'icon'=>'ic:outline-article','url'=>'/articles', 'order'=>1], - // ['title'=>'ads', 'icon'=>'lets-icons:img-box','url'=>'/ads', 'order'=>2], ] ] ]; diff --git a/lang/zh_CN/menu.php b/lang/zh_CN/menu.php index 340876f..b4a4470 100644 --- a/lang/zh_CN/menu.php +++ b/lang/zh_CN/menu.php @@ -10,9 +10,9 @@ return [ 'admin_menu' => '菜单', 'admin_setting' => '设置', 'keywords' => '数据字典', - 'web_content' => '内容管理', + 'web_content' => '网站管理', 'articles' => '文章管理', - 'ads' => '广告管理', + 'ads' => '海报管理', 'data_content' => '数据管理', 'financial_cate' => '财务报表类型', 'file_cate' => '档案类型',