Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webman-blog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏洲
webman-blog
Commits
033dd43c
Commit
033dd43c
authored
Dec 23, 2022
by
wolfcode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update.
parent
017ca93d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
layout.html
app/admin/view/layout.html
+8
-8
AdminBase.php
app/common/controller/AdminBase.php
+4
-4
No files found.
app/admin/view/layout.html
View file @
033dd43c
...
...
@@ -11,10 +11,10 @@
<meta
name=
"format-detection"
content=
"telephone=no"
>
<link
rel=
"icon"
href=
"{:sysConfig('site','site_ico')}"
>
<link
rel=
"stylesheet"
href=
"/layui/dist/css/layui.css"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/css/admin/font-awesome-4.7.0/css/font-awesome.min.css"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/css/admin/layuimini.css?v={$static_version}"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/css/admin/default.css?v={$static_version}"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/css/admin/public.css?v={$static_version}"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/
template_001/
css/admin/font-awesome-4.7.0/css/font-awesome.min.css"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/
template_001/
css/admin/layuimini.css?v={$static_version}"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/
template_001/
css/admin/default.css?v={$static_version}"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"/static/
template_001/
css/admin/public.css?v={$static_version}"
media=
"all"
>
</head>
<body
class=
"layui-layout-body layuimini-all"
>
<div
class=
"layui-layout layui-layout-admin"
>
...
...
@@ -104,11 +104,11 @@
</div>
<script
src=
"/layui/dist/layui.js"
charset=
"utf-8"
></script>
<script
src=
"/static/js/admin/lay-config.js?v={$static_version}"
charset=
"utf-8"
></script>
<script
src=
"/static/js/jquery.min.js"
charset=
"utf-8"
></script>
<script
src=
"/static/
template_001/
js/admin/lay-config.js?v={$static_version}"
charset=
"utf-8"
></script>
<script
src=
"/static/
template_001/
js/jquery.min.js"
charset=
"utf-8"
></script>
<script
src=
"/sdeditor/editor.js?v={$static_version}"
charset=
"utf-8"
></script>
<script
src=
"/static/js/admin/common.js?v={$static_version}"
charset=
"utf-8"
></script>
<script
src=
"/static/js/vue.min.js"
charset=
"utf-8"
></script>
<script
src=
"/static/
template_001/
js/admin/common.js?v={$static_version}"
charset=
"utf-8"
></script>
<script
src=
"/static/
template_001/
js/vue.min.js"
charset=
"utf-8"
></script>
<script>
layui
.
use
([
'jquery'
,
'layer'
,
'miniAdmin'
],
function
()
{
var
$
=
layui
.
jquery
,
layer
=
layui
.
layer
,
miniAdmin
=
layui
.
miniAdmin
...
...
app/common/controller/AdminBase.php
View file @
033dd43c
...
...
@@ -27,7 +27,7 @@ class AdminBase
* @param array $assign
* @return Response
*/
p
ublic
function
admin_tpl
(
array
$assign
=
[])
:
Response
p
rotected
function
admin_tpl
(
array
$assign
=
[])
:
Response
{
$controllerClass
=
request
()
->
controller
;
$controller
=
strtolower
(
substr
(
$controllerClass
,
strrpos
(
$controllerClass
,
'\\'
)
+
1
));
...
...
@@ -47,19 +47,19 @@ class AdminBase
return
$this
->
isLogin
;
}
p
ublic
function
apiSuccess
(
array
$data
=
[],
string
$msg
=
'操作成功'
,
int
$code
=
1
)
:
Response
p
rotected
function
apiSuccess
(
array
$data
=
[],
string
$msg
=
'操作成功'
,
int
$code
=
1
)
:
Response
{
$arr
=
compact
(
'msg'
,
'code'
,
'data'
);
return
json
(
$arr
);
}
p
ublic
function
apiError
(
string
$msg
=
'操作失败'
,
int
$code
=
0
)
:
Response
p
rotected
function
apiError
(
string
$msg
=
'操作失败'
,
int
$code
=
0
)
:
Response
{
$arr
=
compact
(
'msg'
,
'code'
);
return
json
(
$arr
);
}
p
ublic
function
argsWhere
(
Request
$request
)
:
array
p
rotected
function
argsWhere
(
Request
$request
)
:
array
{
$post
=
$request
->
post
();
$page
=
isset
(
$post
[
'page'
])
&&
!
empty
(
$post
[
'page'
])
?
$post
[
'page'
]
:
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment