소스 검색

考勤打卡fix

shudonghui 1 년 전
부모
커밋
14a39a1b8b
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/pages/ding/ding.vue
  2. 1 1
      src/service/request.js

+ 2 - 2
src/pages/ding/ding.vue

@@ -22,12 +22,12 @@
         </view>
       </view>
       <view class="m-body flex items-center" >
-        <view class="m-box flex flex-col items-center" v-show="signOutEnable||signInEnable" @click="checkDingObj(signOutEnable?'OUT':(signInEnable?'IN':''))" >
+        <view class="m-box flex flex-col items-center" v-show="dingInfo.sopNo" @click="checkDingObj(signOutEnable?'OUT':(signInEnable?'IN':''))" >
           <text class="m-box-1">{{signOutEnable?'签退':(signInEnable?'签到':'')}}打卡</text>
           <text class="m-box-2" v-show="dingInfo.faceOpen">(人脸识别)</text>
           <text class="m-box-3">{{dateFormat(currentTime, 'hh:mm')}}</text>
         </view>
-        <view class="m-box-disable m-box flex flex-col items-center" v-show="!signOutEnable&&!signInEnable">
+        <view class="m-box-disable m-box flex flex-col items-center" v-show="!dingInfo.sopNo">
           <text class="m-box-1">无法打卡</text>
           <text class="m-box-2" v-show="dingInfo.faceOpen">(人脸识别)</text>
           <text class="m-box-3">{{dateFormat(currentTime, 'hh:mm')}}</text>

+ 1 - 1
src/service/request.js

@@ -90,7 +90,7 @@ http.interceptors.response.use(
     //   return Promise.reject(response)
     // }
     if (response.statusCode === 200) {
-      return response.data?.data
+      return response.data?.data?response.data?.data:response.data;
     }
     if (response.statusCode === 401) {
       Vue.$u.vuex('vuex_token', '')