wangxin 5 سال پیش
والد
کامیت
008f8013e2
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 0
      pages/clock/clock-tongji/index.js
  2. 1 1
      pages/clock/clock-tongji/index.wxml

+ 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'>