移动端V1.0

This commit is contained in:
2025-07-16 15:34:34 +08:00
commit 194b0750fd
1083 changed files with 178295 additions and 0 deletions

16
utils/limitInput.js Normal file
View File

@@ -0,0 +1,16 @@
export function limitInput(value,max) {
if (value > max) {
uni.showToast({
title: "只能输入0~" + max + "的数值",
icon: "none"
})
return max;
} else if (value < 0) {
uni.showToast({
title: "只能输入0~" + max + "的数值",
icon: "none"
})
return 0;
}
return value;
}