<Yl_ListBox id='ListBox' pullDown='{{false}}'>
    <view class="container">
        <calendar id="calendar" bindload="handleCalendarLoad" binddatechange="handleCalendarDateChange" bindrangechange="handleCalendarRangeChange" bindviewchange="handleCalendarPanelViewChange" _position="absolute" _top="0">
            <view class="history">
                <view style="margin: 10rpx 0;">
                    <Yl_Headline title='{{querysubhr?(language["下属签到记录"] || "下属签到记录"):(language["签到记录"] || "签到记录")}}' type='switch' switchLabel='{{language["下属"] ||"查看下属签到记录"}}' switch='{{querysubhr}}' bind:callBack='onChange' />
                </view>
                <view class="item" wx:for="{{list}}" wx:key="rowindex">
                    <view class="time">{{item.signintime}}</view>
                    <view class="location">
                        <text class="iconfont icon-a-wodemendianxinxidizhi" />{{item.address}}
                    </view>
                    <view wx:if="{{item.enterprisename}}" class="exp">{{language['客户'] || '客户'}}：{{item.enterprisename}}</view>
                    <view wx:if="{{item.projectname}}" class="exp">{{language['项目'] || '项目'}}：{{item.projectname}}</view>
                    <view class="exp">{{language['说明'] || '说明'}}：{{item.remarks|| ' --'}}</view>
                    <view class="user">
                        <view class="portrait">
                            <image wx:if="{{item.headpic}}" src="{{item.headpic}}" mode="aspectFill" />
                            <view wx:else class="text">
                                {{item.name[0]}}
                            </view>
                        </view>
                        <view class="main">
                            <view class="name">{{item.name}}</view>
                            <view class="text">{{language[item.depname]||item.depname}} {{language[item.position]||item.position}}</view>
                        </view>
                    </view>
                    <view class="attachment" wx:if="{{item.attinfos.length}}">
                        <view class="label">
                            <view>{{language['附件'] || '附件'}}:{{item.attinfos.length}}{{language['件'] || '个'}}</view>
                            <navigator url="#" class="right" data-item="{{item}}" data-index="{{index}}" bindtap="isShowAtt">
                                <block wx:if="{{item.unfold}}">
                                    {{language['展开'] || '展开'}}
                                    <van-icon name="arrow-down" />
                                </block>
                                <block wx:else>
                                    {{language['收起'] || '收起'}}
                                    <van-icon name="arrow-up" />
                                </block>
                            </navigator>
                        </view>
                        <Yl_Files padding='0' id="{{'Yl_Files'+item.sys_signinid}}" />
                    </view>
                </view>
                <My_empty wx:if="{{list.length==0}}" />
                <view style="height: 40rpx;" />
            </view>
        </calendar>
    </view>
</Yl_ListBox>

<Yl_FloatingButton useSlot zIndex='99999999999' bindtap="toSignIn">
    <view class="float-but">
        {{language['签到'] || '签到'}}
    </view>
</Yl_FloatingButton>