• 快应用图文信息流列表组件


    <template>
      <div class="msgList-wrap">
        <div if="{{type==1}}" class="msgList-content">
          <div class="left-content">
            <text class="title">{{title}}</text>
            <div class="bottom">
              <div class="bottom-left">
                <text class="tips">{{tips}}</text>
                <text class="auxiliary-text-one">{{auxiliaryoneText}}</text>
              </div>
              <text class="bottom-right">{{auxiliarytwoText}}</text>
            </div>
          </div>
          <div class="right-content">
            <img src="{{img}}" alt="">
          </div>
        </div>
        <div if="{{type==2}}" class="msgList-contenttwo">
          <text class="title">{{title}}</text>
          <img class="image" src="{{img}}" alt="">
          <div class="bottom">
            <div class="bottom-left">
              <text class="tips">{{tips}}</text>
              <text class="auxiliary-text-one">{{auxiliaryoneText}}</text>
            </div>
            <text class="bottom-right">{{auxiliarytwoText}}</text>
          </div>
        </div>
        <div if="{{type==3}}" class="msgList-contenttwo">
          <text class="title">{{title}}</text>
          <div class="img-wrap">
            <img class="image" src="{{img}}" alt="">
            <img class="image" src="{{img}}" alt="">
            <img class="image" src="{{img}}" alt="">
          </div>
          <div class="bottom">
            <div class="bottom-left">
              <text class="tips">{{tips}}</text>
              <text class="auxiliary-text-one">{{auxiliaryoneText}}</text>
            </div>
            <text class="bottom-right">{{auxiliarytwoText}}</text>
          </div>
        </div>
        <div if="{{type==4}}" class="msgList-contenttwo">
          <text class="title">{{title}}</text>
          <div class="bottom">
            <div class="bottom-left">
              <text class="tips">{{tips}}</text>
              <text class="auxiliary-text-one">{{auxiliaryoneText}}</text>
            </div>
            <text class="bottom-right">{{auxiliarytwoText}}</text>
          </div>
        </div>
      </div>
    </template>
    <script>
    export default {
      props: {
        type: { type: Number, default: 1 },
        title: { type: String, default: '' },
        tips: { type: String, default: '' },
        auxiliaryoneText: { type: String, default: '' },
        auxiliarytwoText: { type: String, default: '' },
        img: { type: String, default: '' },
      },
      onReady() {
      },
    }
    </script>
    <style lang="less">
    .msgList-wrap {
       100%;
      flex-direction: row;
      .msgList-content {
        border: 1px solid #000000;
        padding: 24px;
         100%;
        display: flex;
        .left-content {
          flex-direction: column;
          flex: 1;
          margin-right: 18px;
          .title {
            line-height: 78px;
            height: 78px;
            lines: 2;
            text-overflow: ellipsis;
            font-size: 32px;
          }
          .bottom {
             100%;
            margin-top: 36px;
            display: flex;
            font-size: 24px;
            .bottom-left {
              flex: 6;
              .tips {
                margin-top: 2px;
                font-size: 22px;
                border: 1px solid #000000;
                opacity: 0.3;
                color: #000;
                border-radius: 6px;
                margin-right: 18px;
                margin-left: 2px;
              }
            }
            .bottom-right {
               190px;
              lines: 1;
              text-overflow: ellipsis;
              text-align: right;
            }
          }
        }
        .right-content {
          image {
             222px;
            height: 158px;
            border-radius: 12px;
          }
        }
      }
      .msgList-contenttwo {
        border: 1px solid #000000;
        padding: 24px;
         100%;
        display: flex;
        flex-direction: column;
        .title {
          lines: 2;
          text-overflow: ellipsis;
          font-size: 32px;
          margin-bottom: 18px;
        }
        .bottom {
           100%;
          margin-top: 36px;
          display: flex;
          font-size: 24px;
          .bottom-left {
            flex: 6;
            .tips {
              padding: 0px 2px;
              margin-top: 2px;
              font-size: 22px;
              border: 1px solid #000000;
              opacity: 0.3;
              color: #000;
              border-radius: 6px;
              margin-right: 18px;
              margin-left: 2px;
            }
          }
          .bottom-right {
             190px;
            lines: 1;
            text-overflow: ellipsis;
            text-align: right;
          }
        }
        .image {
           702px;
          height: 395px;
          border-radius: 12px;
        }
        .img-wrap {
          display: flex;
          justify-content: space-between;
          .image {
            /* flex: 1; */
            flex-direction: row;
             222px;
            height: 158px;
            border-radius: 12px;
          }
        }
      }
    }
    </style>
    
    
  • 相关阅读:
    论文笔记之:Playing for Data: Ground Truth from Computer Games
    【计算机视觉领域】常用的 feature 提取方法,feature 提取工具包
    论文阅读之:Is Faster R-CNN Doing Well for Pedestrian Detection?
    论文笔记之:Generative Adversarial Nets
    如果读取图像的图像出现坏图,无法读取的怎么办?怎么自动跳过坏的图像,而读取下一张?
    (转)A Beginner's Guide To Understanding Convolutional Neural Networks
    (转) Written Memories: Understanding, Deriving and Extending the LSTM
    如果将彩色图像和灰度图像一起放进 CNN 中去,会是什么结果?
    3D CNN for Video Processing
    nodejs(四) --- cluster模块详解
  • 原文地址:https://www.cnblogs.com/guanhuohuo/p/12526148.html
Copyright © 2020-2023  润新知