diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index 9438e705..f6765ffd 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -120,6 +120,7 @@ getLandingdata(val){ this.setState({activeNavStatus:1}); return; } + if(!this.state.model.middle_image) { Notify.clear(); @@ -127,6 +128,13 @@ getLandingdata(val){ this.setState({activeNavStatus:1}); return; } + if(!this.state.product_list.list) + { + Notify.clear(); + Notify.error("请选择商品列表页样式") + this.setState({activeNavStatus:2}); + return; + } if(!this.state.product_list.top_image) { Notify.clear(); diff --git a/src/pages/exchangepage/main/main.js b/src/pages/exchangepage/main/main.js index 7389ff3c..48349134 100644 --- a/src/pages/exchangepage/main/main.js +++ b/src/pages/exchangepage/main/main.js @@ -122,6 +122,8 @@ export default class acclist extends React.Component { title: "未开始" }, { title: "进行中" + },{ + title: "暂停中" }, { title: "已结束" }], @@ -264,20 +266,21 @@ export default class acclist extends React.Component { let status = null; if( e > 0) { - status = e; + if(e==3){ + status = 5; + }else{ + status = e; + } }else{ status = null } data.status = status this.setState({status:status}) - if(this.state.key_word) - { - data.title = this.state.key_word - - } - this.getTableList(data) + setTimeout(() => { + this.getTableList(data) + }, 10); } onPreview(e,row){ let rowdata={};