You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.7 KiB

<view><block wx:if="{{peopleType=='1'}}"><view><view class="status">{{"当前状态:"+value}}</view><view class="{{['clock-button',(isClock)?'isClock':'']}}" type="success" data-event-opts="{{[['tap',[['onClock',['$event']]]]]}}" bindtap="__e">打卡</view></view></block><block wx:else><view><uni-section class="mb-10" vue-id="6881ce5d-1" title="时间选择" type="line" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('6881ce5d-2')+','+('6881ce5d-1')}}" type="daterange" value="{{range}}" data-event-opts="{{[['^input',[['__set_model',['','range','$event',[]]]]]]}}" bind:__l="__l"></uni-datetime-picker></uni-section><uni-card vue-id="6881ce5d-3" title="打卡情况" bind:__l="__l" vue-slots="{{['default']}}"><uni-list vue-id="{{('6881ce5d-4')+','+('6881ce5d-3')}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{staffList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><uni-list-item vue-id="{{('6881ce5d-5-'+index)+','+('6881ce5d-4')}}" direction="row" bind:__l="__l" vue-slots="{{['body','header','footer']}}"><view class="tag-wrap" slot="body"><block wx:if="{{item.departmentTitle}}"><view><u-tag vue-id="{{('6881ce5d-6-'+index)+','+('6881ce5d-5-'+index)}}" text="{{item.departmentTitle}}" size="12" bind:__l="__l"></u-tag></view></block></view><view class="avatar-wrap" slot="header"><text class="staff-name">{{item.nickname}}</text></view><view style="font-size:24rpx;" slot="footer"><text style="margin-right:10px;">正常:20</text><text style="margin-right:10px;">迟到:<text style="color:red;">2</text></text><text>早退:<text style="color:red;">3</text></text></view></uni-list-item></block></uni-list></uni-card></view></block></view>