From 263d85843b10e41f10fe3a0efbeb80508fa71bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Sun, 28 Nov 2021 16:14:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangepage/edittemplate/main.js | 33 +++++++++++++++------ src/pages/exchangepage/main/main.js | 5 +++- src/pages/plan/list/list.js | 2 +- 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index 9be25499..ab81331f 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -73,7 +73,7 @@ export default class edittemplate extends React.Component{ if(myInfo.href != "") { this.setState({pageInfo:true}) - model.list = myInfo.list + model.list = parseInt(myInfo.list) model.use = myInfo.use model.link = myInfo.link model.edit= myInfo.edit @@ -165,6 +165,16 @@ export default class edittemplate extends React.Component{ } + + + onListChange(e){ + console.log(77788899) + let model = this.state.model; + model.list = e.target.value; + this.setState({model:model}) + } + + onPreview(){ this.setState({previewData:this.state.model}) this.setState({preview_visible:true}) @@ -505,19 +515,19 @@ export default class edittemplate extends React.Component{ }} value={this.state.model.title} placeholder={"请输入"} labelWidth={'0px'} maxLength={12} height={'36px'} width={'250px'} alignment={'left'}/> - +
{this.colorChange(e)}} /> {this.state.model.bg_color}
- +
{this.colorChange1(e)}} /> {this.state.model.button_color}
- + {this.onUploadChange(e)} } onUpload={this.onUpload} - + defaultFileList={ this.state.model.images[0] ? [{'src':this.state.model.images[0]}] : null } onError={this.onUploadError} /> - + {this.onUploadChange1(e)}} + defaultFileList={this.state.model.images[1] ? [{'src':this.state.model.images[1]}] : null} onUpload={this.onUpload1} onError={this.onUploadError} /> - + {this.onUploadChange2(e)} } onUpload={this.onUpload2} onError={this.onUploadError} + defaultFileList={this.state.model.images[2] ? [{'src':this.state.model.images[2]}] : null} /> - + {this.onUploadChange3(e)} } onUpload={this.onUpload3} onError={this.onUploadError} + defaultFileList={this.state.model.thumb ? [{'src':this.state.model.thumb}] : null} /> - + {this.onUploadChange4(e)} } onUpload={this.onUpload4} onError={this.onUploadError} diff --git a/src/pages/exchangepage/main/main.js b/src/pages/exchangepage/main/main.js index 43af0cca..53ea9bc2 100644 --- a/src/pages/exchangepage/main/main.js +++ b/src/pages/exchangepage/main/main.js @@ -259,7 +259,10 @@ export default class acclist extends React.Component { } onPreview(e,row){ - this.setState({preview_url:row.preview_url}) + console.log("预览") + console.log(row) + + this.setState({preview_url:row.href}) this.setState({preview_visible:true}) } closePhone(e){ diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 7978612f..0e32229a 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -24,7 +24,7 @@ export default class acclist extends React.Component{ limit:10, tabList:[{title:"营销计划列表"}], distdata:[{title:'士大夫大师傅'}], - filterList:[{id:0,label:"状态",menuList:[{id:0,name:"创建中"},{id:2,name:"审核中"},{id:4,name:"生效中"},{id:5,name:"暂停中"},{id:1,name:"生成中"},{id:3,name:"待生效"},{id:6,name:"已完结"}]}, + filterList:[{id:0,label:"状态",menuList:[{id:0,name:"创建中"},{id:2,name:"审核中"},{id:4,name:"生效中"},{id:5,name:"暂停中"},{id:3,name:"待生效"},{id:6,name:"已完结"}]}, ], tableHeight:500, menuList:[{id:0,name:"状态",check:false}],