| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <!--pages/clock/clock.wxml-->
- <wxs src="./clock.wxs" module="clock"></wxs>
- <view class="container">
- <view class="no-authentication" wx:if="{{approveStatus === 2}}">
- <!-- <view class="header">
- <image src="{{imgServerUrl}}/images/clock/clock-bg.png" class="no-authentication-bg" mode="widthFixed"></image>
- </view> -->
- <view class="no-authentication-content">
- <image src="{{imgServerUrl}}/images/clock/clock-no-pass.png" class="no-authentication-img"></image>
- <view class="no-authentication-content-text">
- <view>您的审核未通过</view>
- <view>
- <text>请再次上传您本人的真实身份证图片,</text>
- <view>
- <text>已经上传将无法更改。</text>
- </view>
- </view>
- </view>
- <navigator class="no-authentication-content-button" url="../identification/index?from=clock">
- 前往认证
- </navigator>
- </view>
- <!-- <image bindtap="toRule" src="{{imgServerUrl}}/images/clock/clock-video.png" class="video"></image> -->
- </view>
- <view class="no-pass" wx:elif="{{approveStatus === 0}}">
- <!-- <view class="header">
- <image src="{{imgServerUrl}}/images/clock/clock-bg.png" class="no-pass-bg" mode="widthFixed"></image>
- </view> -->
- <view class="no-pass-content">
- <image src="{{imgServerUrl}}/images/clock/clock-no-certified.png" class="no-passs-img"></image>
- <view class="no-pass-content-text">
- <view>您还没有实名认证</view>
- <view>为保证账户安全,请完成实名认证后再进行打卡签到。</view>
- </view>
- <navigator class="no-pass-content-button" url="../identification/index?from=clock">
- 前往认证
- </navigator>
- </view>
- <!-- <image bindtap="toRule" src="{{imgServerUrl}}/images/clock/clock-video.png" class="video"></image> -->
- </view>
- <view class="pass" wx:else>
- <view class="pass-header">
- <!-- <image src="{{imgServerUrl}}/images/clock/clock-bg-home.png" class="pass-header-bg" mode="widthFixed"></image> -->
- <view class="pass-header-content">
- <view class="pass-header-content-left">
- <view class="userinfo">
- <view class="avatar">
- <avatar src="{{userInfo.avatarUrl}}" size='102' class="avatarUrl"></avatar>
- <image class="avatar-icon" src="{{imgServerUrl}}/images/clock/clock-approved-icon.png"
- wx:if="{{approveStatus === 3}}"></image>
- <image class="avatar-icon" src="{{imgServerUrl}}/images/clock/clock-approving-icon.png" wx:else></image>
- </view>
- <view class="userinfo-status">
- <text>{{hpMember.realName}}</text>
- <text wx:if="{{approveStatus === false}}" class="approveStatus"> </text>
- <text wx:if="{{approveStatus === 0}}" class="approveStatus">已认证</text>
- <text wx:if="{{approveStatus === 1}}" class="approveStatus">等待认证</text>
- <text wx:if="{{approveStatus === 2}}" class="approveStatus">未通过</text>
- <text wx:if="{{approveStatus === 3}}" class="approveStatus">已认证</text>
- </view>
- </view>
- </view>
- <view class="pass-header-content-right" bindtap="navigator" data-index="{{0}}">
- <text>查看考勤统计</text>
- <image src='{{imgServerUrl}}/images/happyjob/rightwjt.png'></image>
- </view>
- <!-- <view class="time">
- <view>本周工时</view>
- <view>
- <text class="number">{{sumDuration}}</text>
- <text class="unit">小时</text>
- </view>
- </view> -->
- <!-- <view class="money">
- <view>本周预支</view>
- <view>
- <text class="number">{{clock.toFixed(sumMoney)}}</text>
- <text class="unit">元</text>
- </view>
- </view> -->
- </view>
- <!-- <view class="pass-header-message">实际预支发放结合企业考勤,以上金额仅供参考。</view> -->
- <!-- <view class="pass-header-footer">
- <view class="pass-header-footer-view" wx:for="{{navigation}}" wx:key='index' data-index="{{index}}"
- bindtap="navigator">
- <image src='{{imgServerUrl}}{{item.image}}'></image>
- <text>{{item.text}}</text>
- </view>
- </view> -->
- </view>
- <view class="pass-content">
- <view class="status">
- <view class="clock-in">
- <text>上班打卡</text>
- <view class="clock-time">
- <image src="{{imgServerUrl}}/images/clock/clock-success-icon.png" wx:if="{{startPunch !== '未完成' }}"></image>
- <text class="status-text" wx:if="{{startPunch !== '未完成' }}">{{clock.formateHS(startPunch)}} 已打卡</text>
- <text class="status-text" wx:else>{{startPunch}}</text>
- </view>
- </view>
- <view class="clock-out">
- <text>下班打卡</text>
- <view class="clock-time">
- <image src="{{imgServerUrl}}/images/clock/clock-success-icon.png" wx:if="{{endPunch !== '未完成' }}"></image>
- <text class="status-text" wx:if="{{endPunch !== '未完成' }}">{{clock.formateHS(endPunch)}} 已打卡</text>
- <text class="status-text" wx:else>{{endPunch}}</text>
- </view>
- </view>
- </view>
- <view class="rule-messgae">规则:请根据企业实际上下班时间打卡</view>
- <view wx:if="{{approveStatus === 1}}" class="image">
- <image src="{{imgServerUrl}}/images/clock/clock-approving.png"></image>
- </view>
- <view wx:else class="image" bindtap="click">
- <image src="{{statusImage}}"></image>
- </view>
- <view class="clock-status" wx:if="{{approveStatus === 1}}">
- <image src="{{imgServerUrl}}/images/clock/clock-waring.png"></image>
- <text>我们会尽快完成实名认证审核</text>
- </view>
- <view class="clock-status" wx:else>
- <image src="{{statusIcon}}"></image>
- <text>{{statusMessage}}</text>
- </view>
- <view class="reload-location" bindtap="reload" wx:if="{{clockType === 3}}">
- <image src="{{imgServerUrl}}/images/clock/refresh.png"></image>
- <text>重新定位</text>
- </view>
- <!-- <view class="prepayable" wx:if="{{clockType === 4}}">
- <text>当日可预支工资:</text>
- <view>
- <text class="prepayable-number">{{clock.toFixed(todayMoney)}}</text>
- <text class="prepayable-unit">元</text>
- </view>
- </view> -->
- <image src="../../images/happyjob/kefu.png" class="kefu" bindtap="navigator" data-index="{{2}}"></image>
- </view>
- <!-- <image bindtap="toRule" src="{{imgServerUrl}}/images/clock/clock-video.png" class="video"></image> -->
- </view>
- </view>
- <view class="cover" hidden="{{showCover}}" bindtap="changeCoverStatus">
- <view class="cover-kefu">
- <view class="cover-kefu-title">开心工作客服电话</view>
- <view class="cover-kefu-number">400-690-0099</view>
- <view class="cover-kefu-tips">在线时间:每天8:00-21:00</view>
- <view class="cover-kefu-button" bindtap="callKefu">
- <image src="{{imgServerUrl}}/images/clock/clock-phone-call.png"></image>
- <text>一键拨号</text>
- </view>
- </view>
- </view>
- <modal visible='{{settingVisible}}' actions='{{actions}}' bind:click='closeSettingVisible'>
- <view class="settingVisible">请前往设置打开用户定位权限</view>
- </modal>
|