picker-view能否设置每个项目是否可选,如果不可选择,则跳转到可选择的项目:
<picker-view indicator-style="height:40px" style="width:100%;height:200px" value="{{pickerViewValue}}" bindchange="selectBookTime">
<picker-view-column>
<view wx:for="{{bookDateArr}}" class="pickerView {{index == 2 ? 'pickerViewDisabled' : ''}}" style="line-height:40px">{{item}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{bookTimeArr}}" class="pickerView" style="line-height:40px">{{item}}</view>
</picker-view-column>
</picker-view>
感觉数据多时不易操作,能如mobiscroll智能一些就好啦
你在selectBookTime里检查并操作pickerViewValue呗