新增前端站点
This commit is contained in:
@@ -49,52 +49,6 @@ class Base{
|
||||
$controller = request()->controller();
|
||||
$action = request()->action();
|
||||
$key = $controller.'/'.$action;
|
||||
|
||||
// // 演示站专用
|
||||
// if(Request::isPost()){
|
||||
// if(
|
||||
// $key == 'Yunzer/configvalue' ||
|
||||
// $key == 'Yunzer/configadd' ||
|
||||
// $key == 'Yunzer/configedit' ||
|
||||
// $key == 'Yunzer/configdel' ||
|
||||
// $key == 'Yunzer/menuadd' ||
|
||||
// $key == 'Yunzer/menuedit' ||
|
||||
// $key == 'Yunzer/menudel' ||
|
||||
// $key == 'Yunzer/buttonadd' ||
|
||||
// $key == 'Yunzer/buttonedit' ||
|
||||
// $key == 'Yunzer/buttondel' ||
|
||||
// $key == 'Yunzeradmin/groupadd' ||
|
||||
// $key == 'Yunzeradmin/groupedit' ||
|
||||
// $key == 'Yunzeradmin/groupdel' ||
|
||||
// $key == 'Yunzeradmin/useradd' ||
|
||||
// $key == 'Yunzeradmin/useredit' ||
|
||||
// $key == 'Yunzeradmin/userdel' ||
|
||||
// $key == 'Yunzeradmin/admininfo' ||
|
||||
// $key == 'Yunzeradmin/test_add' ||
|
||||
// $key == 'Yunzeradmin/test_edit' ||
|
||||
// $key == 'Yunzeradmin/test_static_add' ||
|
||||
// $key == 'Yunzeradmin/test_static_edit' ||
|
||||
// $key == 'Index/upload_img' ||
|
||||
// $key == 'Index/upload_img_s' ||
|
||||
// $key == 'Index/upload_imgs_kin'
|
||||
// ){
|
||||
// $this->returnCode(1,'演示站,不能操作');
|
||||
// }
|
||||
// }
|
||||
// // 演示站专用
|
||||
|
||||
// if($key == 'Index/index' || $key == 'Index/welcome'){
|
||||
|
||||
// }else{
|
||||
// $aMenu = Db::table('yz_admin_sys_menu')->where('src',$key)->find();
|
||||
// if(empty($aMenu)){
|
||||
// $this->error('对不起,您访问的功能不存在');
|
||||
// }
|
||||
// $rights = json_decode($group['rights']);
|
||||
// if(!in_array($aMenu['smid'],$rights)){
|
||||
// $this->error('对不起,您没有权限');
|
||||
// }
|
||||
// }
|
||||
View::assign([
|
||||
'aUser' => $this->aUser,
|
||||
'config' => $this->config
|
||||
|
||||
@@ -34,6 +34,11 @@
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
|
||||
<li class="layui-nav-item layui-hide-xs" lay-unselect title="前端站点" onclick="gotoFront()">
|
||||
<a href="javascript:;" layadmin-event="gotoFront">
|
||||
<i class="layui-icon layui-icon-website"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-nav-item layui-hide-xs" lay-unselect title="全屏" onclick="fullScreen()">
|
||||
<a href="javascript:;" layadmin-event="fullscreen">
|
||||
<i class="layui-icon layui-icon-screen-full"></i>
|
||||
@@ -167,6 +172,11 @@
|
||||
}, 'json');
|
||||
});
|
||||
}
|
||||
|
||||
//跳转前端站点
|
||||
function gotoFront(){
|
||||
window.open("//{$config['admin_domain']}", "_blank");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user