<view class="key">选择日期</view>
<view class="value1">
<!-- <view class="section"> -->
<picker mode="date" value="{{startTime}}" start="2020-01-01" end="2023-01-01" bindchange="bindDateChange">
<view class="picker">
{{startTime || '请选择'}}
</view>
</picker>
<!-- </view> -->
</view>
bindDateChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
startTime: e.detail.value
})
},
2.19.5
你的基础库版本多少。我测试正常。
https://developers.weixin.qq.com/s/PZObuCmL7BtT
只有这个页面不太行
<view class="bookArea">
<view class="title">到店时间</view>
<view class="date_select">
<view class="key">选择日期</view>
<view class="value1">
<!-- <view class="section"> -->
<picker mode="date" value="{{startTime}}" start="2020-01-01" end="2023-01-01" bindchange="bindDateChange">
<view class="picker">
{{startTime || '请选择'}}
</view>
</picker>
<!-- </view> -->
</view>
</view>
<view class="time_select">
<view class="key">选择时间</view>
<view class="value">
<view class="{{timeIndex == index ? 'time_item time_item_active' : 'time_item'}}" wx:for="{{times}}" wx:key="index" bindtap="changeTime" data-index="{{index}}" >{{item}}</view>
</view>
</view>
<view class="title">到店人数</view>
<view class="people_select">
<view class="value">
<view class="{{peopleIndex == index ? 'people_item people_item_active' : 'people_item'}}" wx:for="{{peoples}}" wx:key="index" bindtap="changePeople" data-index="{{index}}" >{{item}}</view>
</view>
</view>
<view class="title">桌位类型</view>
<view class="tag_select">
<view class="value">
<view class="{{tagIndex == index ? 'tag_item tag_item_active' : 'tag_item'}}" wx:for="{{seat}}" wx:key="index" bindtap="changeTag" data-index="{{index}}" >{{item.name+"("+item.desc+")"}}</view>
</view>
</view>
<view class="specialRequest" >
<textarea auto-height placeholder="请填写您的特殊需求,我们将会尽量满足!" />
</view>
<view class="special_items">
<view class="special_item">准备果盘</view>
<view class="special_item special_item_active">吸烟区</view>
</view>
<view class="title">提醒</view>
<view class="tips">
本次预约服务将为您保留15分钟,请准时前往,逾时将视为放弃预约。MILL欢迎您的前往!
</view>
<view class="submit" bindtap="quickBook">立即预约</view>
</view>
</van-popup>