From 7153d4e5efdddb3ebdb16184776d13a1dd567825 Mon Sep 17 00:00:00 2001 From: koogua Date: Mon, 10 Oct 2022 17:58:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AF=BC=E8=88=AA=E6=95=99=E5=B8=88->?= =?UTF-8?q?=E5=B8=88=E8=B5=84=202.=E6=92=AD=E6=94=BE=E5=99=A8=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E5=A2=9E=E5=8A=A0=E6=92=AD=E6=94=BE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controllers/TeacherController.php | 2 +- app/Http/Home/Views/chapter/vod.volt | 3 +++ app/Http/Home/Views/teacher/list.volt | 2 +- db/migrations/20210403184518.php | 2 +- public/static/home/css/common.css | 20 +++++++++++++++++++ public/static/home/js/chapter.live.player.js | 8 ++++++++ public/static/home/js/chapter.vod.player.js | 8 ++++++++ 7 files changed, 42 insertions(+), 3 deletions(-) diff --git a/app/Http/Home/Controllers/TeacherController.php b/app/Http/Home/Controllers/TeacherController.php index 88cef3b7..5260f285 100644 --- a/app/Http/Home/Controllers/TeacherController.php +++ b/app/Http/Home/Controllers/TeacherController.php @@ -29,7 +29,7 @@ class TeacherController extends Controller return $this->response->redirect($location); } - $this->seo->prependTitle('教师'); + $this->seo->prependTitle('师资'); } /** diff --git a/app/Http/Home/Views/chapter/vod.volt b/app/Http/Home/Views/chapter/vod.volt index cc7e9df4..52044075 100644 --- a/app/Http/Home/Views/chapter/vod.volt +++ b/app/Http/Home/Views/chapter/vod.volt @@ -20,6 +20,9 @@
+
+ +
diff --git a/app/Http/Home/Views/teacher/list.volt b/app/Http/Home/Views/teacher/list.volt index 8d8fb097..2b850ea3 100644 --- a/app/Http/Home/Views/teacher/list.volt +++ b/app/Http/Home/Views/teacher/list.volt @@ -6,7 +6,7 @@
diff --git a/db/migrations/20210403184518.php b/db/migrations/20210403184518.php index cc46ce94..787453a3 100644 --- a/db/migrations/20210403184518.php +++ b/db/migrations/20210403184518.php @@ -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', diff --git a/public/static/home/css/common.css b/public/static/home/css/common.css index e5e6fb4f..e06d22d2 100644 --- a/public/static/home/css/common.css +++ b/public/static/home/css/common.css @@ -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; } diff --git a/public/static/home/js/chapter.live.player.js b/public/static/home/js/chapter.live.player.js index d842d16e..4a0b7487 100644 --- a/public/static/home/js/chapter.live.player.js +++ b/public/static/home/js/chapter.live.player.js @@ -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); diff --git a/public/static/home/js/chapter.vod.player.js b/public/static/home/js/chapter.vod.player.js index d1041bf6..c072658f 100644 --- a/public/static/home/js/chapter.vod.player.js +++ b/public/static/home/js/chapter.vod.player.js @@ -51,6 +51,14 @@ layui.use(['jquery', 'helper'], function () { ended(); }); + /** + * 播放器中央播放按钮点击事件 + */ + $('#play-mask').on('click', function () { + $(this).hide(); + player.toggle(); + }); + var position = parseInt(lastPosition); /**