第一天 :springboot+vue3实现《个人小博客》登陆注册功能

html代码:来自login.html
<el-form ref="formRef" :rules="rules" :model="formLabelAlign"  label-width="70px">
            <el-form-item prop="username" label="用户名">
              <el-input
                ref="username"
                prefix-icon="el-icon-user"
                v-model.trim="formLabelAlign.username"
                placeholder="请输入用户名"
                type="text"
                tabindex="1"
                autocomplete="off"
              ></el-input>
            </el-form-item>
            <el-form-item prop="password"  label="密码">
              <el-input
                ref="username"
                prefix-icon="el-icon-lock"
                v-model.trim="formLabelAlign.password"
                placeholder="请输入密码"
                type="text"
                tabindex="1"
                autocomplete="off"
              ></el-input>
            </el-form-item>
            <el-form-item prop="urVerifiCode"  label="验证码" class="itemcode">
			  <el-input
			    ref="username"
			    prefix-icon="el-icon-lock"
			    v-model.trim="formLabelAlign.urVerifiCode"
			    placeholder="验证码"
			    type="text"
			    tabindex="1"
				style="width:100px;height: 40px;border-radius:none"
			    autocomplete="off"
			  ></el-input>
			  <span class="icodes" @click="getIcodes">
			    <!--<img class="img" :src="this.newcodeurl+'busineCommon/users/get/imagecode?uuid='+this.uid" alt="" style="width:120px;height: 40px" />-->
			    <img class="img" :src="imgurl" alt="" style="width:120px;height: 40px" />
			  </span>
			
			</el-form-item>
            <el-form-item>
              <el-button
                type="primary"
                style="width: 100%;"
                @click.native.prevent="submitForm('formLabelAlign')"
                @keyup.enter.native="submitForm('formLabelAlign')"
              >登录</el-button>
            </el-form-item>

            <el-form-item>
              <el-button
                type="danger"
                style="width: 100%;"
                @click="RegIster"
              
              >注册</el-button>
            </el-form-item>
          </el-form>

 

源码获取地址(以上前后端代码已经全部打包好了)

https://gitee.com/xuxiaofei1996/case-source-code.git

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值