(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/paotuiMap"],{190:function(e,t,r){"use strict";(function(e){r(5);n(r(4));var t=n(r(191));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"])},191:function(e,t,r){"use strict";r.r(t);var n=r(192),i=r(194);for(var a in i)"default"!==a&&function(e){r.d(t,e,(function(){return i[e]}))}(a);r(196);var o,u=r(11),d=Object(u["default"])(i["default"],n["render"],n["staticRenderFns"],!1,null,null,null,!1,n["components"],o);d.options.__file="pages/order/paotuiMap.vue",t["default"]=d.exports},192:function(e,t,r){"use strict";r.r(t);var n=r(193);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"]}))},193: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},194:function(e,t,r){"use strict";r.r(t);var n=r(195),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},195: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:"",XCXIsSelect:"是"}},onLoad:function(t){this.XCXIsSelect=this.$queue.getData("XCXIsSelect"),"否"==this.XCXIsSelect?(this.getGuize(),e.setNavigationBarTitle({title:"隐私政策"})):e.setNavigationBarTitle({title:"地图"});var r=this;r.indentNumber=t.indentNumber,r.getData()},onShow:function(){var e=this;this.timer=setInterval((function(){e.getLocation()}),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){if(console.log(t),0==t.code){e.orderDetails=t.data,console.log(e.orderDetails.avatar);var r={id:1,latitude:t.data.userLat,longitude:t.data.userLng,iconPath:"../../static/images/order/01.png",width:"40",height:"40"};e.markers.push(r),e.riderUserId=e.orderDetails.riderUserId,e.getLocation(),console.log(e.markers)}}))},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,e.rider.mDateTime=t.data.mDateTime.split(" "),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 r={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(r)}}))},call:function(){e.makePhoneCall({phoneNumber:this.orderDetails.phone})},goNav:function(){e.navigateTo({url:"/pageA/kefu/kefu"})}}};t.default=r}).call(this,r(1)["default"])},196:function(e,t,r){"use strict";r.r(t);var n=r(197),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},197:function(e,t,r){}},[[190,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/paotuiMap.js.map