|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="register">
|
|
|
|
|
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
|
|
|
|
|
<h3 class="title">海威物联官网</h3>
|
|
|
|
|
<h3 class="title">智慧物联监控平台</h3>
|
|
|
|
|
<el-form-item prop="username">
|
|
|
|
|
<el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号">
|
|
|
|
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
|
|
|
@ -9,33 +9,33 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item prop="password">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="registerForm.password"
|
|
|
|
|
type="password"
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
placeholder="密码"
|
|
|
|
|
@keyup.enter.native="handleRegister"
|
|
|
|
|
v-model="registerForm.password"
|
|
|
|
|
type="password"
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
placeholder="密码"
|
|
|
|
|
@keyup.enter.native="handleRegister"
|
|
|
|
|
>
|
|
|
|
|
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item prop="confirmPassword">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="registerForm.confirmPassword"
|
|
|
|
|
type="password"
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
placeholder="确认密码"
|
|
|
|
|
@keyup.enter.native="handleRegister"
|
|
|
|
|
v-model="registerForm.confirmPassword"
|
|
|
|
|
type="password"
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
placeholder="确认密码"
|
|
|
|
|
@keyup.enter.native="handleRegister"
|
|
|
|
|
>
|
|
|
|
|
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item prop="code" v-if="captchaEnabled">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="registerForm.code"
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
placeholder="验证码"
|
|
|
|
|
style="width: 63%"
|
|
|
|
|
@keyup.enter.native="handleRegister"
|
|
|
|
|
v-model="registerForm.code"
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
placeholder="验证码"
|
|
|
|
|
style="width: 63%"
|
|
|
|
|
@keyup.enter.native="handleRegister"
|
|
|
|
|
>
|
|
|
|
|
<svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
|
|
|
|
|
</el-input>
|
|
|
|
@ -45,11 +45,11 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item style="width:100%;">
|
|
|
|
|
<el-button
|
|
|
|
|
:loading="loading"
|
|
|
|
|
size="medium"
|
|
|
|
|
type="primary"
|
|
|
|
|
style="width:100%;"
|
|
|
|
|
@click.native.prevent="handleRegister"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
size="medium"
|
|
|
|
|
type="primary"
|
|
|
|
|
style="width:100%;"
|
|
|
|
|
@click.native.prevent="handleRegister"
|
|
|
|
|
>
|
|
|
|
|
<span v-if="!loading">注 册</span>
|
|
|
|
|
<span v-else>注 册 中...</span>
|
|
|
|
|