diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index fedbc075..a4679c53 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 + model.weight = model_temp.weight || '0' model.detail_url = model_temp.detail_url model.account_type = model_temp.account_type let defaultPic = [] @@ -251,7 +251,6 @@ export default class adduserinfo extends React.Component { model2.cost_price = cur_product.cost_price model2.quantity = this.state.model.quantity model2.product_name = cur_product.title - model2.weight = cur_product.weight model2.account_type = cur_product.account_type model2.show_url = picItem ? picItem.pic : '' model2.describe_url = '' @@ -512,7 +511,7 @@ export default class adduserinfo extends React.Component { }} onClearItem={(e) => { let model2 = this.state.model - model2.weight = '' + model2.weight = '0' this.setState({ model: model2 }) }} value={this.state.model.weight}