(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/pages/merge-order/merge-order"],{403:function(e,n,r){"use strict";(function(e,n){var t=r(4);r(26);t(r(25));var o=t(r(404));e.__webpack_require_UNI_MP_PLUGIN__=r,n(o.default)}).call(this,r(1)["default"],r(2)["createPage"])},404:function(e,n,r){"use strict";r.r(n);var t=r(405),o=r(407);for(var i in o)["default"].indexOf(i)<0&&function(e){r.d(n,e,(function(){return o[e]}))}(i);r(409);var u,a=r(32),d=Object(a["default"])(o["default"],t["render"],t["staticRenderFns"],!1,null,"08a4eed8",null,!1,t["components"],u);d.options.__file="pagesA/pages/merge-order/merge-order.vue",n["default"]=d.exports},405:function(e,n,r){"use strict";r.r(n);var t=r(406);r.d(n,"render",(function(){return t["render"]})),r.d(n,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(n,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(n,"components",(function(){return t["components"]}))},406:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"render",(function(){return o})),r.d(n,"staticRenderFns",(function(){return u})),r.d(n,"recyclableRender",(function(){return i})),r.d(n,"components",(function(){return t}));var o=function(){var e=this,n=e.$createElement,r=(e._self._c,e.orderList[0]&&e.orderList[0].user?e._f("getName")(e.orderList[0].user.nickname,e.orderList[0].user.phone?10:16):null),t=e.__map(e.orderList,(function(n,r){var t=e.__get_orig(n),o=e.__map(n.goods,(function(n,r){var t=e.__get_orig(n),o=n.sku[0].price!=n.vip_price?Number(n.price)-Number(n.vip_price)||0:null,i=e.subNum(n),u=e.subtotal(n);return{$orig:t,m0:o,m1:i,m2:u}}));return{$orig:t,l0:o}}));e.$mp.data=Object.assign({},{$root:{f0:r,l1:t}})},i=!1,u=[];o._withStripped=!0},407:function(e,n,r){"use strict";r.r(n);var t=r(408),o=r.n(t);for(var i in t)["default"].indexOf(i)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(i);n["default"]=o.a},408:function(e,n,r){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(71),o={data:function(){return{order_no:"",orderList:[]}},onLoad:function(e){e.order_no&&(this.order_no=e.order_no,this.getOrder(this.order_no))},methods:{copy:function(n){e.setClipboardData({data:n,success:function(n){e.showToast({title:"复制成功"})},fail:function(){e.showToast({title:"复制失败",icon:"none"})}})},sendGoods:function(){var n=this.orderList,r=[];n.map((function(e){r.push(e.order_no)}));var t=r.join(","),o=this.orderList[0].user_id;e.navigateTo({url:"../delivery-method/delivery-method?order_no="+t+"&user_id="+o})},subNum:function(e){var n=0;return e.sku.map((function(e){n+=e.num})),n},subtotal:function(e){var n=0;return e.sku.map((function(e){n+=e.num*e.price})),n},getOrder:function(n){var r=this;e.showLoading({title:"加载中..."}),(0,t.getNoSendOrder)({order_no:n}).then((function(n){200==n.code?r.orderList=n.data:e.showModal({content:n.data||"获取订单详情失败",showCancel:!1}),e.hideLoading()})).catch((function(n){e.hideLoading()}))}}};n.default=o}).call(this,r(2)["default"])},409:function(e,n,r){"use strict";r.r(n);var t=r(410),o=r.n(t);for(var i in t)["default"].indexOf(i)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(i);n["default"]=o.a},410:function(e,n,r){}},[[403,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesA/pages/merge-order/merge-order.js.map