Commit 8ffb4208 by zhangxw

修改切换门店 动画未结束 点击确定未选到门店bug

1 parent 007590a7
......@@ -90,9 +90,8 @@ Component({
})
},
changeStore(e) {
console.log(e)
this.setData({
selectStoreIndex: e.detail.value
selectStoreIndex: e.detail.value[0]
})
}
}
......
......@@ -22,7 +22,7 @@
</view>
</view>
<view class="picker-box">
<picker-view class="picker" value="{{defaultSelectStoreIndex}}" indicator-class="indicator" bindchange="changeStore" bindpickend="dateDone">
<picker-view class="picker" value="{{defaultSelectStoreIndex}}" immediate-change="true" indicator-class="indicator" bindchange="changeStore" bindpickend="dateDone">
<picker-view-column>
<block wx:for="{{items}}" wx:key="merchantId">
<view class="view pickViewColumn">{{item.merchantName}}</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!