fix: 代客下单修复先打折后选会员导致结算价格为负数问题。订单退款增加安全密码校验,代客下单修复选择用户手机号未展示问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user