(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/orderDetail"],{"210e":function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement,i=(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),n=e.vipMoney>0?e.vipMoney.toFixed(2):null,o=e._f("orderType")(e.item);e.$mp.data=Object.assign({},{$root:{m0:i,g0:n,f0:o}})},a=[]},4535:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("307c"),o=(i("dac6"),{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,[encoded data, 4176 characters]"}},onLoad:function(e){this.orderId=e.id,this.loadOrder()},computed:{payAllMoney:function(){return this.vipMoney+ +this.item.total_price}},methods:{space:function(t,i){var n=e.getStorageSync("latlon");console.log(n);var o=n.split(","),a=o[0],r=o[1];console.log(t,i,a,r,"位置信息");var c=t*Math.PI/180,d=a*Math.PI/180,u=c-d,s=i*Math.PI/180-r*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,n.orderAdminDetail)({},t.orderId).then((function(i){t.item=i.data,console.log(t.item,"item+++++++++++++"),t.item.cartInfo.forEach((function(e){t.vipMoney+=1*e.vip_truePrice})),e.status=i.data._status,console.log(i),1===i.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 i=t.unique,n=t.is_reply;0==n?e.navigateTo({url:"/pages/order/evaluate?unique="+i}):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,n.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=o}).call(this,i("543d")["default"])},"7a51":function(e,t,i){"use strict";i.r(t);var n=i("210e"),o=i("f42f");for(var a in o)"default"!==a&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("9462");var r,c=i("f0c5"),d=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);t["default"]=d.exports},9462:function(e,t,i){"use strict";var n=i("fbf9"),o=i.n(n);o.a},de13:function(e,t,i){"use strict";(function(e){i("5935");n(i("66fd"));var t=n(i("7a51"));function n(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=i,e(t.default)}).call(this,i("543d")["createPage"])},f42f:function(e,t,i){"use strict";i.r(t);var n=i("4535"),o=i.n(n);for(var a in n)"default"!==a&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},fbf9:function(e,t,i){}},[["de13","common/runtime","common/vendor"]]]);