You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
5.3 KiB
2 lines
5.3 KiB
3 weeks ago
|
"use strict";(self["webpackChunkshiweisuzhou"]=self["webpackChunkshiweisuzhou"]||[]).push([[632],{2632:function(e,t,s){s.r(t),s.d(t,{default:function(){return c}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"register-page"},[e._m(0),t("div",{staticClass:"form-container"},[t("h2",{staticClass:"form-title"},[e._v("注册页")]),t("el-form",{ref:"registerForm",staticClass:"register-form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码",clearable:"","prefix-icon":"el-icon-phone"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{label:"手机验证码",prop:"code"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入验证码",clearable:"","prefix-icon":"el-icon-message"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),t("el-button",{staticClass:"code-btn",attrs:{type:"success",disabled:e.codeBtnDisabled},on:{click:e.handleGetCode}},[e._v(" "+e._s(e.codeBtnText)+" ")])],1),t("el-form-item",{attrs:{label:"用户名",prop:"username"}},[t("el-input",{attrs:{placeholder:"账户唯一识别,可用来登录",clearable:"","prefix-icon":"el-icon-user"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}}),t("div",{staticClass:"form-tip"},[e._v(" 请输入4-32位字符,只能包含英文字母、数字和下划线,不能为纯数字/不能为纯下划线 ")])],1),t("el-form-item",{attrs:{label:"设重密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"请设置登录密码",clearable:"","prefix-icon":"el-icon-lock"},on:{input:e.handlePasswordInput},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),t("div",{staticClass:"form-tip"},[e._v(" 请输入8-30位密码,密码必须同时包含字母和数字 ")])],1),t("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[t("el-input",{attrs:{type:"password",placeholder:"请再次输入登录密码",clearable:"","prefix-icon":"el-icon-lock"},model:{value:e.form.confirmPassword,callback:function(t){e.$set(e.form,"confirmPassword",t)},expression:"form.confirmPassword"}}),t("div",{staticClass:"form-tip"},[e._v("请与上方填写的密码保持一致")])],1),t("el-form-item",[t("el-checkbox",{staticClass:"agreement-checkbox",model:{value:e.agreement,callback:function(t){e.agreement=t},expression:"agreement"}},[e._v(" 我已阅读并同意 "),t("router-link",{staticClass:"protocol-link",attrs:{to:"javascript:;"}},[e._v("《用户注册协议》")]),e._v(" 《"),t("router-link",{staticClass:"protocol-link",attrs:{to:"javascript:;"}},[e._v("隐私协议")]),e._v("》 ")],1)],1),t("el-form-item",[t("el-button",{staticClass:"register-btn",attrs:{type:"primary",disabled:!e.agreement||e.submitting},on:{click:e.handleRegister}},[e._v(" "+e._s(e.submitting?"注册中...":"立即注册")+" ")])],1),e._e()],1)],1)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"header"},[t("div",{staticClass:"logo-area"},[t("img",{staticClass:"logo-img",attrs:{src:s(3153),alt:"logo"}}),t("span",{staticClass:"domain"},[e._v("yunming.com")])]),t("div",{staticClass:"hotline"},[e._v("400-123-4xxx")])])}],o={name:"RegisterPage",data(){const e=(e,t,s)=>{/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,30}$/.test(t)?s():s(new Error("请输入8-30位密码,必须同时包含字母和数字"))},t=(e,t,s)=>{/^(?!_+$)(?!\d+$)[a-zA-Z0-9_]{4,32}$/.test(t)?s():s(new Error("请输入4-32位字符,只能包含字母、数字和下划线,不能为纯数字/纯下划线"))};return{form:{phone:"",code:"",username:"",password:"",confirmPassword:""},rules:{phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{pattern:/^1\d{10}$/,message:"请输入正确的手机号码格式",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"},{p
|
||
|
//# sourceMappingURL=632.bc245760.js.map
|