ZZJ
2021-11-12 2ff4a572df6b098779bc592a0c6e0a90e1b79b2e
src/pages/settings/index/index.vue
@@ -16,7 +16,12 @@
    <div class="container-center" v-if="activeIndex == 0">
      <div class="account-left" v-if="activeIndex == 0">
        <div class="account-list">
        <div class="account-list"
        :class="{'account-list-scroll'
        :account_list_scroll}"
        @mouseenter="account_list_scroll = true"
        @mouseleave="account_list_scroll = false"
        >
          <div
            class="account-card"
            :class="activeAccountIndex == index ? 'account-card-active' : ''"
@@ -602,7 +607,7 @@
      ref="view_6"
    ></deviceInfo>
  </div>
  <div class="welcome-page" v-else ref="curPage">
  <div class="welcome-page" v-else ref="curPage" @mouseup="mouseDownIndex = ''">
    <div
      class="search-box"
      :class="showRecomand ? 'border-change' : ''"
@@ -639,6 +644,8 @@
      <div
        class="nav-child"
        @click="openWelcome(i)"
        @mousedown="mouseDownIndex = i"
        :class="mouseDownIndex === i? 'nav-child-active':''"
        v-for="(item, i) in menuArr"
        :key="i"
      >
@@ -833,6 +840,7 @@
      inputHour: "",
      inputMin: "",
      inputSec: "",
      mouseDownIndex:'',
      inputYrs: "",
      showInputNickName: false,
      inputMonth: "",
