保存校验手机号位数

This commit is contained in:
wangzimeng 2025-07-21 18:22:55 +08:00
parent 321d6c6c51
commit fbce1a4103

View File

@ -581,6 +581,16 @@
return;
}
}
if (!/^1[3-9]\d{9}$/.test(this.form.invoice_reservation_phone)) {
uni.showToast({
title: '请输入正确的手机号',
icon: 'none',
duration: 2000
})
return;
}
return '';
console.log('submit:', this.order_nos);
//
const cleanOrderNos = this.order_nos.replace(/^"+|"+$/g, '');