|
@@ -1,55 +1,53 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <el-row style="padding-top: 45px;">
|
|
|
- <el-col :span="11" :offset="1">
|
|
|
- <img class="TT-logo_register" src="../../../../static/img/register/logo_register.png" alt="">
|
|
|
- </el-col>
|
|
|
- <el-col class="TT-main" :span="8" :offset="1">
|
|
|
- <h3 class="title">
|
|
|
- <span>注册</span>
|
|
|
- <span>/Sign up</span>
|
|
|
- </h3>
|
|
|
- <el-form
|
|
|
- :model="dataForm"
|
|
|
- status-icon
|
|
|
- :rules="rules"
|
|
|
- ref="dataForm"
|
|
|
- label-width="0"
|
|
|
- class="demo-ruleForm">
|
|
|
- <el-form-item prop="tel">
|
|
|
- <el-input v-model="dataForm.tel" auto-complete="off" placeholder="请输入手机号"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item prop="captcha">
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :span="17">
|
|
|
- <el-input v-model="dataForm.captcha" placeholder="图形验证码">
|
|
|
- </el-input>
|
|
|
- </el-col>
|
|
|
- <el-col :span="7" class="login-captcha">
|
|
|
- <img :src="captchaPath" @click="getCaptcha()" alt="">
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item prop="smscode" class="code">
|
|
|
- <el-input v-model="dataForm.smscode" placeholder="验证码"></el-input>
|
|
|
- <el-button type="primary" :disabled='isDisabled' @click="sendCode('dataForm')">{{ buttonText }}</el-button>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item prop="pass">
|
|
|
- <el-input type="password" v-model="dataForm.pass" auto-complete="off" placeholder="输入密码"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item prop="checkPass">
|
|
|
- <el-input type="password" v-model="dataForm.checkPass" auto-complete="off" placeholder="确认密码"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="submitForm('dataForm')"
|
|
|
- style="width:100%;background: #332C2B;color: #00EEFF;">注册
|
|
|
- </el-button>
|
|
|
- <p class="login" @click="gotoLogin">已有账号?立即登录</p>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
+ <el-row style="padding-top: 45px;">
|
|
|
+ <el-col :span="11" :offset="1">
|
|
|
+ <img class="TT-logo" src="../../../../static/img/register/logo_register.png" alt="">
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" :offset="1">
|
|
|
+ <h3 class="title">
|
|
|
+ <span>注册</span>
|
|
|
+ <span>/Sign up</span>
|
|
|
+ </h3>
|
|
|
+ <el-form
|
|
|
+ :model="dataForm"
|
|
|
+ status-icon
|
|
|
+ :rules="rules"
|
|
|
+ ref="dataForm"
|
|
|
+ label-width="0"
|
|
|
+ class="demo-ruleForm">
|
|
|
+ <el-form-item prop="tel">
|
|
|
+ <el-input v-model="dataForm.tel" auto-complete="off" placeholder="请输入手机号"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="captcha">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="17">
|
|
|
+ <el-input v-model="dataForm.captcha" placeholder="图形验证码">
|
|
|
+ </el-input>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="7" class="login-captcha">
|
|
|
+ <img :src="captchaPath" @click="getCaptcha()" alt="">
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="smscode" class="code">
|
|
|
+ <el-input v-model="dataForm.smscode" placeholder="验证码"></el-input>
|
|
|
+ <el-button type="primary" :disabled='isDisabled' @click="sendCode('dataForm')">{{ buttonText }}</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="pass">
|
|
|
+ <el-input type="password" v-model="dataForm.pass" auto-complete="off" placeholder="输入密码"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="checkPass">
|
|
|
+ <el-input type="password" v-model="dataForm.checkPass" auto-complete="off" placeholder="确认密码"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="submitForm('dataForm')"
|
|
|
+ style="width:100%;background: #332C2B;color: #00EEFF;border: none;">注册
|
|
|
+ </el-button>
|
|
|
+ <p class="login" @click="gotoLogin">已有账号?立即登录</p>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { isMobile, isSmscode } from '@/utils/validate'
|
|
@@ -225,7 +223,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.TT-logo_register {
|
|
|
+.TT-logo {
|
|
|
display: block;
|
|
|
width: 508px;
|
|
|
height: 399px;
|
|
@@ -293,6 +291,7 @@ export default {
|
|
|
text-align: center;
|
|
|
background: #332C2B;
|
|
|
color: #00EEFF;
|
|
|
+ border: none;
|
|
|
|
|
|
&.el-button--primary:focus {
|
|
|
background: #332C2B;
|