提交 d8ef77f3 编写于 作者: guangjun.yang's avatar guangjun.yang

设置时间问题

上级 e8acf1af
...@@ -921,19 +921,17 @@ export default { ...@@ -921,19 +921,17 @@ export default {
_this.showLoading = true; _this.showLoading = true;
this.NEW_GET(`cme/project/${_this.projectId}/info`, param).then(res => { this.NEW_GET(`cme/project/${_this.projectId}/info`, param).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
_this.hasBindCard = res.data.cardStatus == 0 ? false : true;
_this.limitTimes = res.data.trySeeTime;
// 先设置视频URL再显示视频组件 ------------ BEGIN
// 首先使用配置中的参数中的获取视频地址及视频时间 // 首先使用配置中的参数中的获取视频地址及视频时间
if(videoUrl) { if(videoUrl) {
_this.videoOptions.mp4 = videoUrl;
_this.limitTimes = this.$route.query.trySeeTime || 300000; _this.limitTimes = this.$route.query.trySeeTime || 300000;
_this.videoOptions.mp4 = videoUrl;
_this.videoOptions.trySeeTime = this.$route.query.trySeeTime || 300000; _this.videoOptions.trySeeTime = this.$route.query.trySeeTime || 300000;
} else { } else {
_this.limitTimes = res.data.trySeeTime;
_this.videoOptions.mp4 = res.data.attachmentUrl; _this.videoOptions.mp4 = res.data.attachmentUrl;
_this.videoOptions.trySeeTime = res.data.trySeeTime || 300000; _this.videoOptions.trySeeTime = res.data.trySeeTime || 300000;
} }
_this.hasBindCard = res.data.cardStatus == 0 ? false : true;
if(this.hasBindCard) { if(this.hasBindCard) {
_this.videoOptions.trySeeTime = 300000; _this.videoOptions.trySeeTime = 300000;
_this.videoOptions.autoplay = false; _this.videoOptions.autoplay = false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册