feat(KYC页面): 联系方式限制字数,去除首尾空格
This commit is contained in:
parent
208368ae28
commit
8c39e58c7c
@ -23,6 +23,8 @@
|
|||||||
type="text"
|
type="text"
|
||||||
v-model="applyInfo.contactNumber"
|
v-model="applyInfo.contactNumber"
|
||||||
:placeholder="t('enter_contact_number')"
|
:placeholder="t('enter_contact_number')"
|
||||||
|
maxlength="50"
|
||||||
|
@blur="handleContactNumberInput"
|
||||||
style="width: 100%; border: none; outline: none"
|
style="width: 100%; border: none; outline: none"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -269,19 +271,25 @@ const resImgUrls = ref([]) //用于提交申请的图片数组
|
|||||||
const updateStatus = ref(false) //是否为修改
|
const updateStatus = ref(false) //是否为修改
|
||||||
|
|
||||||
const applyInfo = ref({
|
const applyInfo = ref({
|
||||||
id: '', //提现信息ID
|
id: '', // 提现信息ID
|
||||||
contactNumber: '', //银行卡号
|
contactNumber: '', // 联系方式
|
||||||
category: 'CARD', //类别
|
category: 'CARD', // 类别
|
||||||
otherDescription: '', //其他描述
|
otherDescription: '', // 其他描述
|
||||||
passportFrontUrl: '', //图片
|
passportFrontUrl: '', // 图片
|
||||||
passportBackUrl: 'meaningless',
|
passportBackUrl: 'meaningless',
|
||||||
})
|
})
|
||||||
|
|
||||||
// 是否全填
|
// 是否全填
|
||||||
const checkStatus = computed(() => {
|
const checkStatus = computed(() => {
|
||||||
return applyInfo.value.contactNumber != '' && resImgUrls.value.length > 0
|
const contactNumber = applyInfo.value.contactNumber.trim()
|
||||||
|
return contactNumber.length <= 50 && contactNumber != '' && resImgUrls.value.length > 0
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 处理银行卡号输入,去除首尾空格
|
||||||
|
const handleContactNumberInput = (event) => {
|
||||||
|
applyInfo.value.contactNumber = event.target.value.trim()
|
||||||
|
}
|
||||||
|
|
||||||
// 点击图片选择按钮
|
// 点击图片选择按钮
|
||||||
const onClickImagePicker = async () => {
|
const onClickImagePicker = async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user