This commit is contained in:
2022-06-30 14:01:05 +08:00
parent 6f21ee66b5
commit 492e5fd04b
4 changed files with 6 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ class IndexController extends AdminController
'off' => ['value' => 0, 'text' => '关闭', 'color' => 'danger'], 'off' => ['value' => 0, 'text' => '关闭', 'color' => 'danger'],
]; ];
$form->datetime('created_at', '发布时间'); $form->datetime('created_at', '发布时间');
$form->switch('status', '状态')->states($states); $form->switch('status', '状态')->default(1)->states($states);
$form->url('url', '外链地址'); $form->url('url', '外链地址');
return $form; return $form;

View File

@@ -24,11 +24,12 @@ class Controller extends BaseController
->orderBy('order', 'asc') ->orderBy('order', 'asc')
->select('id', 'title') ->select('id', 'title')
->get(); ->get();
$links = Link::get();
$links = Link::get();
$gLxwmCate = Category::find(10);
View::share('all_categorys', $categorys); View::share('all_categorys', $categorys);
View::share('links', $links); View::share('links', $links);
View::share('gLxwmCate', $gLxwmCate);
} }
} }

View File

@@ -16,7 +16,7 @@
</ul> </ul>
<div class="footerCont"> <div class="footerCont">
<div class="footerCont-text"> <div class="footerCont-text">
<div class="footerCont-label"><span>版权所有:黑龙江省科学院能源环境研究院</span><span>{{ config('beian') }}</span></div> <div class="footerCont-label"><span>版权所有:{{ config('siteName') }}</span><span>{{ config('beian') }}</span></div>
<div class="footerCont-label"> <div class="footerCont-label">
<span>邮箱:{{ config('email') }}</span><span>电话:{{ config('mobile') }}</span> <span>邮箱:{{ config('email') }}</span><span>电话:{{ config('mobile') }}</span>
</div> </div>

View File

@@ -20,8 +20,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="top"> <div class="top">
<a href="https://www.has.ac.cn/">黑龙江省科学院</a>| <a href="https://www.has.ac.cn/">黑龙江省科学院</a>|
<a href="#">English</a>| <a href="{{ $gLxwmCate->link }}">联系我们</a>|
<a href="联系我们.html">联系我们</a>|
<a href="#">网站地图</a> <a href="#">网站地图</a>
</div> </div>
<div class="bottom"> <div class="bottom">