1 line
4.0 KiB
Plaintext
1 line
4.0 KiB
Plaintext
<view class="period_warp data-v-3e0d3134"><block wx:for="{{timeArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="data-v-3e0d3134"><view class="title data-v-3e0d3134">{{"上下班时段"+(index+1)}}</view><view class="box_list data-v-3e0d3134"><view class="box_li data-v-3e0d3134"><view class="b_time data-v-3e0d3134"><view class="b_label data-v-3e0d3134">上班</view><picker mode="time" value="{{item.start_time}}" data-event-opts="{{[['change',[['changeGoto',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"><view class="b_v_box data-v-3e0d3134"><view class="b_value data-v-3e0d3134"><block wx:if="{{item.start_next==1}}"><text class="data-v-3e0d3134">次日</text></block>{{''+item.start_time}}</view><view class="iconfont icon-arrows_right data-v-3e0d3134"></view></view></picker></view><view class="b_time data-v-3e0d3134"><view class="b_label data-v-3e0d3134">需要打卡</view><view class="b_v_box data-v-3e0d3134"><switch color="#03aa96" checked="{{item.start_status==0}}" data-event-opts="{{[['change',[['changeStart',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"></switch></view></view><view class="b_time data-v-3e0d3134"><view class="b_label data-v-3e0d3134">可打卡时间</view><view class="b_v_box data-v-3e0d3134"><picker mode="time" value="{{item.ustart_time}}" start="{{index<=0?'':timeArr[index-1].end_time}}" end="{{item.end_time}}" data-event-opts="{{[['change',[['changeGotoStart',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"><view class="minbox data-v-3e0d3134"><block wx:if="{{item.start_next==1}}"><text class="data-v-3e0d3134">次日</text></block>{{''+item.ustart_time}}</view></picker>至<picker mode="time" value="{{item.uend_time}}" start="{{item.ustart_time}}" end="{{item.start_next==1?'':item.end_time}}" data-event-opts="{{[['change',[['changeGotoEnd',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"><view class="minbox data-v-3e0d3134"><block wx:if="{{item.start_next==1}}"><text class="data-v-3e0d3134">次日</text></block>{{''+item.uend_time}}</view></picker></view></view></view><view class="box_li data-v-3e0d3134"><view class="b_time data-v-3e0d3134"><view class="b_label data-v-3e0d3134">下班</view><picker mode="time" value="{{item.end_time}}" data-event-opts="{{[['change',[['changeGoOff',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"><view class="b_v_box data-v-3e0d3134"><view class="b_value data-v-3e0d3134"><block wx:if="{{item.end_next==1}}"><text class="data-v-3e0d3134">次日</text></block>{{''+item.end_time}}</view><view class="iconfont icon-arrows_right data-v-3e0d3134"></view></view></picker></view><view class="b_time data-v-3e0d3134"><view class="b_label data-v-3e0d3134">需要打卡</view><view class="b_v_box data-v-3e0d3134"><switch color="#03aa96" checked="{{item.end_status==0}}" data-event-opts="{{[['change',[['changeEnd',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"></switch></view></view><view class="b_time data-v-3e0d3134"><view class="b_label data-v-3e0d3134">可打卡时间</view><view class="b_v_box data-v-3e0d3134"><picker mode="time" value="{{item.dstart_time}}" start="{{item.end_next==1?'':item.end_time}}" data-event-opts="{{[['change',[['changeGoOffStart',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"><view class="minbox data-v-3e0d3134"><block wx:if="{{item.end_next==1}}"><text class="data-v-3e0d3134">次日</text></block>{{''+item.dstart_time}}</view></picker>至<picker mode="time" value="{{item.dend_time}}" data-event-opts="{{[['change',[['changeGoOffEnd',['$event',index]]]]]}}" bindchange="__e" class="data-v-3e0d3134"><view class="minbox data-v-3e0d3134"><block wx:if="{{item.end_next==1}}"><text class="data-v-3e0d3134">次日</text></block>{{''+item.dend_time}}</view></picker></view></view></view></view></view></block><view class="btn_g bg-blue button-hover round data-v-3e0d3134" id="btn" data-event-opts="{{[['tap',[['$noMultipleClicks',['$0'],['toSave']]]]]}}" bindtap="__e">确定</view></view> |