BUG 29703

This commit is contained in:
aixianling
2022-05-20 15:21:26 +08:00
parent 66ce6b1e5a
commit 452cf44ab9

View File

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