限制电话单位

This commit is contained in:
Haiyi 2022-09-09 17:48:35 +08:00
parent f6a69a3ea6
commit 0de8f2060b

View File

@ -27,6 +27,7 @@ export default () => {
placeholderFont: '请输入联系方式',
type: 'number',
value: '',
maxLength: 11
},
{
title: '收货地址',
@ -243,6 +244,7 @@ export default () => {
{item.title}<Text style={{ color: 'red' }}>*</Text>
</View>
<Input
maxlength={item.maxLength ? 11 : 100}
onInput={(e) => changeInput(e, item)}
type={item.type}
onClick={() => showModal(item)}