这里主要是根据时间戳来进行判断的。其他路子也很多
2018.7.1日之后不可选
页面:
pickerOptionLater是在data的return里面定义的。
pickerOptionLater: {
disabledDate(time) {
var date = new Date(‘2018-06-30 24:00:00:000’)
var thatDay = date.getTime()
return time.getTime() < thatDay
}
},