1 |
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new k(r||[]);return i(a,"_invoke",{value:b(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}n.wrap=p;var d={};function v(){}function h(){}function g(){}var y={};s(y,c,(function(){return this}));var A=Object.getPrototypeOf,w=A&&A(A(x([])));w&&w!==r&&o.call(w,c)&&(y=w);var m=g.prototype=v.prototype=Object.create(y);function M(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function r(i,a,c,u){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function b(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=I(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=g,i(m,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:h,configurable:!0}),h.displayName=s(g,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,l,"GeneratorFunction")),t.prototype=Object.create(m),t},n.awrap=function(t){return{__await:t}},M(L.prototype),s(L.prototype,u,(function(){return this})),n.AsyncIterator=L,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new L(p(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(m),s(m,l,"Generator"),s(m,c,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=x,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},n}function n(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,e,n){return o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&i(o,n.prototype),o},o.apply(null,arguments)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy-64376843.js","./index-legacy-ec77484a.js"],(function(t,n){"use strict";var i,c,u,l,s,p,f,d,v;return{setters:[function(t){t.U,i=t.d,c=t.O,u=t.V,l=t.o,s=t.a,p=t.g,f=t.R,d=t.W},function(t){v=t.M}],execute:function(){var n={},h={};!function(t,e){t.exports=function(){function t(t){var r=[];return t.AMapUI&&r.push(e(t.AMapUI)),t.Loca&&r.push(n(t.Loca)),Promise.all(r)}function e(t){return new Promise((function(e,n){var o=[];if(t.plugins)for(var u=0;u<t.plugins.length;u+=1)-1==i.AMapUI.plugins.indexOf(t.plugins[u])&&o.push(t.plugins[u]);if(a.AMapUI===r.failed)n("前次请求 AMapUI 失败");else if(a.AMapUI===r.notload){a.AMapUI=r.loading,i.AMapUI.version=t.version||i.AMapUI.version,u=i.AMapUI.version;var l=document.body||document.head,s=document.createElement("script");s.type="text/javascript",s.src="https://webapi.amap.com/ui/"+u+"/main.js",s.onerror=function(t){a.AMapUI=r.failed,n("请求 AMapUI 失败")},s.onload=function(){if(a.AMapUI=r.loaded,o.length)window.AMapUI.loadUI(o,(function(){for(var t=0,n=o.length;t<n;t++){var r=o[t].split("/").slice(-1)[0];window.AMapUI[r]=arguments[t]}for(e();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()}));else for(e();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()},l.appendChild(s)}else a.AMapUI===r.loaded?t.version&&t.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):o.length?window.AMapUI.loadUI(o,(function(){for(var t=0,n=o.length;t<n;t++){var r=o[t].split("/").slice(-1)[0];window.AMapUI[r]=arguments[t]}e()})):e():t.version&&t.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):c.AMapUI.push((function(t){t?n(t):o.length?window.AMapUI.loadUI(o,(function(){for(var t=0,n=o.length;t<n;t++){var r=o[t].split("/").slice(-1)[0];window.AMapUI[r]=arguments[t]}e()})):e()}))}))}function n(t){return new Promise((function(e,n){if(a.Loca===r.failed)n("前次请求 Loca 失败");else if(a.Loca===r.notload){a.Loca=r.loading,i.Loca.version=t.version||i.Loca.version;var o=i.Loca.version,u=i.AMap.version.startsWith("2"),l=o.startsWith("2");if(u&&!l||!u&&l)n("JSAPI 与 Loca 版本不对应!!");else{u=i.key,l=document.body||document.head;var s=document.createElement("script");s.type="text/javascript",s.src="https://webapi.amap.com/loca?v="+o+"&key="+u,s.onerror=function(t){a.Loca=r.failed,n("请求 AMapUI 失败")},s.onload=function(){for(a.Loca=r.loaded,e();c.Loca.length;)c.Loca.splice(0,1)[0]()},l.appendChild(s)}}else a.Loca===r.loaded?t.version&&t.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):e():t.version&&t.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):c.Loca.push((function(t){t?n(t):n()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var r,o;(o=r||(r={})).notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed";var i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},c={AMap:[],AMapUI:[],Loca:[]},u=[],l=function(t){"function"==typeof t&&(a.AMap===r.loaded?t(window.AMap):u.push(t))};return{load:function(e){return new Promise((function(n,o){if(a.AMap==r.failed)o("");else if(a.AMap==r.notload){var c=e.key,s=e.version,p=e.plugins;c?(window.AMap&&"lbs.amap.com"!==location.host&&o("禁止多种API加载方式混用"),i.key=c,i.AMap.version=s||i.AMap.version,i.AMap.plugins=p||i.AMap.plugins,a.AMap=r.loading,s=document.body||document.head,window.___onAPILoaded=function(i){if(delete window.___onAPILoaded,i)a.AMap=r.failed,o(i);else for(a.AMap=r.loaded,t(e).then((function(){n(window.AMap)})).catch(o);u.length;)u.splice(0,1)[0]()},(p=document.createElement("script")).type="text/javascript",p.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+i.AMap.version+"&key="+c+"&plugin="+i.AMap.plugins.join(","),p.onerror=function(t){a.AMap=r.failed,o(t)},s.appendChild(p)):o("请填写key")}else if(a.AMap==r.loaded)if(e.key&&e.key!==i.key)o("多个不一致的 key");else if(e.version&&e.version!==i.AMap.version)o("不允许多个版本 JSAPI 混用");else{if(c=[],e.plugins)for(s=0;s<e.plugins.length;s+=1)-1==i.AMap.plugins.indexOf(e.plugins[s])&&c.push(e.plugins[s]);c.length?window.AMap.plugin(c,(function(){t(e).then((function(){n(window.AMap)})).catch(o)})):t(e).then((function(){n(window.AMap)})).catch(o)}else if(e.key&&e.key!==i.key)o("多个不一致的 key");else if(e.version&&e.version!==i.AMap.version)o("不允许多个版本 JSAPI 混用");else{var f=[];if(e.plugins)for(s=0;s<e.plugins.length;s+=1)-1==i.AMap.plugins.indexOf(e.plugins[s])&&f.push(e.plugins[s]);l((function(){f.length?window.AMap.plugin(f,(function(){t(e).then((function(){n(window.AMap)})).catch(o)})):t(e).then((function(){n(window.AMap)})).catch(o)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},c={AMap:[],AMapUI:[],Loca:[]}}}}()}({get exports(){return h},set exports(t){h=t}});var g=h;t("default",i({name:"amap-gps",setup:function(){var t=d(),i=c({attendance_range:1e3,lnglat:[],address:"",signInLongitudeLatitude:[],signOutLongitudeLatitude:[],signInMark:null,signOutMark:null,addressMark:null}),h=t.query.sLngLat;t.query.sLngLat&&(i.lnglat=h.split(","));var y=t.query.inLngLat;t.query.inLngLat&&(i.signInLongitudeLatitude=y.split(","));var A=t.query.outLngLat;t.query.outLngLat&&(i.signOutLongitudeLatitude=A.split(","));var w=u(null),m=function(){g.load({key:"501e5bfaf7cfc5d3d53a9a4d9466d8b9",version:"2.0",plugins:["AMap.ToolBar","AMap.Driving"],AMapUI:{version:"1.1",plugins:[]},Loca:{version:"2.0.0"}}).then((function(t){var e=null;function n(n,r,c){var u=new t.Icon({size:[27,28],image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAcCAMAAACnDzTfAAABHVBMVEUAAAADtKj///////////8Ktqv2/Pz////5/v3s+vnI7+z////c9fO+6+klvrSm5eFWzMX////////////////////////0/PwevLISuK7O8e7k9/Z11tC86+i46ueP3dlDx7/////////////////////////////////////////////////////////8/v7o+PczwrkwwbjH7uyB2dRYzcVhz8hRysNQysNHx8Ce4t5bzcaQ3tlp0cv///////////////////////////////////////////////////////8Asqf////1/Pvu+vnA7Oma4NspvrXp+Pff9fPa8/LG7eus5eJ21c9r0sxn0cpXzMU3wrkivLIWuK7c5d5VAAAATHRSTlMA/GsT1vr58Pn39/b29vbz8d2mPy8b+vf39/b09PPy8vLj2MWjkH9oUEU6JyAKBfv39fXz8/Py8vLy8fHv7+zRvbKrnJV8c19JNSoNw2x7SgAAAS1JREFUKM9tked2wjAMRh0IYe8NZVM2dO+9lz+ge/f9H6PEPsF2yP0l+x5LskQk7m87yTRx4K7phUm95bYZdwJAMVwOGIDXpah+HL5KhM7QqiUgMRIqXUMhRy1iBhLCNbDhoYI1A/O0N/DnqUwMXqshHdtUpYQrrlLwa+zm++3l/YlFe9C5cyHKLr4wY/LLuvWBJ13GEnPPMHlkcQE95i5wZB7/wJgyF0ZXeTeR3gWQVOp9mGrMm8kirfb5+Tqe/rCoivj8f1tUJYwW4bRR1BS1K+Yy0rEpK88qxJqSWFmXXBQNIrhEyCNNOtiX3LCOfUvlslAXnwrigCstgDOi0oYvwlwFNTex0eQld5DpETvDE5QpjRi4JosMjnGYD+GcONHNANAfiCOdePB0QAT/0uBtieUrtt8AAAAASUVORK5CYII=",imageSize:[27,28]});(e=new t.Marker({icon:u,anchor:"bottom-center",position:o(t.LngLat,a(n)),title:r})).setLabel({content:"".concat(r),direction:"top",offset:[0,-2]}),i[c]=e,e.setMap(w),w.value.add(e)}function r(e,n,r){var o=e.getPosition(),a=n.getPosition(),c=o.divideBy(2).add(a.divideBy(2)),u=Math.round(o.distance(a)),l=[o,a],s=u>i.attendance_range?"#FF5A56":"#01C1B5";u>i.attendance_range&&(n.dom.classList.add("myClassM2"),n.setIcon("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAcCAMAAACnDzTfAAABIFBMVEUAAAD/XFj/////////////+fn/////8/P/////////+Pj/ZGD/////cm//1dX/xcT/t7X/kY//////////////////////X1v/2tr/1NP/bWr/6ur/5+f/4N//+vr/enf/pqT/0tH/lJH/joz//////////////////////////////////////////////////Pz/9/f/ZmP/3t3/29r/rqz/8PD/mZb/iIX/hoP/wcD/hYL/npz/////////////////////////////////////////////////////////////////////////Wlb/////9PT/6ej/1tX/vbz/npz/dHH/8fD/2tn/ycj/pqT/ko//fXr/cGz/aGT/XFg2JTGLAAAAT3RSTlMA/NZqE/3796UE+vr29vPz8fF+QS8bC/v5+Pf29vb19fTy8vLx7+Pc2cWQbUg6JyD29vX08/Py8vLy8fHv7N7RvbKroZyVc2dfUVA9NSoSehyD/QAAATZJREFUKM9tked6gkAQRRcUxF4Q7BoTa2zpvffOVWN6ef+3SBiCLIbza3bPt7t3dphD8L57o2rMg7vTOkxaKf+MeVAAbOSq2TJQ87lU/wBSImr8ImzHACXoKK2BUt6wSYagOK6NtYzhUAlheu0VAmGDJ4maHUjEpuEmhpSl0ggItPP+Mnp9omoLouU6iNPGBACGn5R2Cdali5gj9wyTR6pL6JE7w565/AIxJpdDlz/3PeTOZXFLzvf33pupJAojlKG5c05G0viDql00p/3Ne/VHXKIguNQC6n57qCLWeRUOoMNsVMgVzsXR5oZ0jmKG++lInznoLezYKr8M9+DTETursIpj5sYHKUougQZl5FFQCJvxZbnHZtEPURWMaAgX7D+DfSRWijhhXqgyAFFnnlw3I0cDbv0DsZxwvZH42EwAAAAASUVORK5CYII="));var p=new t.Polyline({strokeColor:s,strokeWeight:2,isOutline:!0,outlineColor:s});p.setMap(w.value),p.setPath(l);var f=new t.Text({text:u+"M",style:{"font-size":"12px",color:"#fff",border:"none",backgroundColor:s}});f.setPosition(c),f.setMap(w.value),"top"==r&&f.setOffset(new t.Pixel(-40,-10))}w.value=new t.Map("gpsContainer",{resizeEnable:!0,zoom:16,zooms:[2,22]}),t.plugin(["AMap.Geocoder","AMap.GeometryUtil"],(function(){if(i.lnglat&&i.lnglat.length>0){w.value.setCenter(i.lnglat,!0),e&&(e.setMap(null),e=null),n(i.lnglat,"教学点","addressMark");var c=new t.Circle({center:o(t.LngLat,a(i.lnglat)),radius:i.attendance_range,strokeColor:"#00B2A7",strokeOpacity:1,strokeWeight:2,fillColor:"#A3FFF9",fillOpacity:.14});w.value.add(c),w.value.setFitView()}i.signInLongitudeLatitude&&i.signInLongitudeLatitude.length>0&&(console.log("signInLongitudeLatitude",i.signInLongitudeLatitude),n(i.signInLongitudeLatitude,"签到点","signInMark")),i.signOutLongitudeLatitude&&i.signOutLongitudeLatitude.length>0&&(console.log("signOutLongitudeLatitude",i.signOutLongitudeLatitude),n(i.signOutLongitudeLatitude,"签退点","signOutMark")),console.log(i,"selectMapAddress"),i.signInMark&&i.addressMark&&(r(i.addressMark,i.signInMark,"top"),console.log("连线 设置签到点与教学点的距离")),i.signOutMark&&i.addressMark&&(r(i.addressMark,i.signOutMark,"bottom"),console.log("连线 设置签退点与教学点的距离"))}))})).catch((function(){}))};return l(r(e().mark((function t(){var n,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.get("/api-web/open/school/queryByParamName",{params:{paramName:"attendance_range"}});case 3:n=t.sent,r=n.data,i.attendance_range=r.attendance_range||1e3,t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:m();case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))),function(){return p("div",{class:n["amap-gps"]},[p(v,{position:"top"},{default:function(){return[p(f,null,null)]}}),p("div",{id:"gpsContainer",style:{width:"100%",height:"calc(100vh - var(--header-height))",position:"relative"}},null)])}}}))}}}))}();
|