From b13a2814ceeb955961993fb4c1ca7a23bd975fcc Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 15 Jun 2022 10:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E3=80=90=E8=90=A5?= =?UTF-8?q?=E9=94=80=E8=AE=A1=E5=88=92=E3=80=91=E6=96=B0=E5=A2=9E=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E5=95=86=E5=93=81=EF=BC=8C=E6=9D=83=E9=87=8D=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=B8=BA0=EF=BC=8C=E6=9C=AA=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=9D=83=E9=87=8D=EF=BC=8C=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=89=8D=E7=AB=AF=E6=8F=90=E7=A4=BA=E2=80=9C?= =?UTF-8?q?=E8=AF=B7=E8=BE=93=E5=85=A5=E6=9D=83=E9=87=8D=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/product/add.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}