(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMall/component/mall/order"],{"8dac":function(e,t,n){},"92e4":function(e,t,n){"use strict";var o=n("8dac"),r=n.n(o);r.a},"94a8":function(e,t,n){"use strict";n.r(t);var o=n("96f4"),r=n("ca97");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("92e4");var a=n("828b"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},"96f4":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.showData,(function(t,n){var o=e.__get_orig(t),r=t.goods.length;return{$orig:o,g0:r}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},"9dff":function(e,t,n){"use strict";(function(e,o){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7ca3")),a=n("8f59");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var s={name:"componentMallOrder",props:["showData"],computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,a.mapState)({themeColor:function(e){return e.app.themeColor},deliveryManagement:function(e){return e.app.deliveryManagement}})),methods:{toDetails:function(e){this.$util.toPage({mode:1,path:"/pagesMall/order/details?order_id="+e})},handlePayment:function(e,t){this.$util.toPage({mode:1,path:"/pagesMall/order/payment?money=".concat(t,"&id=").concat(e)})},handleCancel:function(t){var n=this;e.showModal({title:"提示",content:"确认取消该订单吗?",confirmText:"确认取消",confirmColor:this.themeColor,cancelText:"我再想想",cancelColor:"#999999",success:function(o){o.confirm&&(e.showLoading({title:"加载中",mask:!0}),n.$util.request("mall.delOrder",{order_id:t}).then((function(t){e.hideLoading(),1==t.code?(e.showToast({title:"取消成功",duration:1e3}),n.$emit("getOrderList")):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("取消订单",t)})))}})},handleRefund:function(e){this.$util.toPage({mode:1,path:"/pagesMall/refund/apply?id="+e})},handleConfirm:function(t,n){var r=this;1==this.deliveryManagement?o.openBusinessView?o.openBusinessView({businessType:"weappOrderConfirm",extraData:{transaction_id:n},success:function(n){"success"===n.extraData.status?(e.showLoading({title:"加载中",mask:!0}),r.$util.request("mall.orderCollect",{id:t}).then((function(t){e.hideLoading(),1==t.code?(e.showToast({title:"签收成功",icon:"success",duration:1500}),r.$emit("getOrderList")):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("确认收货",t)}))):console.error("调用微信收货",n)},fail:function(e){console.error("调用微信收货",e)}}):e.showToast({title:"您的微信版本过低，请升级微信版本后重试",duration:2e3,icon:"none"}):e.showModal({title:"提示",content:"确认此商品已收货，\n点击确认收货后订单完成?",confirmText:"确认收货",confirmColor:this.themeColor,cancelText:"我再想想",cancelColor:"#999999",success:function(n){n.confirm&&(e.showLoading({title:"加载中",mask:!0}),r.$util.request("mall.orderCollect",{id:t}).then((function(t){e.hideLoading(),1==t.code?(e.showToast({title:"签收成功",duration:1500}),r.$emit("getOrderList")):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("确认收货",t)})))}})}}};t.default=s}).call(this,n("df3c")["default"],n("3223")["default"])},ca97:function(e,t,n){"use strict";n.r(t);var o=n("9dff"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pagesMall/component/mall/order-create-component',
    {
        'pagesMall/component/mall/order-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("94a8"))
        })
    },
    [['pagesMall/component/mall/order-create-component']]
]);
