🐛 fix: 修复红包祝福语检验问题

This commit is contained in:
wangsongsole 2024-01-19 11:23:05 +08:00
parent b4584cffb4
commit 46bc4d104c
2 changed files with 2 additions and 8 deletions

View File

@ -361,6 +361,7 @@ export default class addKnockGold extends Component {
/* 提交 */
async submit() {
console.log(this.refs.form.validator())
if (
this.refs.form.validator() &&
this.refs.form1.validator() &&
@ -579,9 +580,7 @@ export default class addKnockGold extends Component {
<RadioButton value={2}>账号领取</RadioButton>
</RadioGroup>
</FormItem>
) : (
<></>
)}
) : null}
<FormItem labelname="红包批次号" prop="channel_activity_id" id="batch_number">
<Ipt
disabled={true}

View File

@ -125,11 +125,6 @@ export function additionalRules(params, computeMin, computeMax) {
return false
}
if (!/^\S*$/.test(model.wishing)) {
Notify.error("祝福语中存在空格,请重新输入")
return false
}
if (model.num < model.receive_num) {
Notify.error("用户可领个数不允许大于红包个数")
return false