(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/cityOrder/cityOrder"],{127:function(e,n,t){"use strict";(function(e){t(5);o(t(4));var n=o(t(128));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t(1)["createPage"])},128:function(e,n,t){"use strict";t.r(n);var o=t(129),i=t(131);for(var r in i)"default"!==r&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t(133);var a,u=t(11),s=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);s.options.__file="pages/index/cityOrder/cityOrder.vue",n["default"]=s.exports},129:function(e,n,t){"use strict";t.r(n);var o=t(130);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},130:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return o}));try{o={uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,349))},uLine:function(){return t.e("uview-ui/components/u-line/u-line").then(t.bind(null,335))},uSkeleton:function(){return t.e("uview-ui/components/u-skeleton/u-skeleton").then(t.bind(null,437))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement;e._self._c},r=!1,a=[];i._withStripped=!0},131:function(e,n,t){"use strict";t.r(n);var o=t(132),i=t.n(o);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},132:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{orderDelites:{},indentNumber:"",checkCertification:"",userId:"",loading:!0}},onLoad:function(n){console.log(n),this.indentNumber=n.id;var t=this;e.getLocation({type:"wgs84",success:function(e){console.log("当前位置的经度："+e.longitude),console.log("当前位置的纬度："+e.latitude),t.longitude=e.longitude,t.latitude=e.latitude,t.taskData()}}),this.userId=t.$queue.getData("userId"),this.checkCertification=t.$queue.getData("checkCertification")},methods:{copyOrder:function(n){e.setClipboardData({data:n,success:function(){e.showToast({title:"复制成功"})}})},goStart:function(){var n=this.orderDelites.userLat,t=this.orderDelites.userLng,o=this.orderDelites.userAddressDetail;e.openLocation({latitude:Number(n),longitude:Number(t),name:o,address:o,success:function(){console.log("导航成功")},fail:function(e){console.log(e)}})},navgate:function(e){requirePlugin("routePlan");var n=this.$queue.getData("mapKey"),t=this.$queue.getData("mapName"),o=JSON.stringify({name:e.name,latitude:e.lat,longitude:e.long});wx.navigateTo({url:"plugin://routePlan/index?key="+n+"&referer="+t+"&endPoint="+o})},taskData:function(){var e=this;this.$Request.postT("/app/tbindent/indentMessage",{indentNumber:this.indentNumber,ol:this.longitude,od:this.latitude}).then((function(n){0==n.code?(n.data.distancessd>1e3?n.data.distancessd=Number(n.data.distancessd/1e3).toFixed(2)+"km":0==n.data.distancessd?n.data.distancessd="0m":n.data.distancessd=Number(n.data.distancessd).toFixed(1)+"m",e.orderDelites=n.data):console.log("res",n.data),e.loading=!1}))},bindorder:function(){var n=this;n.userId?1==n.checkCertification?e.showModal({title:"提示",content:"确认接单吗",success:function(t){t.confirm?(console.log("用户点击确定"),n.$Request.postT("/app/tbindent/indentReceiving",{indentNumber:n.indentNumber}).then((function(t){0==t.code?e.navigateTo({url:"/pages/index/orderdetail/orderdetail?id="+n.indentNumber}):(console.log("失败：",t.data),e.showToast({title:t.msg,icon:"none",duration:1500}))}))):t.cancel&&console.log("用户点击取消")}}):e.showModal({title:"提示",content:"请先实名认证后再接单",success:function(n){n.confirm?(console.log("用户点击确定"),e.navigateTo({url:"/pages/riderMy/approve/approve"})):n.cancel&&console.log("用户点击取消")}}):e.showModal({title:"提示",content:"请先登录后再接单",success:function(n){n.confirm?(console.log("用户点击确定"),e.navigateTo({url:"/pages/login/login"})):n.cancel&&console.log("用户点击取消")}})}}};n.default=t}).call(this,t(1)["default"])},133:function(e,n,t){"use strict";t.r(n);var o=t(134),i=t.n(o);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},134:function(e,n,t){}},[[127,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/index/cityOrder/cityOrder.js.map