(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/orderDetail"],{419:function(e,t,n){"use strict";(function(e){var t=n(3);n(25);t(n(24));var i=t(n(420));wx.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["createPage"])},420:function(e,t,n){"use strict";n.r(t);var i=n(421),r=n(423);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n(425);var a,c=n(39),d=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],a);d.options.__file="pages/order/orderDetail.vue",t["default"]=d.exports},421:function(e,t,n){"use strict";n.r(t);var i=n(422);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},422:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return o})),n.d(t,"components",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,2==e.item.shipping_type&&0!=e.item.store_id?e.space(e.item.system_store.latitude,e.item.system_store.longitude):null),i=e.vipMoney>0?e.vipMoney.toFixed(2):null,r=e._f("orderType")(e.item);e._isMounted||(e.e0=function(t){"express"==e.item.delivery_type&&e.towuliu(e.item)}),e.$mp.data=Object.assign({},{$root:{m0:n,g0:i,f0:r}})},o=!1,a=[];r._withStripped=!0},423:function(e,t,n){"use strict";n.r(t);var i=n(424),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},424:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(51),r=(n(33),{filters:{orderType:function(e){return e.combination_id>0?"拼团订单":e.seckill_id>0?"秒杀订单":e.bargain_id>0?"砍价订单":"普通订单"}},data:function(){return{store:{},isAlready:!1,isZt:!1,refund:"",reason:"",value:["1","2","3","4","5","6","7","8",9,10,11,12,13],orderId:"",item:{_status:{}},status:[],vipMoney:0,addressImg:"data:image/png;base64, "}},onLoad:function(e){this.orderId=e.id,this.loadOrder()},computed:{payAllMoney:function(){return this.vipMoney+ +this.item.total_price}},methods:{space:function(t,n){var i=e.getStorageSync("latlon");console.log(i);var r=i.split(","),o=r[0],a=r[1];console.log(t,n,o,a,"位置信息");var c=t*Math.PI/180,d=o*Math.PI/180,u=c-d,s=n*Math.PI/180-a*Math.PI/180,l=2*Math.asin(Math.sqrt(Math.pow(Math.sin(u/2),2)+Math.cos(c)*Math.cos(d)*Math.pow(Math.sin(s/2),2)));return l*=6378.137,l=Math.round(1e4*l)/1e4,l>1?l.toFixed(2)+"km":1e3*l+"m"},expressCheck:function(t){e.navigateTo({url:"/pages/order/expressInfo?id="+t.id})},loadOrder:function(){var e=this,t=this;(0,i.orderDetail)({},t.orderId).then((function(n){t.item=n.data,console.log(t.item,"item+++++++++++++"),t.item.cartInfo.forEach((function(e){t.vipMoney+=1*e.vip_truePrice})),e.status=n.data._status,console.log(n),1===n.data.status&&(t.isAlready=!0)}))},towuliu:function(e){var t=e.delivery_id;window.location.href="https://m.kuaidi100.com/result.jsp?nu="+t},evaluate:function(t){var n=t.unique,i=t.is_reply;0==i?e.navigateTo({url:"/pages/order/evaluate?unique="+n}):e.showToast({title:"已评价！",duration:1500,icon:"none"})},copyOrderId:function(t){e.setClipboardData({data:t,success:function(t){e.showToast({title:"复制成功",duration:1500})}})},orderTake:function(){var t=this;e.showModal({title:"是否确认收货？",success:function(){(0,i.orderTake)({uni:t.item.order_id}).then((function(t){e.showToast({title:"收货成功"}),setTimeout((function(){e.navigateBack({delta:1})}),1500)})).catch((function(e){console.log(e)}))}})},showCode:function(){e.navigateTo({url:"/pages/order/verifyCode?code="+this.item._verify_code})}}});t.default=r}).call(this,n(1)["default"])},425:function(e,t,n){"use strict";n.r(t);var i=n(426),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},426:function(e,t,n){}},[[419,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/orderDetail.js.map