inleft
2022-08-25 a23166e4fac771238a90ae5ddc5b1e53a1c7afb8
src/components/mini/mdDetail.vue
@@ -47,26 +47,38 @@
            <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>
                  <img :src="articelMeta.pictureUrlList[0]" :key="articelMeta.id" alt="" loading="lazy"
                     :onerror="img404">
            <div>
               <div class="introduceSamll"
                  v-if="articelMeta.pictureUrlList==null ||articelMeta.pictureUrlList.length==0">
                  <p>空荡荡的..好像忘记传图了</p>
               </div>
               <div style="text-align: center;">图组数量:{{articelMeta.pictureUrlList.length}}</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%;">
@@ -79,7 +91,17 @@
            <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>
@@ -109,7 +131,7 @@
      <div class="jumpURL" v-if="articelMeta.jumpURL">
         外链:<a target="_blank" :href="articelMeta.jumpURL" :title="articelMeta.jumpURL">{{articelMeta.jumpURL}}</a>
      </div>
      <div class="articleInfoMiniData">
         <div class="myTitleDeal">
@@ -198,7 +220,7 @@
               disabled: false
            },
            videoData: {
               img: "http://t.inleft.com/share/media_photo/idea_beijing.jpg",
               pic: "",
               url: "",
               type: "normal",
               title: "",
@@ -213,8 +235,6 @@
         this.articleId = this.$route.query.id;
         this.articleFileType = this.$route.query.articleFileType;
         this.typeId = this.$route.query.typeId;
      },
      watch: {
         '$route'(to, from) {
@@ -287,7 +307,7 @@
               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;
@@ -312,12 +332,11 @@
                  } 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() {
@@ -356,20 +375,36 @@
<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 {