<template>
  <div class="club-register">
    <el-form :model="formData" :rules="rules" ref="form" label-width="0">
      <el-form-item prop="mobile">
        <el-input v-model="formData.mobile" placeholder="手机号"></el-input>
      </el-form-item>
      <el-form-item prop="verifyCode">
        <div class="verifyCode flex justify-between">
          <el-input
            v-model="formData.verifyCode"
            placeholder="验证码"
          ></el-input>
          <div class="send ml-8">获取验证码</div>
        </div>
      </el-form-item>
      <el-form-item prop="password">
        <el-input v-model="formData.password" placeholder="密码"></el-input>
      </el-form-item>
      <el-form-item prop="confirmPwd">
        <el-input
          v-model="formData.confirmPwd"
          placeholder="再次输入密码"
        ></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formData: {
        mobile: '',
        verifyCode: '',
        password: '',
        confirmPwd: '',
      },
      rules: {
        mobile: [
          { required: true, message: '手机号不能为空', trigger: ['blur'] },
        ],
      },
    }
  },
}
</script>

<style lang="scss" scoped>
.verifyCode {
  .send {
    cursor: pointer;
    white-space: nowrap;
    @include themify($themes) {
      color: themed('color');
    }
  }
}
</style>
