(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/additionalFeatures/positionPunching"],{"0982":function(t,e,n){"use strict";(function(t){n("40da");o(n("66fd"));var e=o(n("4b90"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"493d":function(t,e,n){},"4b90":function(t,e,n){"use strict";n.r(e);var o=n("bc82"),i=n("f159");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("ca9b");var r,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"7ac116fe",null,!1,o["a"],r);e["default"]=u.exports},"64e8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function i(t,e){return s(t)||u(t,e)||r(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n0,e.workLocale=a,e.loading=!1,e.getLocation()}}else t.showModal({title:"温馨提示",content:o.Result_Desc,showCancel:!1})}))},getMsg:function(){var t=this,e=this.nowDay;this.$request.$get("GetWorkTimeRecord",{startDate:e,endDate:e}).then((function(e){if(100==e.Result_Code&&e.Data.List.length>0){var n=e.Data.List[0];t.pageMsg=n}}))},faceClock:function(){var e=this,n=this.signin;this.signin.isAble&&(e.signinTime=this.signin.time,t.showLoading({title:"正在识别人脸,请稍后",mask:!0}),this.$request.$post("FaceClock",{clockLat:n.latitude,clockLng:n.longitude,photo:this.userPhoto||""}).then((function(n){e.loading=!1,t.hideLoading(),100==n.Result_Code?(e.clockDate=n.Data.ClockDate,e.getMsg(),e.showPop=!0):t.showModal({content:"打卡失败:"+n.Result_Desc}),e.setPhoto(null)})))},clearTime:function(){clearInterval(this.setTime),this.setTime=null},takePhoto:function(){this.signin.isAble&&(this.loading||t.navigateTo({url:"/pages/additionalFeatures/takePhoto"}))}}),onLoad:function(){var t=this;this.getWorkLocale(),t.setTime=setInterval((function(){t.getTime()}),1e3),t.getMsg()},onPullDownRefresh:function(){var e=this;e.getLocation(),setTimeout((function(){t.stopPullDownRefresh()}),1e3)},onShow:function(){this.userPhoto&&this.faceClock()},onUnload:function(){this.clearTime()}};e.default=h}).call(this,n("543d")["default"])},bc82:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$util.cutDate(t.nowDay,"YYYY年MM月DD日"));t._isMounted||(t.e0=function(e){t.showPop=!t.showPop}),t.$mp.data=Object.assign({},{$root:{g0:n}})},a=[]},ca9b:function(t,e,n){"use strict";var o=n("493d"),i=n.n(o);i.a},f159:function(t,e,n){"use strict";n.r(e);var o=n("64e8"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a}},[["0982","common/runtime","common/vendor"]]]);