diff --git a/src/apps/AppCreditPoints/giveIntegral.vue b/src/apps/AppCreditPoints/giveIntegral.vue index 71c5c744..a39b5041 100644 --- a/src/apps/AppCreditPoints/giveIntegral.vue +++ b/src/apps/AppCreditPoints/giveIntegral.vue @@ -60,6 +60,9 @@ export default { if (isNaN(integral)) { return this.$u.toast("请输入赠送分值") } + if(!/^\d*[.\d]\d?$/.test(integral)){ + return this.$u.toast("请输入整数,最多保留一位小数") + } this.$http.post("/admin/user/giveIntegral", null, { params: {...this.form} }).then(res => {