20200611-zlp-1
培训视频(七牛设置私有空间)管理
This commit is contained in:
@ -349,14 +349,14 @@ export default {
|
||||
file.type === "video/avi" ||
|
||||
file.type === "video/wmv" ||
|
||||
file.type === "video/rmvb";
|
||||
const isLt500M = file.size / 1024 / 1024 < 500;
|
||||
const isLt1000M = file.size / 1024 / 1024 < 1000;
|
||||
if (!isVideo) {
|
||||
this.msgError("请上传正确格式的视频!");
|
||||
return false;
|
||||
} else {
|
||||
this.form.filetype = file.type;
|
||||
if (!isLt500M) {
|
||||
this.msgError("上传视频文件大小不能超过 500MB!");
|
||||
if (!isLt1000M) {
|
||||
this.msgError("上传视频文件大小不能超过 1000MB!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ export default {
|
||||
sources: [
|
||||
{
|
||||
type: response.data.filetype,
|
||||
src: "https://files.benyiedu.com/" + response.data.videourl
|
||||
src: response.data.videourl
|
||||
}
|
||||
],
|
||||
notSupportedMessage: "此视频暂无法播放,请稍后再试",
|
||||
|
@ -74,7 +74,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listVideo, getVideo } from "@/api/benyi_train/video";
|
||||
import { listVideo, getVideo, privateDownloadUrl } from "@/api/benyi_train/video";
|
||||
import { listAllLecturer } from "@/api/benyi_train/lecturer";
|
||||
import { listMoedata } from "@/api/system/moedata";
|
||||
|
||||
@ -149,7 +149,7 @@ export default {
|
||||
{
|
||||
type: ele.filetype,
|
||||
// mp4
|
||||
src: "https://files.benyiedu.com/" + ele.videourl
|
||||
src: ele.videourl
|
||||
}
|
||||
],
|
||||
notSupportedMessage: "此视频暂无法播放,请稍后再试",
|
||||
|
Reference in New Issue
Block a user