mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-07-23 16:36:38 +08:00
1.导航教师->师资
2.播放器中间增加播放按钮
This commit is contained in:
parent
63a1f6eb1d
commit
7153d4e5ef
@ -29,7 +29,7 @@ class TeacherController extends Controller
|
|||||||
return $this->response->redirect($location);
|
return $this->response->redirect($location);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->seo->prependTitle('教师');
|
$this->seo->prependTitle('师资');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
<div class="layout-main">
|
<div class="layout-main">
|
||||||
<div class="layout-content">
|
<div class="layout-content">
|
||||||
<div class="player-wrap wrap">
|
<div class="player-wrap wrap">
|
||||||
|
<div id="play-mask" class="play-mask">
|
||||||
|
<span class="layui-icon layui-icon-play"></span>
|
||||||
|
</div>
|
||||||
<div id="player"></div>
|
<div id="player"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="comment-anchor"></div>
|
<div id="comment-anchor"></div>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="layui-breadcrumb breadcrumb">
|
<div class="layui-breadcrumb breadcrumb">
|
||||||
<a href="/">首页</a>
|
<a href="/">首页</a>
|
||||||
<a><cite>教师</cite></a>
|
<a><cite>师资</cite></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="teacher-list" data-url="{{ pager_url }}"></div>
|
<div id="teacher-list" data-url="{{ pager_url }}"></div>
|
||||||
|
@ -155,7 +155,7 @@ final class V20210403184518 extends AbstractMigration
|
|||||||
'id' => 5,
|
'id' => 5,
|
||||||
'parent_id' => 0,
|
'parent_id' => 0,
|
||||||
'level' => 1,
|
'level' => 1,
|
||||||
'name' => '教师',
|
'name' => '师资',
|
||||||
'path' => ',5,',
|
'path' => ',5,',
|
||||||
'target' => '_self',
|
'target' => '_self',
|
||||||
'url' => '/teacher/list',
|
'url' => '/teacher/list',
|
||||||
|
@ -1337,6 +1337,26 @@
|
|||||||
height: 428px;
|
height: 428px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.play-mask {
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
z-index: 8;
|
||||||
|
position: absolute;
|
||||||
|
margin-top: -32px;
|
||||||
|
margin-left: -32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.play-mask .layui-icon-play {
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.play-mask .layui-icon-play:hover {
|
||||||
|
color: #00a4ff;
|
||||||
|
}
|
||||||
|
|
||||||
.chat-wrap .layui-card-header {
|
.chat-wrap .layui-card-header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,14 @@ layui.use(['jquery', 'helper'], function () {
|
|||||||
stop();
|
stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 播放器中央播放按钮点击事件
|
||||||
|
*/
|
||||||
|
$('#play-mask').on('click', function () {
|
||||||
|
$(this).hide();
|
||||||
|
player.toggle();
|
||||||
|
});
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
if (interval != null) {
|
if (interval != null) {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
|
@ -51,6 +51,14 @@ layui.use(['jquery', 'helper'], function () {
|
|||||||
ended();
|
ended();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 播放器中央播放按钮点击事件
|
||||||
|
*/
|
||||||
|
$('#play-mask').on('click', function () {
|
||||||
|
$(this).hide();
|
||||||
|
player.toggle();
|
||||||
|
});
|
||||||
|
|
||||||
var position = parseInt(lastPosition);
|
var position = parseInt(lastPosition);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user