From 0002cb9e21a7fc61eefe9f660f06cab24a3473e1 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 15 Jun 2022 11:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=98=AF=E6=9D=83=E9=87=8D=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/product/add.js | 1 - src/pages/plan/product/add.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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}