qingyiay
2023-09-26 97d88adcdfa7e13b2203c8716c02866fae087704
pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue
@@ -21,10 +21,6 @@
<script>
   import { todayDate } from '@/utils/util.js';
   export default {
      onLoad(params) {
         this.punchTheClockObj.tmcoa = params.tmId.toString();
         this.coalStatus = params.coalStatus;
      },
      data() {
         return {
            nowTime: '',
@@ -36,7 +32,9 @@
            }
         };
      },
      onLoad() {
      onLoad(params) {
         this.punchTheClockObj.tmcoa = params.tmId;
         this.coalStatus = params.coalStatus;
         this.getSetting(); //获取授权
         this.getFuzzyLocation(); //获取位置
         this.todayDate(); //当前时间
@@ -88,11 +86,9 @@
                     this.$u.toast('签到成功');
                     setTimeout(() => {
                        uni.navigateBack({
                              delta: 1
                           },
                           500
                        );
                     });
                           delta: 1
                        });
                     }, 1000);
                  } else {
                     this.$u.toast(res.msg ? res.msg : '签到失败');
                  }