类如 需求 切换 时间类型 :fields=“变量”;但是会发现 chang 事件里面e.targert.value的值 无法和fields 同步 解决如下:
```javascript
<view class="weektime" >
<!-- 为什么会写两个时间选择起 不去改变fields 是因为写成动态 chang 事件里面e.targert.value的值 无法和fields 同步 而且不能用v-if -->
<picker mode="date" :value="date" fields="day" @change="bindDateChange" v-show="control==='day'">
<view class="timecard text-center"> <text class="iconfont iconshijian2"></text> <text></text
class="margin-l-10upx">{{ timeValue }}</text> </view>
</picker>
<picker mode="date" :value="date" fields="month" @change="bindDateChange" v-show="control==='month'">
<view class="timecard text-center"> <text class="iconfont iconshijian2"></text> <text></text
class="margin-l-10upx">{{ timeValue }}</text> </view>
</picker>
</view>