ZZJ
2022-04-29 5ee0d36e051d591f930ba93ba660e45f10710c3f
src/views/register/components/BaseInfo.vue
@@ -13,26 +13,24 @@
      </el-form-item>
      <el-form-item prop="password">
        <el-input show-password v-model="user.password" placeholder="密码">
        </el-input>
        <PwInput show-password v-model="user.password" placeholder="密码">
        </PwInput>
      </el-form-item>
      <el-form-item prop="repassword">
        <el-input
          show-password
          v-model="user.repassword"
          placeholder="确认密码"
        >
        </el-input>
        <PwInput show-password v-model="user.repassword" placeholder="确认密码">
        </PwInput>
      </el-form-item>
      <el-form-item prop="phoneNum">
        <div class="phoneNum">
        <div class="phoneNum" :class="{ isFocus: phoneFocus }">
          <el-input
            placeholder="手机号"
            v-model="user.phoneNum"
            class="input-with-select"
            @focus="phoneFocus = true"
            @blur="phoneFocus = false"
          >
            <div slot="prepend" class="teleSlot">+86(中国)</div>
          </el-input>
          <div slot="prepend" class="teleSlot">+86(中国)</div>
        </div>
      </el-form-item>
      <el-form-item prop="verifyCode">
@@ -176,6 +174,7 @@
      isWrong: false,
      countdown: 60,
      gotCode: false,
      phoneFocus: false,
    };
  },
  methods: {
@@ -324,11 +323,22 @@
    &.is-error ::v-deep .el-input__inner:focus {
      border-color: #ff4b33;
    }
    .PwInput {
      ::v-deep .iconfont {
        margin-right: 5px;
        font-size: 18px;
      }
    }
  }
  ::v-deep .el-input__inner {
    padding: 10px 20px;
    border-color: #c0c5cc;
    &:focus {
      border-color: #0065ff;
    }
    &::-webkit-input-placeholder {
      font-size: 14px;
@@ -337,19 +347,13 @@
  }
  .phoneNum {
    ::v-deep .el-input-group__prepend {
      margin: 0 4px;
      padding: 0pt;
      background-color: rgba($color: #fff, $alpha: 0);
      border-right: none;
      border-color: #c0c5cc;
    }
    position: relative;
    ::v-deep .el-input__inner {
      border-left: none;
      padding-left: 120px;
    }
    .teleSlot {
      position: absolute;
      top: 7px;
      width: 103px;
      height: 28px;
      line-height: 28px;