serviceList.vue 1.64 KB
<template>
  <div>
    <ul class="serviceList">
      <li>
        <div class="serviceListTitle">
          <span class="serviceListName">阳光保险</span>
          <span>95510</span>
        </div>

        <div class="serviceListCon">
          <div>1</div>
          <div>
            <p>阳光保险于2005年7月成立,阳光保险于2005年7月成立,阳光保险于2005年7月成立,阳光保险于2005年7月成立,</p>
            <span class="consultBtn">
              咨询
            </span>

          </div>
          <div class="serviceListArrow">
            >
          </div>
        </div>

      </li>
      <li>
        1
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "serviceList"
};
</script>

<style scoped lang="scss">
  .serviceList {
    padding: 10px;
    > li {
      padding: 10px;
      margin-bottom: 10px;
      background-color: #fff;
      border-radius: 4px;
    }
  }

  .serviceListTitle {
    display: flex;
    justify-content: space-between;
  }

  .serviceListName {
    font-size: 16px;
    color: #000;
    font-weight: 600;
  }

  .serviceListCon{
    display: flex;
    margin-top: 10px;
    >div:nth-of-type(2){
      flex: 1;
      padding: 0 10px;
      overflow: hidden;
      p{
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
  }
  .consultBtn{
    display: inline-block;
    padding: 3px  30px;
    margin: 5px 0;
    background-color: #1AAD19;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
  }
  .serviceListArrow{
    font-size: 18px;
    line-height: 56px;
    font-weight: 600;
  }
</style>