<picker style='width:100%;border-right:gray solid 2rpx' mode="date" start="{{currentdate}}" value="{{date}}" data-id='1' bindchange="bindDateChange"> <view class="go-center"> {{date1}} </view> </picker> |
//日期选择器 bindDateChange: function(e) { console.log(e.currentTarget.dataset.id) if (e.currentTarget.dataset.id == 1) { this.setData({ date1: e.detail.value }) app.globalData.date1 = e.detail.value } else if (e.currentTarget.dataset.id == 2) { this.setData({ date2: e.detail.value }) app.globalData.date2 = e.detail.value } }, |
点击picker ,没有出现时间选择器。

我的也是啊,点击函数都没有触发到
请问有解决么,我的picker也弹不出了 不知道什么问题
建议提供能复现问题的代码片段,方便大家帮忙定位问题(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)