From 7319260f31c9a593418ff17b1ca42e0822c3c4eb Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 10 Jan 2024 22:07:04 +0800 Subject: [PATCH] 改正授权码md5加密 bgm链接修改 允许后置日期提交 简介提交支持 --- src/components/mini/box16-videoDetail.vue | 27 +++++++-------------------- 1 files changed, 7 insertions(+), 20 deletions(-) diff --git a/src/components/mini/box16-videoDetail.vue b/src/components/mini/box16-videoDetail.vue index c9acaac..feb99a5 100644 --- a/src/components/mini/box16-videoDetail.vue +++ b/src/components/mini/box16-videoDetail.vue @@ -96,7 +96,7 @@ myLock: false, showFade: true, videoData: { - img: "http://t.inleft.com/share/media_photo/idea_beijing.jpg", + pic: "", url: "", type: "normal", title: "", @@ -163,33 +163,25 @@ this.myLock = !this.myLock; return } - console.log(3333); + if (res.data.videoUrlList == null || res.data.videoUrlList.length < 1) { this.$notification.error({ - message: '该日志还没有上传视频资源..', + message: '此视频还没有上传资源..', placement: 'bottomRight' }); - return + this.videoData.url = ""; + } else { + this.videoData.url = res.data.videoUrlList[0]; } this.isAllowedComment = res.data.isAllowedComment; this.introduce = res.data.introduce; - this.videoData.url = res.data.videoUrlList[0]; - this.videoData.img = res.data.coverFileURL; + this.videoData.pic = res.data.coverFileURL; this.videoData.title = res.data.title; this.videoData.introduce = res.data.introduce; this.videoData.id = res.data.id; - - - if (res.data.articleFileURL != null && - res.data.articleFileURL != "" && - res.data.articleFileURL.endsWith("m3u8")) { - this.videoData.type = "customHls"; - } else { - this.videoData.type = "normal"; - } this.myLock = !this.myLock; if (this.lastArticleId != this.articleId) { @@ -203,11 +195,6 @@ } </script> <style lang="less"> - pre { - font-family: 'HYTangMeiRen'; - src: url("http://t.inleft.com/share/z%E5%AD%97%E4%BD%93%E5%BA%93/hytmr55%E6%B1%89%E4%BB%AA%E5%94%90%E7%BE%8E%E4%BA%BA%E5%AD%97%E4%BD%93.woff") format("truetype"); - } - .boxMain { user-select: none; grid-template-columns: repeat(2, 1fr); -- Gitblit v1.9.1