<!--pages/clock/clock-success/clock-success.wxml-->
<wxs src="../clock.wxs" module="clock"></wxs>
<view class="container" wx:if="{{clockType}}">
  <view class="clock-success">
    <text wx:if="{{clockType === 1}}">上班打卡成功</text>
    <text wx:if="{{clockType === 2}}">下班打卡成功</text>
  </view>
  <view class="time">
    打卡时间 {{time}}
  </view>
  <image src="{{imgServerUrl}}/images/clock/clock-success.png"></image>
  <!-- <view class="money" wx:if="{{clockType === 2}}">
    <text>累计预支</text>
    <text class="number">{{clock.toFixed(sumMoney)}}</text>
    <text>元</text>
  </view>
  <view class="end" wx:if="{{clockType === 1}}">
    <view>新的一天开始啦！</view>
    <view>今天的你也要光芒万丈！记得下班也要打卡哦！</view>
  </view>
  <view class="end" wx:if="{{clockType === 2}}">
    <view>
      <text>今日打卡已完成，打卡时长</text> <text class="number">{{duration}}</text>
      <text>小时，</text>
    </view>
    <view>
      <text> 可预支工资 </text>
      <text class="number">{{clock.toFixed(todayMoney)}}</text>
      <text>元。明天也要努力哦！</text>
    </view>
  </view> -->
  <view class="btn" bindtap="checkResult">
    查看打卡结果
  </view>
</view>