代客下单页面修改,增加店铺配置页面

This commit is contained in:
2025-02-25 13:37:24 +08:00
parent ffcaaf9e41
commit 4eb7744111
22 changed files with 2181 additions and 123 deletions

View File

@@ -93,8 +93,9 @@ const props = defineProps({
},
});
let number = ref(0);
const number = defineModel({
default: 0,
});
watch(
() => props.value,
(newval) => {
@@ -102,12 +103,6 @@ watch(
}
);
const emits = defineEmits(["input", "confirm"]);
watch(
() => number.value,
(newval) => {
emits("input", newval);
}
);
function clearFunction() {
if (props.isFloat) {
@@ -127,6 +122,7 @@ function keyboradAdd(n) {
if (newval * 1 > props.max * 1) {
return ElMessage.error(this.maxTips);
}
console.log(number.value);
number.value = newval;
}
function keyboradReduce() {