Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion_group
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
章建武
fashion_group
Commits
4000046d
Commit
4000046d
authored
Jun 08, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
b2df31b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
VideoController.php
admin/application/admin/controller/VideoController.php
+1
-1
add.html
admin/application/admin/view/article/add.html
+1
-7
index.html
admin/application/admin/view/article/index.html
+1
-1
admin.js
admin/public/static/admin/js/admin.js
+4
-0
No files found.
admin/application/admin/controller/VideoController.php
View file @
4000046d
...
...
@@ -47,7 +47,7 @@ class VideoController extends Controller
$num
=
$model
->
where
(
$where
)
->
count
();
$num
++
;
$param
[
'num'
]
=
$num
;
$param
[
'url'
]
=
'http://'
.
$_SERVER
[
'SERVER_NAME'
];
$validate_result
=
$validate
->
scene
(
'add'
)
->
check
(
$param
);
if
(
!
$validate_result
)
{
...
...
admin/application/admin/view/article/add.html
View file @
4000046d
...
...
@@ -152,9 +152,7 @@
'content'
:
{
required
:
true
,
},
'introduce'
:
{
required
:
true
,
}
},
messages
:
{
...
...
@@ -164,10 +162,6 @@
'username'
:
{
required
:
"内容不能为空"
,
},
'mobile'
:
{
required
:
"简介不能为空"
,
},
}
});
</script>
...
...
admin/application/admin/view/article/index.html
View file @
4000046d
...
...
@@ -69,7 +69,7 @@
<a
title=
"添加"
data-toggle=
"tooltip"
class=
"btn btn-primary btn-sm "
href=
"{:url('add')}"
>
<i
class=
"fa fa-plus"
></i>
添加
</a>
<a
class=
"btn btn-danger btn-sm AjaxButton"
data-toggle=
"tooltip"
title=
"删除选中数据"
<a
class=
"btn btn-danger btn-sm AjaxButton"
data-toggle=
"tooltip"
title=
"删除选中数据"
data-confirm-title=
"删除确认"
data-confirm-content=
"您确定要删除选中的数据吗?"
data-id=
"checked"
data-url=
"{:url('del')}"
>
<i
class=
"fa fa-trash"
></i>
删除
...
...
admin/public/static/admin/js/admin.js
View file @
4000046d
...
...
@@ -352,6 +352,7 @@ $(function () {
if
(
typeof
(
dataData
)
!=
'object'
)
{
dataData
=
JSON
.
parse
(
dataData
);
window
.
location
.
reload
();
}
/*需要确认操作*/
...
...
@@ -360,6 +361,7 @@ $(function () {
var
confirmTitle
=
$
(
this
).
data
(
"confirmTitle"
)
||
'操作确认'
;
//提示窗口的内容
var
confirmContent
=
$
(
this
).
data
(
"confirmContent"
)
||
'您确定要执行此操作吗?'
;
layer
.
confirm
(
confirmContent
,
{
title
:
confirmTitle
,
closeBtn
:
1
,
icon
:
3
},
function
()
{
//如果为直接访问
if
(
layerType
===
1
)
{
...
...
@@ -438,6 +440,7 @@ function ajaxRequest(url, method, data, go) {
}
goUrl
(
go
);
window
.
location
.
reload
();
},
error
:
function
(
xhr
,
type
,
errorThrown
)
{
//异常处理;
...
...
@@ -450,6 +453,7 @@ function ajaxRequest(url, method, data, go) {
console
.
log
(
data
);
layer
.
close
(
loadT
);
}
window
.
location
.
reload
();
layer
.
msg
(
'访问错误,代码'
+
xhr
.
status
,
{
icon
:
2
,
scrollbar
:
false
,});
}
}
...
...
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