From 9211041140c8bd41c454964a65bb78a431d127eb Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Wed, 12 Jan 2022 14:06:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E4=BF=AE=E6=94=B9=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangepage/edittemplate/main.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index 994b3a6d..e0955099 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -24,6 +24,7 @@ export default class edittemplate extends React.Component{ activeshow:true,//控制显示 loading_visible:false, detailactiveshow:true, + pagedisable:false, showType:1,//兑换码/白名单/立减金 //落地页 model:{ @@ -105,6 +106,9 @@ getLandingdata(val){ newObj.product_detail=product_detail; this.setState({showType:myInfoData.page}); sessionStorage.setItem('editorConfig',JSON.stringify(newObj)); + if(sessionStorage.getItem('mouldType')==2){ + this.setState({pagedisable:true}); + } } } async onSave(){ @@ -154,7 +158,6 @@ getLandingdata(val){ if(this.state.model.sort){ formdata.sort=this.state.model.sort; } - console.log(this.state.model); if(this.state.model.type_id){ formdata.type_id=this.state.model.type_id.key; } @@ -484,9 +487,9 @@ getLandingdata(val){