From 8f5cb6a122d2024c7ec5cd2b2fce3962da6c6104 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Sat, 8 Jan 2022 18:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exchangepage/edittemplate/detailsPage.js | 2 +- src/pages/exchangepage/edittemplate/main.js | 13 +- src/pages/exchangepage/template/preview.js | 350 +++++------------- src/pages/exchangepage/template/preview.less | 34 +- 4 files changed, 126 insertions(+), 273 deletions(-) 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?