require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/distribution/orderDetail/index"],{"2acd":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("6af6"),a=(o("2c18"),{name:"orderDetail",components:{customForm:function(){o.e("components/customForm/index").then(function(){return resolve(o("d118"))}.bind(null,o)).catch(o.oe)},NavBar:function(){o.e("components/NavBar").then(function(){return resolve(o("a7d8"))}.bind(null,o)).catch(o.oe)}},props:{},data:function(){return{giveData:{give_integral:0,give_coupon:[]},giveCartInfo:[],order:!1,change:!1,order_id:"",orderInfo:"",status:"",title:"",payType:"",types:"",clickNum:1,goname:"",system_store:"",sum:0,iconColor:"#FFFFFF",isScrolling:!1,delivery_id:""}},watch:{"$route.params.oid":function(t){void 0!=t&&(this.order_id=t,this.getIndex())}},onLoad:function(t){this.order_id=t.id,this.goname=t.goname,this.delivery_id=t.delivery_id,this.getIndex()},onPageScroll:function(t){t.scrollTop>50?(this.isScrolling=!0,this.iconColor="#333333"):t.scrollTop<50&&(this.isScrolling=!1,this.iconColor="#FFFFFF")},methods:{more:function(){this.order=!this.order},modify:function(t){this.change=!0,this.status=t},changeclose:function(t){this.change=t},getIndex:function(){var t=this,e=this;(0,n.OrderDetail)(e.order_id).then((function(o){e.sum=(parseFloat(o.data.total_price)+parseFloat(o.data.vip_true_price)).toFixed(2),e.types=o.data._status._type,e.title=o.data._status._title,e.payType=o.data._status._payType,t.system_store=o.data.store,e.giveData.give_coupon=o.data.give_coupon,e.giveData.give_integral=o.data.give_integral;var n=[],a=[];o.data.cartInfo.forEach((function(t,e){1==t.is_gift?a.push(t):n.push(t)})),o.data.cartInfo=n,e.$set(e,"giveCartInfo",a);for(var i=[],r=0;r<o.data.user_address.length;r++)" "!=o.data.user_address[r]&&i.push(o.data.user_address[r]);o.data.user_address=i.join(""),e.orderInfo=o.data}),(function(t){}))},showMaoLocation:function(e,o,n,a){if(!e||!o)return this.$util.Tips({title:"缺少经纬度信息无法查看地图！"});t.openLocation({latitude:parseFloat(e),longitude:parseFloat(o),scale:8,name:n,address:a,success:function(){}})},makePhone:function(e){t.makePhoneCall({phoneNumber:e})},copyNum:function(e){t.setClipboardData({data:e})},getpreviewImage:function(e){t.previewImage({urls:this.orderInfo.delivery_voucher_img,current:this.orderInfo.delivery_voucher_img[e]})}}});e.default=a}).call(this,o("df3c")["default"])},"7fcc":function(t,e,o){"use strict";o.r(e);var n=o("b475"),a=o("be8c");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("c901");var r=o("828b"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"51c078b2",null,!1,n["a"],void 0);e["default"]=c.exports},b108:function(t,e,o){},b475:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=(t._self._c,t.giveData.give_coupon.length),n=(parseFloat(t.orderInfo.total_price)+parseFloat(t.orderInfo.vip_true_price)).toFixed(2),a=t.__map(t.orderInfo.promotions_detail,(function(e,o){var n=t.__get_orig(e),a=parseFloat(e.promotions_price),i=a?parseFloat(e.promotions_price).toFixed(2):null;return{$orig:n,m0:a,g2:i}}));t.$mp.data=Object.assign({},{$root:{g0:o,g1:n,l0:a}})},a=[]},be8c:function(t,e,o){"use strict";o.r(e);var n=o("2acd"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},c901:function(t,e,o){"use strict";var n=o("b108"),a=o.n(n);a.a},d3d9:function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("f076");n(o("3240"));var a=n(o("7fcc"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(a.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])}},[["d3d9","common/runtime","common/vendor"]]]);