From 4fef6f3c09f6cec639067ee9b1003b6a74eb7dc7 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Fri, 30 Sep 2022 15:41:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=88=91=E7=9A=84=E6=A8=A1=E6=9D=BF):?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=98=E6=83=A0=E5=88=B8=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95=E6=A8=A1=E6=9D=BF=EF=BC=8C=E5=B7=B2=E7=BB=8F=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E8=BE=93=E5=85=A5=E6=A1=86=EF=BC=8C=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=97=B6=E4=BB=8D=E6=8F=90=E7=A4=BA=E3=80=90=E8=AF=B7=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E8=90=BD=E5=9C=B0=E9=A1=B5=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangepage/edittemplate/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index f3a8e16e..e1f7d21e 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -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 })