@@ -878,6 +886,7 @@
        ],
        confirmPassword: [{ validator: v4, trigger: "blur" }],
      },
      account_list_scroll: false
    };
  },
  created(){
@@ -894,6 +903,11 @@
    // }
  },
  mounted() {
    window.addEventListener("message",(e)=>{
     if(e.data.msg === '返回系统设置') {
     this.showWelcome = true
       }
     })
    const menu = getUrlKey("menu");
    if (menu) {
      this.showWelcome = false;
@@ -1544,7 +1558,7 @@
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  .border-change {
    border-radius: 20px !important;
    border-radius: 15px !important;
  }
  .search-box {
    width: 332px;
@@ -1552,12 +1566,15 @@
    position: fixed;
    left: calc(50% - 166px);
    top: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--colorCard);
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    border-radius: 40px;
    .search-res {
      background-color: rgba(255,255,255,.5);
    }
    .search-input {
      font-size: 14px;
      .el-input--mini .el-input__inner {
@@ -1585,6 +1602,30 @@
        transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
        width: 100%;
        font-weight: bold;
        &::-webkit-input-placeholder { /* WebKit browsers */
        color: #828282;
        font-weight: normal;
        font-size: 14px;
        }
        &:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        color: #828282;
        font-weight: normal;
        font-size: 14px;
        }
        &::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: #828282;
        font-weight: normal;
        font-size: 14px;
        }
        &:-ms-input-placeholder { /* Internet Explorer 10+ */
        color: #828282;
        font-weight: normal;
        font-size: 14px;
      }
      }
      .el-input__suffix {
        display: flex;
@@ -1613,7 +1654,7 @@
        text-align: left;
        box-sizing: border-box;
        padding: 0 20px;
        color: #333333;
        color: #4F4F4F;
        font-size: 14px;
        cursor: pointer;
      }
@@ -1623,7 +1664,7 @@
        text-align: left;
        box-sizing: border-box;
        padding: 0 20px;
        color: #333333;
        color: #4F4F4F;
        font-size: 14px;
      }
      .res-bar:hover {
@@ -1634,6 +1675,8 @@
    }
  }
  .nav-items {
    max-width: 960px;
    margin: 0 auto;
    .nav-child {
      box-sizing: border-box;
      background-color: rgba(251, 251, 255, 0.1);
@@ -1648,6 +1691,15 @@
      justify-content: center;
      align-items: center;
      cursor: pointer;
      border: 2px solid #F2F2F7;
      &-active {
        border: 2px solid #4E94FF;
      }
      &:hover {
        background: #F2F2F7;
      }
      .child-info {
        display: flex;
@@ -1659,14 +1711,14 @@
        img {
          width: 64px;
          margin: 0 auto;
          margin-top: 65px;
          margin-top: 61px;
          height: 50px;
        }
        .welcome-title {
          font-size: 16px;
          font-weight: bold;
          margin-top: 24px;
          color: #333333;
          color: #4F4F4F;
        }
      }
    }
@@ -1681,7 +1733,9 @@
  flex-basis: auto;
  box-sizing: border-box;
  background-color: #fff;
  border-top: 1px solid #e1e0e6;
  color: #4F4F4F;
  border-top: 2px solid #E1E0E6;
  overflow-x: hidden;
  .container-left {
    height: 100%;
    width: 244px;
@@ -1694,22 +1748,22 @@
      height: 56px;
      cursor: pointer;
      border-radius: 8px;
      margin-bottom: 10px;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      padding: 0 20px;
      .card-text {
        margin-left: 20px;
        color: #333333;
        color: #4F4F4F;
        font-weight: bold;
        font-size: 16px;
        line-height: 22px;
        height: 22px;
      }
      img {
        height: 40px;
        width: 40px;
        height: 30px;
        width: 30px;
      }
      .w {
        display: none;
@@ -1740,15 +1794,29 @@
    overflow: auto;
    flex-shrink: 0;
    padding: 10px;
    border-right: 4px solid #f2f2f7;
    padding-top: 6px;
    padding-right: 5px;
    border-top: 4px solid #f2f2f7;
    border-left: 4px solid #f2f2f7;
    box-sizing: border-box;
    background-color: #fbfaff;
    border-left: 4px solid #f2f2f7;
    .account-left {
      height: 100%;
      .account-list {
        height: calc(85%);
        overflow: auto;
        padding-right: 5px;
       &::-webkit-scrollbar-track, &::-webkit-scrollbar-thumb { visibility: hidden; }
       &::-webkit-scrollbar {
         background-color: #fff;
       }
        &.account-list-scroll::-webkit-scrollbar-thumb, &.account-list-scroll::-webkit-scrollbar-track {
          visibility: visible;
        }
        &.account-list-scroll::-webkit-scrollbar {
        background-color: #f5f5f5;
       }
      }
      .add-account {
        color: var(--colorCard);
@@ -1785,7 +1853,7 @@
          height: 19.21px;
          background: #ffffff;
          border-radius: 20px;
          color: #333333;
          color: #4F4F4F;
          transform: scale(0.833333);
          line-height: 22.21px;
          span {
@@ -1813,6 +1881,8 @@
    position: relative;
    padding: 30px 40px;
    background: #f2f2f7;
    border-left: 4px solid #f2f2f7;
    border-top: 4px solid #f2f2f7;
    .account-right {
      height: 100%;
      .account-content {
@@ -1870,7 +1940,7 @@
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #333333;
            color: #4F4F4F;
            min-width: 200px;
            .user-name {
              margin-bottom: 10px;
@@ -1976,7 +2046,7 @@
          font-weight: bold;
          font-size: 16px;
          line-height: 22px;
          color: #333333;
          color: #4F4F4F;
          margin-bottom: 40px;
          height: 28px;
          display: flex;
@@ -1996,7 +2066,7 @@
          border-radius: 8px;
          padding: 0 15px 0 20px;
          .el-select-dropdown__item {
            color: #333333;
            color: #4F4F4F;
            height: 32px;
            font-size: 12px;
            line-height: 32px;
@@ -2041,7 +2111,7 @@
            width: 100%;
          }
          .el-select .el-input .el-select__caret {
            color: #333333;
            color: #4F4F4F;
            font-size: 14px;
            font-weight: 600;
          }
@@ -2065,7 +2135,7 @@
          font-size: 15px;
        }
        .el-input__clear {
          color: #333333;
          color: #4F4F4F;
          font-size: 16px;
          line-height: 48px;
        }
@@ -2084,7 +2154,7 @@
          line-height: 48px;
          font-size: 16px;
          font-weight: 600;
          color: #333333;
          color: #4F4F4F;
          height: 48px;
          background: #fbfaff;
          border-bottom: 2px solid #f2f2f7;
@@ -2206,7 +2276,7 @@
            border-radius: 8px;
            padding: 0 15px 0 20px;
            .el-select-dropdown__item {
              color: #333333;
              color: #4F4F4F;
              height: 32px;
              font-size: 12px;
              line-height: 32px;
@@ -2258,7 +2328,7 @@
              width: 100%;
            }
            .el-select .el-input .el-select__caret {
              color: #333333;
              color: #4F4F4F;
              font-size: 14px;
              font-weight: 600;
            }
@@ -2269,7 +2339,7 @@
    .datetime-right {
      .datetime-left {
        .device-time {
          color: #333333;
          color: #4F4F4F;
          .title {
            display: flex;
            justify-content: center;
@@ -2589,8 +2659,6 @@
    background: #fbfaff;
    padding: 0;
  }
}
.del-account-message-box {
}
</style>