1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-23 00:16:39 +08:00

1.导航教师->师资

2.播放器中间增加播放按钮
This commit is contained in:
koogua 2022-10-10 17:58:25 +08:00
parent 63a1f6eb1d
commit 7153d4e5ef
7 changed files with 42 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class TeacherController extends Controller
return $this->response->redirect($location);
}
$this->seo->prependTitle('师');
$this->seo->prependTitle('');
}
/**

View File

@ -20,6 +20,9 @@
<div class="layout-main">
<div class="layout-content">
<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>
<div id="comment-anchor"></div>

View File

@ -6,7 +6,7 @@
<div class="layui-breadcrumb breadcrumb">
<a href="/">首页</a>
<a><cite>师</cite></a>
<a><cite>师</cite></a>
</div>
<div id="teacher-list" data-url="{{ pager_url }}"></div>

View File

@ -155,7 +155,7 @@ final class V20210403184518 extends AbstractMigration
'id' => 5,
'parent_id' => 0,
'level' => 1,
'name' => '师',
'name' => '',
'path' => ',5,',
'target' => '_self',
'url' => '/teacher/list',

View File

@ -1337,6 +1337,26 @@
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 {
text-align: center;
}

View File

@ -55,6 +55,14 @@ layui.use(['jquery', 'helper'], function () {
stop();
});
/**
* 播放器中央播放按钮点击事件
*/
$('#play-mask').on('click', function () {
$(this).hide();
player.toggle();
});
function start() {
if (interval != null) {
clearInterval(interval);

View File

@ -51,6 +51,14 @@ layui.use(['jquery', 'helper'], function () {
ended();
});
/**
* 播放器中央播放按钮点击事件
*/
$('#play-mask').on('click', function () {
$(this).hide();
player.toggle();
});
var position = parseInt(lastPosition);
/**