(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/orderMap"],{70:function(e,t,r){"use strict";(function(e){r(5);n(r(4));var t=n(r(71));function n(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=r,e(t.default)}).call(this,r(1)["createPage"])},71:function(e,t,r){"use strict";r.r(t);var n=r(72),i=r(74);for(var a in i)"default"!==a&&function(e){r.d(t,e,(function(){return i[e]}))}(a);r(76);var o,d=r(11),u=Object(d["default"])(i["default"],n["render"],n["staticRenderFns"],!1,null,null,null,!1,n["components"],o);u.options.__file="pages/order/orderMap.vue",t["default"]=u.exports},72:function(e,t,r){"use strict";r.r(t);var n=r(73);r.d(t,"render",(function(){return n["render"]})),r.d(t,"staticRenderFns",(function(){return n["staticRenderFns"]})),r.d(t,"recyclableRender",(function(){return n["recyclableRender"]})),r.d(t,"components",(function(){return n["components"]}))},73:function(e,t,r){"use strict";var n;r.r(t),r.d(t,"render",(function(){return i})),r.d(t,"staticRenderFns",(function(){return o})),r.d(t,"recyclableRender",(function(){return a})),r.d(t,"components",(function(){return n}));var i=function(){var e=this,t=e.$createElement;e._self._c},a=!1,o=[];i._withStripped=!0},74:function(e,t,r){"use strict";r.r(t);var n=r(75),i=r.n(n);for(var a in n)"default"!==a&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},75:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{latitude:"",longitude:"",markers:[],indentNumber:"",riderUserId:"",orderDetails:{},rider:{},timer:"",orderId:""}},onLoad:function(e){var t=this;t.indentNumber=e.indentNumber,t.orderId=e.orderId,t.getData()},onShow:function(){var e=this;this.timer=setInterval((function(){e.getData()}),1e4)},onHide:function(){console.log(this.timer,"定时器"),clearInterval(this.timer)},methods:{getData:function(){var e=this;this.$Request.postT("/app/tbindent/userIndentMessage?indentNumber="+this.indentNumber).then((function(t){console.log(t),0==t.code&&(e.orderDetails=t.data,e.riderUserId=e.orderDetails.riderUserId,e.getLocation())}))},getLocation:function(){var e=this,t={riderUserId:this.riderUserId,lat:this.orderDetails.userLat,lng:this.orderDetails.userLng};this.$Request.getT("/timedtask/selectRiderLocation",t).then((function(t){if(0===t.code){e.latitude=t.data.riderLocation.lat,e.longitude=t.data.riderLocation.lng,e.rider=t.data;var r=t.data.mDateTime.length-14;e.rider.mDateTime=t.data.mDateTime.substring(r,t.data.mDateTime.length),e.rider.aDouble>1e3?e.rider.aDouble=Number(e.rider.aDouble/1e3).toFixed(2)+"km":0==e.rider.aDouble?e.rider.aDouble="0m":e.rider.aDouble=Number(e.rider.aDouble).toFixed(1)+"m";var n={id:2,latitude:t.data.riderLocation.lat,longitude:t.data.riderLocation.lng,iconPath:"../../static/images/order/rider.png",width:"40",height:"40"};e.markers.push(n)}}))},call:function(){e.makePhoneCall({phoneNumber:this.orderDetails.phone})},goNav:function(){e.navigateTo({url:"/pages/my/im?orderId="+this.orderId})}}};t.default=r}).call(this,r(1)["default"])},76:function(e,t,r){"use strict";r.r(t);var n=r(77),i=r.n(n);for(var a in n)"default"!==a&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},77:function(e,t,r){}},[[70,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/orderMap.js.map