wangxin 5 anos atrás
pai
commit
008f8013e2

+ 2 - 0
pages/clock/clock-tongji/index.js

@@ -24,6 +24,7 @@ Page({
     currentDuration: 0,
     punckClockList: [],
     nextMoney: 0,
+    clockCount: 0,
     defaultDate: ''
   },
   toList() {
@@ -96,6 +97,7 @@ Page({
       this.setData({
         punckClockList: data.data.punckClockList,
         nextMoney: data.data.nextMoney,
+        clockCount: data.data.clockCount,
         currentDuration: data.data.currentDuration,
       })
     })

+ 1 - 1
pages/clock/clock-tongji/index.wxml

@@ -39,7 +39,7 @@
   <view class="clock-detail">
     <view class="titps">
       <view>请根据企业实际上下班时间打卡</view>
-      <view>今日打卡{{punckClockList.length}}次,工时{{currentDuration}}小时</view>
+      <view>今日打卡{{clockCount}}次,工时{{currentDuration}}小时</view>
     </view>
     <view class="clock" wx:if='{{punckClockList.length}}'>
       <view class="clock-content" wx:for="{{punckClockList}}" wx:key='index'>