fix(我的模板):新增优惠券白名单模板,已经上传输入框,保存时仍提示【请上传落地页输入框】

This commit is contained in:
Apple 2022-09-30 15:41:04 +08:00
parent 8827d70b24
commit 4fef6f3c09
1 changed files with 4 additions and 2 deletions

View File

@ -334,8 +334,10 @@ export default class edittemplate extends React.Component {
this.setState({ activeNavStatus: 1 })
return
}
if (!this.state.model.middle_image) {
let iptImg=true;
if(this.state.showType==8) if(!this.state.model.white_image) iptImg=false;
if(this.state.showType!=8) if(!this.state.model.middle_image) iptImg=false;
if(!iptImg){
Notify.clear()
Notify.error('请上传落地页输入框')
this.setState({ activeNavStatus: 1 })