diff --git a/README.md b/README.md index 1281cbc..f9af156 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ -

+

- + -

基于Yii 2框架的网盘系统

-

+

基于Yii 2框架的网盘系统

+
+ 这是一个基于[Yii 2](https://www.yiiframework.com/) PHP框架设计的小型网盘系统,作为我的毕业设计作业,它具备基本的网盘功能。 @@ -48,7 +49,7 @@ 计划实现的功能 ------------------- -文件预览(图像,视频ok) +文件预览(图像,视频,音频ok) 文件收集 diff --git a/views/home/index.php b/views/home/index.php index 4afc39f..77d34d3 100644 --- a/views/home/index.php +++ b/views/home/index.php @@ -150,6 +150,8 @@ $this->registerCssFile('@web/css/home_style.css'); $relativePath], ['class' => 'file_name', 'onclick' => 'previewImage(this, event)']) ?> $relativePath, 'type' => $item['rawType']], ['class' => 'file_name', 'onclick' => 'previewVideo(this, event)']) ?> + + $relativePath, 'type' => $item['rawType']], ['class' => 'file_name', 'onclick' => 'previewAudio(this, event)']) ?> $relativePath], ['class' => 'file_name']) ?> @@ -180,10 +182,8 @@ $this->registerCssFile('@web/css/home_style.css'); - - - - + + '

视频在线播放

', + 'title' => '

视频播放

', 'id' => 'videoModal', 'size' => 'modal-xl', ]); @@ -288,6 +288,17 @@ echo '