diff --git a/src/pages/exchangecode/product/add.js b/src/pages/exchangecode/product/add.js index a561faf7..37440148 100644 --- a/src/pages/exchangecode/product/add.js +++ b/src/pages/exchangecode/product/add.js @@ -266,7 +266,6 @@ export default class adduserinfo extends React.Component { stock: quantity, usage: 0, product_name: cur_product.title, - weight: cur_product.weight, show_url: picItem ? picItem.pic : '', describe_url: '', detail_url: '', diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index a4679c53..8f710aa0 100644 --- a/src/pages/plan/product/add.js +++ b/src/pages/plan/product/add.js @@ -83,7 +83,7 @@ export default class adduserinfo extends React.Component { model.quantity = model_temp.quantity model.product_name = model_temp.product_name model.show_url = model_temp.show_url - model.weight = model_temp.weight || '0' + model.weight = model_temp.weight model.detail_url = model_temp.detail_url model.account_type = model_temp.account_type let defaultPic = [] @@ -511,7 +511,7 @@ export default class adduserinfo extends React.Component { }} onClearItem={(e) => { let model2 = this.state.model - model2.weight = '0' + model2.weight = '' this.setState({ model: model2 }) }} value={this.state.model.weight}