Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
Details
Activity
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
杨昕
media-resource
Commits
ba212c84
Commit
ba212c84
authored
Oct 19, 2021
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
fd27f656
Pipeline
#16526
passed with stages
in 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
200 additions
and
0 deletions
+200
-0
list.blade.php
resources/views/admin/active_code/list.blade.php
+200
-0
No files found.
resources/views/admin/active_code/list.blade.php
0 → 100644
View file @
ba212c84
<!DOCTYPE html>
<html>
@include('admin.common.commonMedia')
<script
src=
"{{ asset('xadmin/extra/datepicker/js/moment.js')}}"
></script>
<body>
<!--====================================================
MAIN NAVBAR
======================================================-->
@include('admin.common.header')
<!--====================================================
PAGE CONTENT
======================================================-->
<div
class=
"page-content d-flex align-items-stretch"
>
<!--***** SIDE NAVBAR *****-->
@include('admin.common.left')
<div
class=
"content-inner chart-cont"
>
<div
class=
"card form"
>
<div
class=
"card-header"
>
<h3>
激活码列表
</h3>
</div>
<br>
<!--***** CONTENT *****-->
<div
class=
"row ml20"
>
<div
class=
"xblock"
>
<form>
<input
type=
"text"
name=
"name"
class=
"form-input"
placeholder=
"名称"
value=
"{{$name}}"
autocomplete=
"off"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
查找
</button>
</form>
</div>
<div
class=
"active_code"
>
<div
class=
"userinfo"
>
加密人员:张三
</div>
<div
class=
"active_code_list"
>
<table
class=
"table table-hover"
>
<thead>
<tr
class=
"bg-info text-white"
>
<th>
序号
</th>
<th>
类别编号
</th>
</tr>
</thead>
<tbody>
@if(count($media_categories)>0)
@foreach ($media_categories as $key => $media_category)
<tr
class=
"
<?php
if
(
$key
%
2
==
0
)
echo
'table-success'
;
?>
"
>
<td>
{{$key+1}}
</td>
<td
style=
"max-width: 150px;"
>
{{$media_category['_id']}}
</td>
</tr>
@endforeach
@else
<tr>
<td
colspan=
"9"
style=
"text-align:center"
>
暂无数据
</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Global Javascript -->
@include('admin.common.foot')
<!--Core Javascript -->
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/extra/jqueryConfirm/css/jquery-confirm.css')}}"
>
<script
src=
"{{ asset('xadmin/extra/jqueryConfirm/js/jquery-confirm.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/extra/toast/js/toast.js')}}"
></script>
{{--
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/extra/toast/css/toast.css')}}"
>
--}}
<script
src=
"{{ asset('xadmin/js/jquery.validate.js')}}"
></script>
<script
type=
"text/javascript"
>
function
x_admin_show
(
url
){
window
.
location
.
href
=
url
;
}
function
member_stop
(
obj
,
id
){
var
status
=
$
(
obj
).
attr
(
'status'
);
var
opts
=
new
FormData
();
var
title
=
"停用"
;
opts
.
append
(
'_token'
,
"{{csrf_token()}}"
)
if
(
status
==
'1'
){
title
=
"开启"
;
}
$
.
confirm
({
// confirmButtonClass: 'btn-info',
// cancelButtonClass: 'btn-info',
cancelButtonClass
:
'btn-info'
,
confirmButtonClass
:
'btn-danger'
,
content
:
'确认要'
+
title
+
'吗?'
,
confirmButton
:
'确认'
,
cancelButton
:
'取消'
,
confirm
:
function
()
{
if
(
title
==
'停用'
){
//发异步把用户状态进行更改
opts
.
append
(
'id'
,
id
);
opts
.
append
(
'status'
,
1
);
fetch_response
(
'POST'
,
'/web/media_category/disable'
,
opts
).
then
(
function
(
res
){
if
(
res
.
code
==
200
){
$
(
obj
).
attr
(
'title'
,
'启用'
)
$
(
obj
).
find
(
'i'
).
html
(
''
);
$
(
obj
).
parents
(
"tr"
).
find
(
".td-status"
).
find
(
'span'
).
addClass
(
'layui-btn-disabled'
).
html
(
'已停用'
);
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
'已停用'
,
duration
:
1000
,
top
:
'50%'
});
setTimeout
(
function
()
{
window
.
location
.
href
=
'/web/media_category'
;
},
2000
)
}
else
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
res
.
msg
,
duration
:
1000
,
top
:
'50%'
});
}
});
}
else
{
opts
.
append
(
'id'
,
id
);
opts
.
append
(
'status'
,
0
);
fetch_response
(
'POST'
,
'/web/media_category/disable'
,
opts
).
then
(
function
(
res
){
if
(
res
.
code
==
200
){
$
(
obj
).
attr
(
'title'
,
'停用'
)
$
(
obj
).
find
(
'i'
).
html
(
''
);
$
(
obj
).
parents
(
"tr"
).
find
(
".td-status"
).
find
(
'span'
).
removeClass
(
'layui-btn-disabled'
).
html
(
'已启用'
);
// layer.msg('已启用!',{icon: 6,time:1000},function(){
// window.location.reload();
// });
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
'已启用'
,
duration
:
1000
,
top
:
'50%'
});
setTimeout
(
function
()
{
window
.
location
.
href
=
'/web/media_category'
;
},
2000
)
}
else
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
res
.
msg
,
duration
:
1000
,
top
:
'50%'
});
}
});
}
},
cancel
:
function
()
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
'已取消'
,
duration
:
1000
,
top
:
'50%'
});
}
});
}
</script>
</body>
</html>
\ No newline at end of file
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