clock.wxml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!--pages/clock/clock.wxml-->
  2. <wxs src="./clock.wxs" module="clock"></wxs>
  3. <view class="container">
  4. <view class="no-authentication" wx:if="{{approveStatus === 2}}">
  5. <!-- <view class="header">
  6. <image src="{{imgServerUrl}}/images/clock/clock-bg.png" class="no-authentication-bg" mode="widthFixed"></image>
  7. </view> -->
  8. <view class="no-authentication-content">
  9. <image src="{{imgServerUrl}}/images/clock/clock-no-pass.png" class="no-authentication-img"></image>
  10. <view class="no-authentication-content-text">
  11. <view>您的审核未通过</view>
  12. <view>
  13. <text>请再次上传您本人的真实身份证图片,</text>
  14. <view>
  15. <text>已经上传将无法更改。</text>
  16. </view>
  17. </view>
  18. </view>
  19. <navigator class="no-authentication-content-button" url="../identification/index?from=clock">
  20. 前往认证
  21. </navigator>
  22. </view>
  23. <!-- <image bindtap="toRule" src="{{imgServerUrl}}/images/clock/clock-video.png" class="video"></image> -->
  24. </view>
  25. <view class="no-pass" wx:elif="{{approveStatus === 0}}">
  26. <!-- <view class="header">
  27. <image src="{{imgServerUrl}}/images/clock/clock-bg.png" class="no-pass-bg" mode="widthFixed"></image>
  28. </view> -->
  29. <view class="no-pass-content">
  30. <image src="{{imgServerUrl}}/images/clock/clock-no-certified.png" class="no-passs-img"></image>
  31. <view class="no-pass-content-text">
  32. <view>您还没有实名认证</view>
  33. <view>为保证账户安全,请完成实名认证后再进行打卡签到。</view>
  34. </view>
  35. <navigator class="no-pass-content-button" url="../identification/index?from=clock">
  36. 前往认证
  37. </navigator>
  38. </view>
  39. <!-- <image bindtap="toRule" src="{{imgServerUrl}}/images/clock/clock-video.png" class="video"></image> -->
  40. </view>
  41. <view class="pass" wx:else>
  42. <view class="pass-header">
  43. <!-- <image src="{{imgServerUrl}}/images/clock/clock-bg-home.png" class="pass-header-bg" mode="widthFixed"></image> -->
  44. <view class="pass-header-content">
  45. <view class="pass-header-content-left">
  46. <view class="userinfo">
  47. <view class="avatar">
  48. <avatar src="{{userInfo.avatarUrl}}" size='102' class="avatarUrl"></avatar>
  49. <image class="avatar-icon" src="{{imgServerUrl}}/images/clock/clock-approved-icon.png"
  50. wx:if="{{approveStatus === 3}}"></image>
  51. <image class="avatar-icon" src="{{imgServerUrl}}/images/clock/clock-approving-icon.png" wx:else></image>
  52. </view>
  53. <view class="userinfo-status">
  54. <text>{{hpMember.realName}}</text>
  55. <text wx:if="{{approveStatus === false}}" class="approveStatus"> </text>
  56. <text wx:if="{{approveStatus === 0}}" class="approveStatus">已认证</text>
  57. <text wx:if="{{approveStatus === 1}}" class="approveStatus">等待认证</text>
  58. <text wx:if="{{approveStatus === 2}}" class="approveStatus">未通过</text>
  59. <text wx:if="{{approveStatus === 3}}" class="approveStatus">已认证</text>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="pass-header-content-right" bindtap="navigator" data-index="{{0}}">
  64. <text>查看考勤统计</text>
  65. <image src='{{imgServerUrl}}/images/happyjob/rightwjt.png'></image>
  66. </view>
  67. <!-- <view class="time">
  68. <view>本周工时</view>
  69. <view>
  70. <text class="number">{{sumDuration}}</text>
  71. <text class="unit">小时</text>
  72. </view>
  73. </view> -->
  74. <!-- <view class="money">
  75. <view>本周预支</view>
  76. <view>
  77. <text class="number">{{clock.toFixed(sumMoney)}}</text>
  78. <text class="unit">元</text>
  79. </view>
  80. </view> -->
  81. </view>
  82. <!-- <view class="pass-header-message">实际预支发放结合企业考勤,以上金额仅供参考。</view> -->
  83. <!-- <view class="pass-header-footer">
  84. <view class="pass-header-footer-view" wx:for="{{navigation}}" wx:key='index' data-index="{{index}}"
  85. bindtap="navigator">
  86. <image src='{{imgServerUrl}}{{item.image}}'></image>
  87. <text>{{item.text}}</text>
  88. </view>
  89. </view> -->
  90. </view>
  91. <view class="pass-content">
  92. <view class="status">
  93. <view class="clock-in">
  94. <text>上班打卡</text>
  95. <view class="clock-time">
  96. <image src="{{imgServerUrl}}/images/clock/clock-success-icon.png" wx:if="{{startPunch !== '未完成' }}"></image>
  97. <text class="status-text" wx:if="{{startPunch !== '未完成' }}">{{clock.formateHS(startPunch)}} 已打卡</text>
  98. <text class="status-text" wx:else>{{startPunch}}</text>
  99. </view>
  100. </view>
  101. <view class="clock-out">
  102. <text>下班打卡</text>
  103. <view class="clock-time">
  104. <image src="{{imgServerUrl}}/images/clock/clock-success-icon.png" wx:if="{{endPunch !== '未完成' }}"></image>
  105. <text class="status-text" wx:if="{{endPunch !== '未完成' }}">{{clock.formateHS(endPunch)}} 已打卡</text>
  106. <text class="status-text" wx:else>{{endPunch}}</text>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="rule-messgae">规则:请根据企业实际上下班时间打卡</view>
  111. <view wx:if="{{approveStatus === 1}}" class="image">
  112. <image src="{{imgServerUrl}}/images/clock/clock-approving.png"></image>
  113. </view>
  114. <view wx:else class="image" bindtap="click">
  115. <image src="{{statusImage}}"></image>
  116. </view>
  117. <view class="clock-status" wx:if="{{approveStatus === 1}}">
  118. <image src="{{imgServerUrl}}/images/clock/clock-waring.png"></image>
  119. <text>我们会尽快完成实名认证审核</text>
  120. </view>
  121. <view class="clock-status" wx:else>
  122. <image src="{{statusIcon}}"></image>
  123. <text>{{statusMessage}}</text>
  124. </view>
  125. <view class="reload-location" bindtap="reload" wx:if="{{clockType === 3}}">
  126. <image src="{{imgServerUrl}}/images/clock/refresh.png"></image>
  127. <text>重新定位</text>
  128. </view>
  129. <!-- <view class="prepayable" wx:if="{{clockType === 4}}">
  130. <text>当日可预支工资:</text>
  131. <view>
  132. <text class="prepayable-number">{{clock.toFixed(todayMoney)}}</text>
  133. <text class="prepayable-unit">元</text>
  134. </view>
  135. </view> -->
  136. <image src="../../images/happyjob/kefu.png" class="kefu" bindtap="navigator" data-index="{{2}}"></image>
  137. </view>
  138. <!-- <image bindtap="toRule" src="{{imgServerUrl}}/images/clock/clock-video.png" class="video"></image> -->
  139. </view>
  140. </view>
  141. <view class="cover" hidden="{{showCover}}" bindtap="changeCoverStatus">
  142. <view class="cover-kefu">
  143. <view class="cover-kefu-title">开心工作客服电话</view>
  144. <view class="cover-kefu-number">400-690-0099</view>
  145. <view class="cover-kefu-tips">在线时间:每天8:00-21:00</view>
  146. <view class="cover-kefu-button" bindtap="callKefu">
  147. <image src="{{imgServerUrl}}/images/clock/clock-phone-call.png"></image>
  148. <text>一键拨号</text>
  149. </view>
  150. </view>
  151. </view>
  152. <modal visible='{{settingVisible}}' actions='{{actions}}' bind:click='closeSettingVisible'>
  153. <view class="settingVisible">请前往设置打开用户定位权限</view>
  154. </modal>