<picker bindchange="bindPickerChange"
value="{{clientArray[index].uid}}"
range="{{objectArray}}" range-key="category_name" data-category_id='{{objectArray[index].category_id}}'> <input class="input " value="{{objectArray[index].category_name}} "></input> </picker>
bindPickerChange: function (e) { console.log(e) let category_id = e.currentTarget.dataset.category_id; console.log('picker发送选择改变,携带值为', e.detail.value) this.setData({ category_id: category_id }) },