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){