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


    <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>
    
    
  • 相关阅读:
    C#如何生成CHM帮助文件
    使用WebBrowser控件播放Flash网页相关问题解决方法
    C# AnimateWindow与WindowState同时使用的效果
    C#读取计算机串口
    C#基础概念二十五个问题
    C# ini 文件读取方法
    JSP读出MYSQL数据库时的乱码问题解决方案
    世界编程大赛头名程序
    比较著名的.net技术论坛网址(含国外的)
    How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6
  • 原文地址:https://www.cnblogs.com/guanhuohuo/p/12526148.html
Copyright © 2020-2023  润新知