🐛 fix: 修复红包祝福语检验问题
This commit is contained in:
parent
b4584cffb4
commit
46bc4d104c
|
@ -361,6 +361,7 @@ export default class addKnockGold extends Component {
|
||||||
|
|
||||||
/* 提交 */
|
/* 提交 */
|
||||||
async submit() {
|
async submit() {
|
||||||
|
console.log(this.refs.form.validator())
|
||||||
if (
|
if (
|
||||||
this.refs.form.validator() &&
|
this.refs.form.validator() &&
|
||||||
this.refs.form1.validator() &&
|
this.refs.form1.validator() &&
|
||||||
|
@ -579,9 +580,7 @@ export default class addKnockGold extends Component {
|
||||||
<RadioButton value={2}>账号领取</RadioButton>
|
<RadioButton value={2}>账号领取</RadioButton>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
) : (
|
) : null}
|
||||||
<></>
|
|
||||||
)}
|
|
||||||
<FormItem labelname="红包批次号" prop="channel_activity_id" id="batch_number">
|
<FormItem labelname="红包批次号" prop="channel_activity_id" id="batch_number">
|
||||||
<Ipt
|
<Ipt
|
||||||
disabled={true}
|
disabled={true}
|
||||||
|
|
|
@ -125,11 +125,6 @@ export function additionalRules(params, computeMin, computeMax) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!/^\S*$/.test(model.wishing)) {
|
|
||||||
Notify.error("祝福语中存在空格,请重新输入")
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (model.num < model.receive_num) {
|
if (model.num < model.receive_num) {
|
||||||
Notify.error("用户可领个数不允许大于红包个数")
|
Notify.error("用户可领个数不允许大于红包个数")
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue