修正 新建商品是权重验证问题

This commit is contained in:
wangsongsole 2022-06-15 11:19:25 +08:00
parent 60b4288c7d
commit 0002cb9e21
2 changed files with 2 additions and 3 deletions

View File

@ -266,7 +266,6 @@ export default class adduserinfo extends React.Component {
stock: quantity, stock: quantity,
usage: 0, usage: 0,
product_name: cur_product.title, product_name: cur_product.title,
weight: cur_product.weight,
show_url: picItem ? picItem.pic : '', show_url: picItem ? picItem.pic : '',
describe_url: '', describe_url: '',
detail_url: '', detail_url: '',

View File

@ -83,7 +83,7 @@ export default class adduserinfo extends React.Component {
model.quantity = model_temp.quantity model.quantity = model_temp.quantity
model.product_name = model_temp.product_name model.product_name = model_temp.product_name
model.show_url = model_temp.show_url 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.detail_url = model_temp.detail_url
model.account_type = model_temp.account_type model.account_type = model_temp.account_type
let defaultPic = [] let defaultPic = []
@ -511,7 +511,7 @@ export default class adduserinfo extends React.Component {
}} }}
onClearItem={(e) => { onClearItem={(e) => {
let model2 = this.state.model let model2 = this.state.model
model2.weight = '0' model2.weight = ''
this.setState({ model: model2 }) this.setState({ model: model2 })
}} }}
value={this.state.model.weight} value={this.state.model.weight}