fix: 代客下单修复先打折后选会员导致结算价格为负数问题。订单退款增加安全密码校验,代客下单修复选择用户手机号未展示问题

This commit is contained in:
2025-03-21 16:01:07 +08:00
parent 5891fe6e1f
commit d097d73f12
6 changed files with 409 additions and 92 deletions

View File

@@ -92,6 +92,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
maxLength: {
type: Number,
default: 14,
},
});
const number = defineModel({
@@ -109,6 +113,9 @@ function clearFunction() {
const regex = /^\d+(\.\d{1,2})?$/;
function keyboradAdd(n) {
if (`${number.value}`.length >= props.maxLength) {
return;
}
if (n == "." && `${number.value}`.includes(".")) {
return;
}
@@ -315,7 +322,7 @@ function keyboradConfirm() {
height: 58px;
background: #fff;
border-radius: 4px;
overflow: hidden;
display: flex;
justify-content: center;