diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index f3a8e16e..e1f7d21e 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -334,8 +334,10 @@ export default class edittemplate extends React.Component { this.setState({ activeNavStatus: 1 }) return } - - if (!this.state.model.middle_image) { + let iptImg=true; + if(this.state.showType==8) if(!this.state.model.white_image) iptImg=false; + if(this.state.showType!=8) if(!this.state.model.middle_image) iptImg=false; + if(!iptImg){ Notify.clear() Notify.error('请上传落地页输入框') this.setState({ activeNavStatus: 1 }) diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 30a89abe..af9beefe 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -346,7 +346,7 @@ export default class acclist extends React.Component { let data = {}; data.style = this.state.model.style; data.quantity = this.state.model.quantity; - data.bind_object = this.state.model.bind_object; + data.bind_object = [this.state.model.bind_object]; data.allow_repetition = this.state.model.allow_repetition; data.allow_loss = this.state.model.allow_loss; data.stock = this.state.model.stock; @@ -882,7 +882,7 @@ export default class acclist extends React.Component { batch_name: this.state.model.batch_name, style: this.state.model.style, quantity: this.state.model.quantity, - bind_object: this.state.keyType, + bind_object: [this.state.keyType], allow_repetition: this.state.model.allow_repetition, allow_loss: this.state.model.allow_loss, merge_stock: this.state.model.merge_stock, @@ -930,7 +930,7 @@ export default class acclist extends React.Component { batch_name: this.state.model.batch_name, style: this.state.model.style, quantity: this.state.model.quantity, - bind_object: this.state.keyType, + bind_object: [this.state.keyType], allow_repetition: this.state.model.allow_repetition, allow_loss: this.state.model.allow_loss, merge_stock: this.state.model.merge_stock,