限制电话单位

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