feat:增加校验
This commit is contained in:
parent
bb471250d8
commit
f6bba9e78d
|
@ -126,6 +126,7 @@
|
|||
"scope.userInfo": true,
|
||||
"scope.snsapi_base": true
|
||||
},
|
||||
"pageOrientation": "auto",
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "智能回收",
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
:customStyle="{}"
|
||||
border="none"
|
||||
:disabled="item.disabled"
|
||||
:type="['contactInfo', 'recyclingWeight'].indexOf(item.key) > -1 ? 'number' : 'text'"
|
||||
>
|
||||
<template #suffix>
|
||||
<text v-if="item.unit">
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
:customStyle="{}"
|
||||
border="none"
|
||||
:disabled="item.disabled"
|
||||
:type="['contactInfo'].indexOf(item.key) > -1 ? 'number' : 'text'"
|
||||
>
|
||||
<template #suffix>
|
||||
<text v-if="item.unit">
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
:customStyle="{}"
|
||||
border="none"
|
||||
:disabled="item.disabled"
|
||||
:type="['contactPhone'].indexOf(item.key) > -1 ? 'number' : 'text'"
|
||||
>
|
||||
<template #suffix>
|
||||
<text v-if="item.unit">
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
:customStyle="{}"
|
||||
border="none"
|
||||
:disabled="item.disabled"
|
||||
:type="['contactInfo', 'curbWeight'].indexOf(item.key) > -1 ? 'number' : 'text'"
|
||||
>
|
||||
<template #suffix>
|
||||
<text v-if="item.unit">
|
||||
|
@ -105,6 +106,7 @@ import { url } from "@/utils/data";
|
|||
import { PictureApi, VehicleApi, UserApi } from "@/services";
|
||||
import pinia from "@/store";
|
||||
import { useMemberStore } from "@/store/index";
|
||||
import valid from "@/utils/validate";
|
||||
const store = useMemberStore(pinia);
|
||||
const model1 = reactive<any>({
|
||||
formData: {},
|
||||
|
@ -280,6 +282,7 @@ const contrlModalParams = reactive<any>({
|
|||
},
|
||||
});
|
||||
|
||||
|
||||
const handleSelect = (key: string, v: any) => {
|
||||
contrlModalParams[key].isShow = false;
|
||||
if (key === "vehicleType") {
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
:customStyle="{}"
|
||||
border="none"
|
||||
:disabled="item.disabled"
|
||||
:type="['contactInfo'].indexOf(item.key) > -1 ? 'number' : 'text'"
|
||||
>
|
||||
<template #suffix>
|
||||
<text v-if="item.unit">
|
||||
|
|
Loading…
Reference in New Issue