picker组件bindDateChange点击确定不触发事件?
发布于 6 年前 作者 minghou 13802 次浏览 来自 问答
<view class='content' >
  <view class='left'>生日</view>
  <view class='right'>
    <picker mode="date" value="2019-01-27" start="1949-10-01" end="2019-12-30" bindtap='bindDateChange'>
      <view class="weui-input">{{birthday}}</view>
    </picker>
    <image class='next' src='{{util.HTTP}}{{"mobile/small/image/xq-gd.png"}}'></image>
  </view>
</view>
  //生日选择后的触发事件
  bindDateChange: function (e) {
    console.log(e)

    this.setData({
      birthday: e.detail.value
    })
  },

点击确定之后没有事件触发,无法获取日期

3 回复

bindchange = “bindDateChange”

picker哪来 bindtap事件。。

回到顶部