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
Show 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
admin/application/admin/view/article/add.html
View file @
4000046d
...
@@ -152,9 +152,7 @@
...
@@ -152,9 +152,7 @@
'content'
:
{
'content'
:
{
required
:
true
,
required
:
true
,
},
},
'introduce'
:
{
required
:
true
,
}
},
},
messages
:
{
messages
:
{
...
@@ -164,10 +162,6 @@
...
@@ -164,10 +162,6 @@
'username'
:
{
'username'
:
{
required
:
"内容不能为空"
,
required
:
"内容不能为空"
,
},
},
'mobile'
:
{
required
:
"简介不能为空"
,
},
}
}
});
});
</script>
</script>
...
...
admin/application/admin/view/article/index.html
View file @
4000046d
admin/public/static/admin/js/admin.js
View file @
4000046d
...
@@ -352,6 +352,7 @@ $(function () {
...
@@ -352,6 +352,7 @@ $(function () {
if
(
typeof
(
dataData
)
!=
'object'
)
{
if
(
typeof
(
dataData
)
!=
'object'
)
{
dataData
=
JSON
.
parse
(
dataData
);
dataData
=
JSON
.
parse
(
dataData
);
window
.
location
.
reload
();
}
}
/*需要确认操作*/
/*需要确认操作*/
...
@@ -360,6 +361,7 @@ $(function () {
...
@@ -360,6 +361,7 @@ $(function () {
var
confirmTitle
=
$
(
this
).
data
(
"confirmTitle"
)
||
'操作确认'
;
var
confirmTitle
=
$
(
this
).
data
(
"confirmTitle"
)
||
'操作确认'
;
//提示窗口的内容
//提示窗口的内容
var
confirmContent
=
$
(
this
).
data
(
"confirmContent"
)
||
'您确定要执行此操作吗?'
;
var
confirmContent
=
$
(
this
).
data
(
"confirmContent"
)
||
'您确定要执行此操作吗?'
;
layer
.
confirm
(
confirmContent
,
{
title
:
confirmTitle
,
closeBtn
:
1
,
icon
:
3
},
function
()
{
layer
.
confirm
(
confirmContent
,
{
title
:
confirmTitle
,
closeBtn
:
1
,
icon
:
3
},
function
()
{
//如果为直接访问
//如果为直接访问
if
(
layerType
===
1
)
{
if
(
layerType
===
1
)
{
...
@@ -438,6 +440,7 @@ function ajaxRequest(url, method, data, go) {
...
@@ -438,6 +440,7 @@ function ajaxRequest(url, method, data, go) {
}
}
goUrl
(
go
);
goUrl
(
go
);
window
.
location
.
reload
();
},
},
error
:
function
(
xhr
,
type
,
errorThrown
)
{
error
:
function
(
xhr
,
type
,
errorThrown
)
{
//异常处理;
//异常处理;
...
@@ -450,6 +453,7 @@ function ajaxRequest(url, method, data, go) {
...
@@ -450,6 +453,7 @@ function ajaxRequest(url, method, data, go) {
console
.
log
(
data
);
console
.
log
(
data
);
layer
.
close
(
loadT
);
layer
.
close
(
loadT
);
}
}
window
.
location
.
reload
();
layer
.
msg
(
'访问错误,代码'
+
xhr
.
status
,
{
icon
:
2
,
scrollbar
:
false
,});
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