diff --git a/src/pages/exchangepage/edittemplate/detailsPage.js b/src/pages/exchangepage/edittemplate/detailsPage.js index 7ed60b38..de9e9547 100644 --- a/src/pages/exchangepage/edittemplate/detailsPage.js +++ b/src/pages/exchangepage/edittemplate/detailsPage.js @@ -16,7 +16,7 @@ export default class edittemplate extends React.Component{ model:{ font_color: "", button_color: "", - describe: {type : 1, content: "
xxxxx
",bg_image:''}, + describe: {type : 1, content: " ",bg_image:''}, } } } diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index e61385a1..ee8cfd13 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -29,7 +29,7 @@ export default class edittemplate extends React.Component{ title:"落地页标题", top_image: "", middle_image: "", - describe: {type: 1,content :"",bg_image:''}, + describe: {type:"",content :"",bg_image:''}, bg_color:"", font_color:"", }, @@ -39,12 +39,12 @@ export default class edittemplate extends React.Component{ list: 1, font_color:"", button_color: "", - describe: {type : 1, content : "",bg_image:''}, + describe: {type : "", content : "",bg_image:''}, }, product_detail:{ font_color:'', button_color:'', - describe:{type: 1, content: "",bg_image:''}, + describe:{type: "", content: "",bg_image:''}, }, preview_visible:false, previewData:null, @@ -271,7 +271,7 @@ getLandingdata(val){ } // getlandftcolor(c){ - let landConfig=this.state.landConfigure; + let landConfig=this.state.model; landConfig.font_color=c; this.setState({model:landConfig}); } @@ -294,6 +294,7 @@ getLandingdata(val){ } //获取商品排列方式 getarrayType(c){ + console.log(297,c); let goodsConfig=this.state.product_list; goodsConfig.list=c; this.setState({product_list:goodsConfig}); @@ -338,7 +339,7 @@ getLandingdata(val){ } onPreview(){ - this.setState({previewData:this.state.model}) + this.setState({previewData:this.state}) this.setState({preview_visible:true}) } //获取商品详情数据 @@ -689,7 +690,7 @@ getLandingdata(val){ this.state.activeNavStatus!=2?null:this.state.activeshow&&this.state.product_list.describe.type==2&&this.state.product_list.describe.content?