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,7 +886,14 @@
        ],
        confirmPassword: [{ validator: v4, trigger: "blur" }],
      },
      account_list_scroll: false
    };
  },
  created(){
  let color = localStorage.getItem('--colorCard')
    if(color) {
      document.documentElement.style.setProperty('--colorCard',`${color}`)
    }
  },
  beforeDestroy() {
    clearTimeout(this.clockTimer);
@@ -888,6 +903,11 @@
    // }
  },
  mounted() {
    window.addEventListener("message",(e)=>{
     if(e.data.msg === '返回系统设置') {
     this.showWelcome = true
       }
     })
    const menu = getUrlKey("menu");
    if (menu) {
      this.showWelcome = false;
@@ -1538,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;
@@ -1546,12 +1566,15 @@
    position: fixed;
    left: calc(50% - 166px);
    top: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #4e94ff;
    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 {
@@ -1579,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;
@@ -1607,7 +1654,7 @@
        text-align: left;
        box-sizing: border-box;
        padding: 0 20px;
        color: #333333;
        color: #4F4F4F;
        font-size: 14px;
        cursor: pointer;
      }
@@ -1617,17 +1664,19 @@
        text-align: left;
        box-sizing: border-box;
        padding: 0 20px;
        color: #333333;
        color: #4F4F4F;
        font-size: 14px;
      }
      .res-bar:hover {
        background: #f5f5f6 10%;
        font-weight: bold;
        color: #4e94ff;
        color: var(--colorCard);
      }
    }
  }
  .nav-items {
    max-width: 960px;
    margin: 0 auto;
    .nav-child {
      box-sizing: border-box;
      background-color: rgba(251, 251, 255, 0.1);
@@ -1642,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;
@@ -1653,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;
        }
      }
    }
@@ -1675,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;
@@ -1688,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;
@@ -1713,7 +1773,7 @@
      }
    }
    .left-card-active {
      background-color: #4e94ff !important;
      background-color: var(--colorCard) !important;
      .card-text {
        color: #fff !important;
      }
@@ -1734,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);
@@ -1779,7 +1853,7 @@
          height: 19.21px;
          background: #ffffff;
          border-radius: 20px;
          color: #333333;
          color: #4F4F4F;
          transform: scale(0.833333);
          line-height: 22.21px;
          span {
@@ -1807,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 {
@@ -1864,7 +1940,7 @@
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #333333;
            color: #4F4F4F;
            min-width: 200px;
            .user-name {
              margin-bottom: 10px;
@@ -1892,7 +1968,7 @@
                margin-left: 10px;
              }
              .confirm-icon {
                color: #4e94ff;
                color: var(--colorCard);
                font-size: 18px;
                margin-left: 10px;
              }
@@ -1911,7 +1987,7 @@
                  height: 20px;
                  line-height: 20px;
                  /* border: 1px solid; */
                  border: 1px solid #4e94ff;
                  border: 1px solid var(--colorCard);
                  border-radius: 20px;
                  background: #f2f2f7;
                }
@@ -1939,14 +2015,14 @@
          margin-top: 80px;
          .alt-pw-btn {
            background: rgba(78, 148, 255, 0.1);
            border: 1px solid #4e94ff;
            border: 1px solid var(--colorCard);
          }
          .del-usr-btn {
            background: #e0e0e0;
            color: #fc4958;
          }
          .auth-set-btn {
            background: #4e94ff;
            background: var(--colorCard);
            color: #ffffff;
          }
          .item-btn {
@@ -1970,7 +2046,7 @@
          font-weight: bold;
          font-size: 16px;
          line-height: 22px;
          color: #333333;
          color: #4F4F4F;
          margin-bottom: 40px;
          height: 28px;
          display: flex;
@@ -1990,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;
@@ -2004,7 +2080,7 @@
            .el-select-dropdown__item.hover,
            .el-select-dropdown__item:hover {
              background-color: #f2f2f7;
              color: #4e94ff;
              color: var(--colorCard);
            }
          }
        }
