<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker mode="date" :value="date1" :start="startDate" :end="endDate" @change="bindDateChange1" fields='day' :disabled='disabled1'>
<view class="uni-input">{{date1!=''?date1:'请选择结束时间'}}</view>
</picker>
</view>
</view>
</view>
- 发布:2021-04-25 10:46
- 更新:2021-04-25 10:57
- 阅读:374
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 未知
HBuilderX类型: 正式
HBuilderX版本号: 3.1.9
第三方开发者工具版本号: 未知
基础库版本号: 未知
项目创建方式: HBuilderX
App下载地址或H5⽹址: https://meals.xznsyh.com/merchant/h5/#/pages/select/role
示例代码:
操作步骤:
‘’<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker mode="date" :value="date1" :start="startDate" :end="endDate" @change="bindDateChange1" fields='day' :disabled='disabled1'>
<view class="uni-input">{{date1!=''?date1:'请选择结束时间'}}</view>
</picker>
</view>
</view>
</view>‘’
‘’<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker mode="date" :value="date1" :start="startDate" :end="endDate" @change="bindDateChange1" fields='day' :disabled='disabled1'>
<view class="uni-input">{{date1!=''?date1:'请选择结束时间'}}</view>
</picker>
</view>
</view>
</view>‘’
预期结果:
<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker mode="date" :value="date1" :start="startDate" :end="endDate" @change="bindDateChange1" fields='day' :disabled='disabled1'>
<view class="uni-input">{{date1!=''?date1:'请选择结束时间'}}</view>
</picker>
</view>
</view>
</view>
<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker mode="date" :value="date1" :start="startDate" :end="endDate" @change="bindDateChange1" fields='day' :disabled='disabled1'>
<view class="uni-input">{{date1!=''?date1:'请选择结束时间'}}</view>
</picker>
</view>
</view>
</view>
实际结果:
<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker mode="date" :value="date1" :start="startDate" :end="endDate" @change="bindDateChange1" fields='day' :disabled='disabled1'>
<view class="uni-input">{{date1!=''?date1:'请选择结束时间'}}</view>
</picker>
</view>
</view>
</view>
<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker mode="date" :value="date1" :start="startDate" :end="endDate" @change="bindDateChange1" fields='day' :disabled='disabled1'>
<view class="uni-input">{{date1!=''?date1:'请选择结束时间'}}</view>
</picker>
</view>
</view>
</view>