|
|
|
@ -47,9 +47,9 @@ Scene({ |
|
|
|
this.setData({ visible: true }) |
|
|
|
}, |
|
|
|
onSelect: function({detail}){ |
|
|
|
this.data.form.categoryId = detail.categoryId |
|
|
|
this.data.form.categoryName = detail.categoryName |
|
|
|
this.setData({ ['form.productName']: detail.categoryName, ['form.categoryName']: detail.categoryName }) |
|
|
|
this.data.form.categoryId = detail.id |
|
|
|
this.data.form.categoryName = detail.name |
|
|
|
this.setData({ ['form.productName']: detail.name, ['form.categoryName']: detail.name }) |
|
|
|
}, |
|
|
|
bindInput: function(e){ |
|
|
|
this.data.form[e.currentTarget.id] = e.detail |
|
|
|
|