1234567891011121314151617181920212223242526272829303132 |
- import { VerificationType } from '$utils/verification';
- import {
- LoginType
- } from '../const/loginType';
- export default function(){
- return [
- {
- placeholder:'请输入手机号',
- key:'user_login',
- rules:{
- [VerificationType.empty]:'',
- [VerificationType.mobile]:'手机号格式不正确'
- }
- },
- {
- placeholder:'请输入密码',
- type:'password',
- key:'password',
- rules:'',
- show:LoginType.password
- },
- {
- placeholder:'请输入验证码',
- code:'user_login',
- codeType:'1',
- key:'sms_code',
- assignmentValue:false,
- rules:'',
- show:LoginType.code
- },
- ] as LibDataArray
- }
|