@@ -2024,7 +2100,7 @@
            font-weight: bold;
          }
          .el-input__inner:focus{
            border: 2px solid #4e94ff;
            border: 2px solid var(--colorCard);
          }
          .el-input__inner::placeholder {
            color: #c0c4cc;
@@ -2035,7 +2111,7 @@
            width: 100%;
          }
          .el-select .el-input .el-select__caret {
            color: #333333;
            color: #4F4F4F;
            font-size: 14px;
            font-weight: 600;
          }
@@ -2059,7 +2135,7 @@
          font-size: 15px;
        }
        .el-input__clear {
          color: #333333;
          color: #4F4F4F;
          font-size: 16px;
          line-height: 48px;
        }
@@ -2078,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;
@@ -2109,12 +2185,12 @@
                }
                .el-checkbox__input.is-checked .el-checkbox__inner,
                .el-checkbox__input.is-indeterminate .el-checkbox__inner {
                  background-color: #4e94ff;
                  border-color: #4e94ff;
                  background-color: var(--colorCard);
                  border-color: var(--colorCard);
                }
                .el-checkbox__inner {
                  border-radius: 1px;
                  border: 1px solid #4e94ff;
                  border: 1px solid var(--colorCard);
                }
                .el-tree-node__label {
                  font-size: 13px;
@@ -2122,7 +2198,7 @@
                }
              }
              .el-tree-node__content:hover {
                border: 2px solid #4e94ff;
                border: 2px solid var(--colorCard);
              }
            }
          }
@@ -2174,7 +2250,7 @@
          }
        }
        .upload-jpg-border {
          border: 2px solid #4e94ff;
          border: 2px solid var(--colorCard);
        }
      }
      .add-account-page {
@@ -2200,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;
@@ -2214,7 +2290,7 @@
              .el-select-dropdown__item.hover,
              .el-select-dropdown__item:hover {
                background-color: #f2f2f7;
                color: #4e94ff;
                color: var(--colorCard);
              }
            }
          }
@@ -2241,7 +2317,7 @@
            font-weight: bold;
          }
          .el-input__inner:focus{
            border: 2px solid #4e94ff;
            border: 2px solid var(--colorCard);
          }
            .el-input__inner::placeholder {
              color: #c0c4cc;
@@ -2252,7 +2328,7 @@
              width: 100%;
            }
            .el-select .el-input .el-select__caret {
              color: #333333;
              color: #4F4F4F;
              font-size: 14px;
              font-weight: 600;
            }
@@ -2263,7 +2339,7 @@
    .datetime-right {
      .datetime-left {
        .device-time {
          color: #333333;
          color: #4F4F4F;
          .title {
            display: flex;
            justify-content: center;
@@ -2333,7 +2409,7 @@
              letter-spacing: 0.5px;
            }
            .highlight-radio {
              background: #4e94ff;
              background: var(--colorCard);
              color: #ffffff;
            }
          }
@@ -2486,14 +2562,14 @@
                  background: #f2f2f7;
                }
                .el-input__inner:focus {
                  border: 2px solid #4e94ff;
                  border: 2px solid var(--colorCard);
                }
              }
              .el-button--text {
                margin-left: 42px;
                color: #409eff;
                background: rgba(78, 148, 255, 0.1);
                border: 1px solid #4e94ff;
                border: 1px solid var(--colorCard);
                box-sizing: border-box;
                border-radius: 20px;
                width: 68px;
@@ -2572,7 +2648,7 @@
        height: 40px;
        cursor: pointer;
        border-radius: 25px;
        background-color: #4e94ff;
        background-color: var(--colorCard);
        color: #fff;
        line-height: 40px;
        font-weight: bold;
@@ -2583,8 +2659,6 @@
    background: #fbfaff;
    padding: 0;
  }
}
.del-account-message-box {
}
</style>