wxml:
< picker mode = "region" bindchange = "bindRegionChange" value = "{{region}}" custom-item = "{{customItem}}" > < view class = "picker" > {{region[0]}},{{region[1]}},{{region[2]}} </ view > </ picker > |
js:
bindRegionChange: function (e){ this .setData({ region: e.detail.value }) var valueStr = '' ; if (e.detail.value.length >0){ for ( var i=0; i<e.detail.value.length; i++){ valueStr = e.detail.value[i]; if (i==0){ address.province=valueStr; } else if (i==1){ address.city=valueStr; } else if (i == 2) { address.county=valueStr; } } } }, |
但是安卓机测试就没有问题,基础库1.6的
你好,这是一个已知问题,我们会尽快进行修复。