| | |
| | | <div class="markdown-body articleTitle"> |
| | | <h4>{{articelMeta.title}}</h4> |
| | | </div> |
| | | <div class="playBox"> |
| | | <div class="playBox" |
| | | v-bind:class="{disabledPointer:articelMeta.videoUrlList==null||articelMeta.videoUrlList==0}"> |
| | | <videoPlayBox ref="videoPlayBox" :showTar="true"></videoPlayBox> |
| | | </div> |
| | | <div class="introduceSamll" v-if="articelMeta.videoUrlList==null||articelMeta.videoUrlList==0"> |
| | | <p>该视频资源仍未上传</p> |
| | | </div> |
| | | <div class="introduce"> |
| | | <pre style="white-space: pre-line;padding: 10px;max-width: 100%;"> |
| | | {{introduce}} |
| | | </pre> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <div class="introduce" v-else-if="articleFileType==fileType.fileTypePictures_5"> |
| | | <div class="markdown-body articleTitle"> |
| | | <h4>{{articelMeta.title}}</h4> |
| | | </div> |
| | | <div class="myPicture" @click="showPicture(articelMeta.pictureUrlList)"> |
| | | |
| | | <div> |
| | | <div class="introduceSamll" |
| | | v-if="articelMeta.pictureUrlList==null ||articelMeta.pictureUrlList.length==0"> |
| | | <p>空荡荡的..好像忘记传图了</p> |
| | | </div> |
| | | <div class="myPicture" @click="showPicture(articelMeta.pictureUrlList)" v-else> |
| | | <div> |
| | | <img :src="articelMeta.pictureUrlList[0]" :key="articelMeta.id" alt="" loading="lazy" |
| | | :onerror="img404"> |
| | | </div> |
| | | <div style="text-align: center;">图组数量:{{articelMeta.pictureUrlList.length}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="introduce"> |
| | | <pre style="white-space: pre-line;padding: 10px;max-width: 100%;"> |
| | |
| | | <div class="articleTitle"> |
| | | <h4>{{articelMeta.title}}</h4> |
| | | </div> |
| | | <vue-markdown :source="source"></vue-markdown> |
| | | <vue-markdown :source="source" v-if="source.length>0"></vue-markdown> |
| | | |
| | | <div class="introduceSamll" v-else-if="introduce.length==0"> |
| | | <p>空荡荡的..我好像忘记写点什么了OωO</p> |
| | | </div> |
| | | |
| | | <div class="introduce" v-else> |
| | | <pre style="white-space: pre-line;padding: 10px;max-width: 100%;"> |
| | | {{introduce}} |
| | | </pre> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | disabled: false |
| | | }, |
| | | videoData: { |
| | | img: "http://t.inleft.com/share/media_photo/idea_beijing.jpg", |
| | | pic: "", |
| | | url: "", |
| | | type: "normal", |
| | | title: "", |
| | |
| | | this.articleId = this.$route.query.id; |
| | | this.articleFileType = this.$route.query.articleFileType; |
| | | this.typeId = this.$route.query.typeId; |
| | | |
| | | |
| | | }, |
| | | watch: { |
| | | '$route'(to, from) { |
| | |
| | | if (res.data.coverFileURL != null && res.data.coverFileURL != '') { |
| | | this.coverURL = res.data.coverFileURL; |
| | | } else { |
| | | this.coverURL = "http://t.inleft.com/share/media_photo/background.jpg"; |
| | | this.coverURL = myConstant.defaultBG; |
| | | } |
| | | |
| | | this.articelMeta = res.data; |
| | |
| | | } else { |
| | | 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 (this.lastArticleId != this.articleId) { |
| | | console.log(111); |
| | | let tempParam = JSON.parse(JSON.stringify(this.videoData)) |
| | | |
| | | _this.$nextTick(function() { |
| | |
| | | <style lang="less"> |
| | | @import '../../assets/md.less'; |
| | | |
| | | .disabledPointer { |
| | | position: relative; |
| | | pointer-events: none; |
| | | filter: blur(0.9px) brightness(.8); |
| | | } |
| | | |
| | | .disabledPointer:before { |
| | | content: "\ec2a"; |
| | | z-index: 2; |
| | | font-size: 4rem; |
| | | font-family: 'iconfont'; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | } |
| | | |
| | | .articleTitle { |
| | | h4 { |
| | | margin: 0px 0px 20px 0px; |
| | | margin: 0px 0px 10px 0px; |
| | | -webkit-line-clamp: 1; |
| | | } |
| | | |
| | | text-align: center; |
| | | width: 100%; |
| | | |
| | | } |
| | | |
| | | .myPicture { |
| | | display: grid; |
| | | width: 50%; |
| | | max-width: 70%; |
| | | margin: 0px auto; |
| | | padding: 20px 0px 0px 0px; |
| | | |
| | | img { |