DESKTOP-CVS3R96\我恁爹
2022-11-11 9ca581cca97e9ba95ff808f6b7a08c24a4758dbf
src/page/login/register.vue
@@ -30,17 +30,17 @@
          <div class="user_name">
            <input type="text" placeholder="机构代码" v-model="userName" />
          </div> -->
          <el-input :placeholder="placeholder" :size="medium" v-model="phone" clearable @input="handleInput()">
          <el-input :placeholder="placeholder" size="medium" v-model="phone" clearable @input="handleInput()">
          </el-input>
          <!-- <el-input style="margin-top: 0.46rem;" :placeholder="verification" :size="medium" v-model="code" clearable>
          </el-input> -->
          <el-input style="margin-top: 0.46rem;" show-password placeholder="密码为6~12位数字、字母或符号" :size="medium"
          <el-input style="margin-top: 0.46rem;" show-password placeholder="密码为6~12位数字、字母或符号" size="medium"
            v-model="userPassword" @input="handleInput()">
          </el-input>
          <el-input style="margin-top: 0.46rem;" show-password placeholder="请再次确认密码" :size="medium" v-model="rePassword"
          <el-input style="margin-top: 0.46rem;" show-password placeholder="请再次确认密码" size="medium" v-model="rePassword"
            @input="handleInput()">
          </el-input>
          <el-input style="margin-top: 0.46rem;" placeholder="邀请码" :size="medium" v-model="userName" clearable
          <el-input style="margin-top: 0.46rem;" placeholder="邀请码" size="medium" v-model="userName" clearable
            @input="handleInput()">
          </el-input>
        </div>
@@ -187,7 +187,6 @@
              setTimeout(() => {
                this.alertShow = false
                this.elType = "warning"
              }, 2000)
            }
          } else {
@@ -279,16 +278,16 @@
          }
          let data = await api.register(opts)
          if (data.status === 0) {
            this.texts = "注册成功,请登录"
            this.elType = "success"
            this.alertShow = true
            setTimeout(() => {
              this.$router.push('/login')
              this.alertShow = false
              this.elType = "warning"
            }, 2000)
            }, 1000)
            this.loginBtn = false;
            this.$router.push('/login')
          } else {
            this.texts = data.msg
            this.alertShow = true