| | |
| | | <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> |
| | |
| | | setTimeout(() => { |
| | | this.alertShow = false |
| | | this.elType = "warning" |
| | | |
| | | }, 2000) |
| | | } |
| | | } else { |
| | |
| | | } |
| | | 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 |