Commit f6b85435 by 胡悦

xiugai

1 parent a6dde235
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
placeholder="请输入爱车车牌" placeholder="请输入爱车车牌"
:formatter="formatter" :formatter="formatter"
maxlength="8" maxlength="8"
clearable
:rules="[ :rules="[
{ required: true, message: '请输入爱车车牌' }, { required: true, message: '请输入爱车车牌' },
{ validator: isVehicleNumber, message: '请输入正确的车牌' }, { validator: isVehicleNumber, message: '请输入正确的车牌' },
...@@ -24,6 +25,7 @@ ...@@ -24,6 +25,7 @@
name="mobile" name="mobile"
placeholder="请输入手机号码" placeholder="请输入手机号码"
maxlength="11" maxlength="11"
clearable
:rules="[ :rules="[
{ required: true, message: '请输入手机号码' }, { required: true, message: '请输入手机号码' },
{ validator: isTel, message: '请输入正确的手机号' }, { validator: isTel, message: '请输入正确的手机号' },
...@@ -35,6 +37,7 @@ ...@@ -35,6 +37,7 @@
name="captcha" name="captcha"
maxlength="4" maxlength="4"
placeholder="请输入验证码" placeholder="请输入验证码"
clearable
:rules="[{ required: true, message: '请输入验证码' }]" :rules="[{ required: true, message: '请输入验证码' }]"
> >
<template #button> <template #button>
......
...@@ -98,7 +98,7 @@ const getCode = async (value: string) => { ...@@ -98,7 +98,7 @@ const getCode = async (value: string) => {
} }
// 提交注册 // 提交注册
const onRegister = async (values: object) => { const onRegister = async (values: object) => {
const params = { ...values } const params:{cardName?: string, name?: string} = { ...values }
params.cardName = params.name params.cardName = params.name
console.log(params) console.log(params)
const res = await req('scrm.api.renewal.h5.customer.register', params, true) const res = await req('scrm.api.renewal.h5.customer.register', params, true)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!