pcvue登陆页面加前端数字验证

这是一个关于在Vue登录页面中实现前端数字验证码的示例。代码包括模板、数据和方法,用于生成和验证四位数字验证码,同时提供了样式设计。当用户输入的验证码与生成的验证码不匹配时,会显示错误提示。
摘要由CSDN通过智能技术生成

<template>
  <div class="login-container">
      <!--<p>首页</p>-->
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-position="left" label-width="0px" class="login-main">
      <h3 class="title">恒蚨建筑后台登录</h3>
      <el-form-item prop="account">
        <el-input type="text" v-model="ruleForm.account" auto-complete="off" placeholder="账号"></el-input>
      </el-form-item>
      <el-form-item prop="password">
        <el-input type="password" v-model="ruleForm.password" auto-complete="off" placeholder="密码" show-password></el-input>
      </el-form-item>
      <!--验证码-->
      <el-form-item prop="VerificationCode" style="width: 245px;display: inline-block;">
        <el-input type="text" v-model="ruleForm.VerificationCode" auto-complete="off" placeholder="验证码"></el-input>
      </el-form-item>
      <div class="ValidCode disabled-select" :style="`width:${width}; height:${height}`" @click="refreshCode" style=

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值