(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a9831602"],{"00fd":function(t,e,r){"use strict";r.d(e,"a",function(){return s}),r.d(e,"d",function(){return o}),r.d(e,"b",function(){return c}),r.d(e,"c",function(){return u});r("a481");var n=r("f8b7"),a=r("cba2"),i=r("74f9");function s(t){return new Promise(function(e,r){a["a"].confirm({mes:"确认取消该订单?",opts:function(){Object(n["a"])(t).then(function(t){a["a"].success("取消成功"),e(t)}).catch(function(t){a["a"].error("取消失败"),r(t)})}})})}function o(t){return new Promise(function(e,r){Object(n["n"])(t).then(function(t){a["a"].success("收货成功"),e(t)}).catch(function(t){a["a"].error("收货失败"),r(t)})})}function c(t){return new Promise(function(e,r){a["a"].confirm({mes:"确认删除该订单?",opts:function(){Object(n["c"])(t).then(function(t){a["a"].success("删除成功"),e(t)}).catch(function(t){a["a"].error("删除失败"),r(t)})}})})}function u(t,e,r){return new Promise(function(s,o){a["a"].loading.open(""),Object(n["j"])(t,e,r).then(function(t){var e=t.data;switch(a["a"].loading.close(),e.status){case"WECHAT_H5_PAY":location.replace(e.result.jsConfig.mweb_url),o(e);break;case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":case"PAY_DEFICIENCY":a["a"].toast({mes:t.msg}),o(e);break;case"SUCCESS":a["a"].success(t.msg),s(e);break;case"WECHAT_PAY":Object(i["pay"])(e.result.jsConfig).then(function(){s(e)})}}).catch(function(t){a["a"].loading.close(),a["a"].toast({mes:t.msg||"订单支付失败"})})})}},"3b8d":function(t,e,r){"use strict";r.d(e,"a",function(){return s});var n=r("795b"),a=r.n(n);function i(t,e,r,n,i,s,o){try{var c=t[s](o),u=c.value}catch(d){return void r(d)}c.done?e(u):a.a.resolve(u).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new a.a(function(n,a){var s=t.apply(e,r);function o(t){i(s,n,a,o,c,"next",t)}function c(t){i(s,n,a,o,c,"throw",t)}o(void 0)})}}},"713c":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"orderGoods"},[r("div",{staticClass:"total"},[t._v("共"+t._s(t.cartInfo.length)+"件商品")]),r("div",{staticClass:"goodWrapper"},t._l(t.cartInfo,function(e){return r("div",{key:e.id,staticClass:"item acea-row row-between-wrapper"},[r("div",{staticClass:"pictrue"},[r("img",{staticClass:"image",attrs:{src:e.productInfo.image}})]),r("div",{staticClass:"text"},[r("div",{staticClass:"acea-row row-between-wrapper"},[r("div",{staticClass:"name line1"},[t._v(t._s(e.productInfo.store_name))]),r("div",{staticClass:"num"},[t._v("x "+t._s(e.cart_num))])]),e.productInfo.attrInfo?r("div",{staticClass:"attr line1"},[t._v("\n "+t._s(e.productInfo.attrInfo.suk)+"\n ")]):t._e(),r("div",{staticClass:"money font-color-red"},[t._v("¥"+t._s(e.truePrice))]),3===t.evaluate?r("div",{staticClass:"evaluate",on:{click:function(r){return t.$router.push({path:"/goods_evaluate/"+e.unique})}}},[t._v("\n 评价\n ")]):t._e()])])}),0)])},a=[],i=(r("c5f6"),{name:"OrderGoods",props:{evaluate:Number,cartInfo:{type:Array,default:function(){return[]}}},data:function(){return{}},mounted:function(){},methods:{}}),s=i,o=r("2877"),c=Object(o["a"])(s,n,a,!1,null,null,null);e["a"]=c.exports},"795b":function(t,e,r){t.exports=r("696e")},"92b7":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"payment",class:!0===t.value?"on":""},[r("div",{staticClass:"title acea-row row-center-wrapper"},[t._v("\n 选择付款方式"),r("span",{staticClass:"iconfont icon-guanbi",on:{click:t.close}})]),-1!==t.types.indexOf("weixin")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("weixin")}}},[t._m(0),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("alipay")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("alipay")}}},[t._m(1),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("yue")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("yue")}}},[r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-yuezhifu"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("余额支付")]),r("div",{staticClass:"info"},[t._v("\n 当前可用余额:"),r("span",{staticClass:"money"},[t._v(t._s(t.balance))])])])]),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("offline")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("offline")}}},[t._m(2),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e()]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"mask",on:{click:t.close}})])},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-weixinzhifu"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("微信支付")]),r("div",{staticClass:"info"},[t._v("使用微信快捷支付")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-zhifubao"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("支付宝支付")]),r("div",{staticClass:"info"},[t._v("使用线上支付宝支付")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-yuezhifu1"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("线下支付")]),r("div",{staticClass:"info"},[t._v("选择线下付款方式")])])])}],i=(r("c5f6"),{name:"Payment",props:{value:{type:Boolean,default:!1},balance:{type:[Number,String],default:0},types:{type:Array,default:function(){return["weixin","alipay","yue","offline"]}}},data:function(){return{}},mounted:function(){},methods:{checked:function(t){this.$emit("checked",t),this.close()},close:function(){this.$emit("input",!1)}}}),s=i,o=(r("e79a"),r("2877")),c=Object(o["a"])(s,n,a,!1,null,"681d9c28",null);e["a"]=c.exports},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",o=a.toStringTag||"@@toStringTag";function c(t,e,r,n){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),s=new j(n||[]);return i._invoke=x(t,r,s),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=c;var d="suspendedStart",l="suspendedYield",f="executing",v="completed",p={};function h(){}function _(){}function y(){}var w={};w[i]=function(){return this};var m=Object.getPrototypeOf,C=m&&m(m(L([])));C&&C!==r&&n.call(C,i)&&(w=C);var g=y.prototype=h.prototype=Object.create(w);function b(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function I(t){function e(r,a,i,s){var o=u(t[r],t,a);if("throw"!==o.type){var c=o.arg,d=c.value;return d&&"object"===typeof d&&n.call(d,"__await")?Promise.resolve(d.__await).then(function(t){e("next",t,i,s)},function(t){e("throw",t,i,s)}):Promise.resolve(d).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,s)})}s(o.arg)}var r;function a(t,n){function a(){return new Promise(function(r,a){e(t,n,r,a)})}return r=r?r.then(a,a):a()}this._invoke=a}function x(t,e,r){var n=d;return function(a,i){if(n===f)throw new Error("Generator is already running");if(n===v){if("throw"===a)throw i;return S()}r.method=a,r.arg=i;while(1){var s=r.delegate;if(s){var o=O(s,r);if(o){if(o===p)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=u(t,e,r);if("normal"===c.type){if(n=r.done?v:l,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=u(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,s=function r(){while(++a=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var c=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(c&&u){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;E(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=n}catch(a){Function("r","regeneratorRuntime = r")(n)}},a639:function(t,e,r){},afa3:function(t,e,r){t.exports=r.p+"h5/img/line.05bf1c84.jpg"},e68f:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"order-details"},[r("div",{staticClass:"header bg-color-red acea-row row-middle",class:t.refundOrder?"on":""},[t.refundOrder?t._e():r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:t.orderInfo.status_pic}})]),r("div",{staticClass:"data",class:t.refundOrder?"on":""},[r("div",{staticClass:"state"},[t._v(t._s(t.orderInfo._status._msg))]),r("div",[t._v("\n "+t._s(t.orderInfo.add_time_y)),r("span",{staticClass:"time"},[t._v(t._s(t.orderInfo.add_time_h))])])])]),t.refundOrder?t._e():[r("div",{staticClass:"nav"},[r("div",{staticClass:"navCon acea-row row-between-wrapper"},[r("div",{class:{on:0===t.status.type||9===t.status.type}},[t._v("\n 待付款\n ")]),r("div",{class:{on:1===t.status.type}},[t._v("待发货")]),r("div",{class:{on:2===t.status.type}},[t._v("待收货")]),r("div",{class:{on:3===t.status.type}},[t._v("待评价")]),r("div",{class:{on:4===t.status.type}},[t._v("已完成")])]),r("div",{staticClass:"progress acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont",class:[0===t.status.type||9===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=0?"font-color-red":""]}),r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>0&&9!=t.status.type}}),r("div",{staticClass:"iconfont",class:[1===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=1&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]}),r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>1&&6!=t.status.type&&9!=t.status.type}}),r("div",{staticClass:"iconfont icon-yuandianxiao",class:[2===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=2&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]}),r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>2&&6!=t.status.type&&9!=t.status.type}}),r("div",{staticClass:"iconfont icon-yuandianxiao",class:[3===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=3&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]}),r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>3&&6!=t.status.type&&9!=t.status.type}}),r("div",{staticClass:"iconfont icon-yuandianxiao",class:[4==t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=4&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]})])]),r("div",{staticClass:"address"},[r("div",{staticClass:"name"},[t._v("\n "+t._s(t.orderInfo.real_name)),r("span",{staticClass:"phone"},[t._v(t._s(t.orderInfo.user_phone))])]),r("div",[t._v(t._s(t.orderInfo.user_address))])]),t._m(0)],r("OrderGoods",{attrs:{evaluate:t.status.type||0,cartInfo:t.orderInfo.cartInfo||[]}}),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("订单编号:")]),r("div",{staticClass:"conter acea-row row-middle row-right"},[t._v("\n "+t._s(t.orderInfo.order_id)),r("span",{staticClass:"copy copy-data",attrs:{"data-clipboard-text":t.orderInfo.order_id}},[t._v("复制")])])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("下单时间:")]),r("div",{staticClass:"conter"},[t._v("\n "+t._s(t.orderInfo.add_time_y+" "+t.orderInfo.add_time_h)+"\n ")])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("订单类型:")]),r("div",{staticClass:"conter"},[t._v("\n "+t._s(t.orderTypeName)+"\n ")])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("支付状态:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.paid?"已支付":"未支付"))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("支付方式:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo._status._payType))])]),t.orderInfo.mark?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("买家留言:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.mark))])]):t._e()]),0!=t.orderInfo.status?r("div",["express"===t.orderInfo.delivery_type?r("div",{staticClass:"wrapper"},[t._m(1),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("快递公司:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_name||""))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("快递号:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_id||""))])])]):r("div",{staticClass:"wrapper"},[t._m(2),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送人:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_name||""))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送电话:")]),r("div",{staticClass:"conter acea-row row-middle row-right"},[t._v("\n "+t._s(t.orderInfo.delivery_id||"")),r("span",{staticClass:"copy"},[t._v("拨打")])])])])]):t._e(),t.refundOrder?r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("收货人:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.real_name))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("联系电话:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.user_phone))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("收货地址:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.user_address))])])]):t._e(),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("支付金额:")]),r("div",{staticClass:"conter"},[t._v("¥"+t._s(t.orderInfo.total_price))])]),t.orderInfo.coupon_price>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("优惠券抵扣:")]),r("div",{staticClass:"conter"},[t._v("-¥"+t._s(t.orderInfo.coupon_price))])]):t._e(),t.orderInfo.use_integral>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("积分抵扣:")]),r("div",{staticClass:"conter"},[t._v("-¥"+t._s(t.orderInfo.deduction_price))])]):t._e(),t.orderInfo.pay_postage>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("运费:")]),r("div",{staticClass:"conter"},[t._v("¥"+t._s(t.orderInfo.pay_postage))])]):t._e(),r("div",{staticClass:"actualPay acea-row row-right"},[t._v("\n 实付款:"),r("span",{staticClass:"money font-color-red"},[t._v("¥"+t._s(t.orderInfo.pay_price))])])]),!t.refundOrder&&t.offlineStatus?r("div",{staticStyle:{height:"1.2rem"}}):t._e(),!t.refundOrder&&t.offlineStatus?r("div",{staticClass:"footer acea-row row-right row-middle"},[0===t.status.type?[r("div",{staticClass:"bnt cancel",on:{click:t.cancelOrder}},[t._v("取消订单")]),r("div",{staticClass:"bnt bg-color-red",on:{click:function(e){t.pay=!0}}},[t._v("立即付款")])]:t._e(),1===t.status.type?[r("div",{staticClass:"bnt cancel",on:{click:function(e){return t.$router.push({path:"/order/refund/"+t.orderInfo.order_id})}}},[t._v("\n 申请退款\n ")])]:t._e(),2===t.status.type?[r("div",{staticClass:"bnt default",on:{click:function(e){return t.$router.push({path:"/order/logistics/"+t.orderInfo.order_id})}}},[t._v("\n 查看物流\n ")]),r("div",{staticClass:"bnt bg-color-red",on:{click:t.takeOrder}},[t._v("\n 确认收货\n ")])]:t._e(),3===t.status.type&&"express"===t.orderInfo.delivery_type?[r("div",{staticClass:"bnt default",on:{click:function(e){return t.$router.push({path:"/order/logistics/"+t.orderInfo.order_id})}}},[t._v("\n 查看物流\n ")])]:t._e(),4===t.status.type?[r("div",{staticClass:"bnt cancel",on:{click:t.delOrder}},[t._v("\n 删除订单\n ")]),r("div",{staticClass:"bnt default",on:{click:function(e){return t.$router.push({path:"/order/logistics/"+t.orderInfo.order_id})}}},[t._v("\n 查看物流\n ")])]:t._e(),6===t.status.type?[r("div",{staticClass:"bnt bg-color-red",on:{click:function(e){return t.$router.push({path:"/activity/group_rule/"+t.orderInfo.pink_id})}}},[t._v("\n 查看拼团\n ")])]:t._e()],2):t._e(),r("Payment",{attrs:{types:t.payType,balance:t.userInfo.now_money},on:{checked:t.toPay},model:{value:t.pay,callback:function(e){t.pay=e},expression:"pay"}})],2)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"line"},[n("img",{attrs:{src:r("afa3")}})])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送方式:")]),r("div",{staticClass:"conter"},[t._v("\n 发货\n ")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送方式:")]),r("div",{staticClass:"conter"},[t._v("\n 送货\n ")])])}],i=(r("96cf"),r("3b8d")),s=(r("a481"),r("7f7f"),r("cebc")),o=r("713c"),c=r("f8b7"),u=r("b311"),d=r.n(u),l=r("92b7"),f=r("ed08"),v=r("2f62"),p=r("00fd"),h="OrderDetails",_={name:h,components:{OrderGoods:o["a"],Payment:l["a"]},props:{},data:function(){return{offlinePayStatus:2,orderTypeName:"普通订单",orderTypeNameStatus:!0,offlineStatus:!0,id:this.$route.params.id,orderInfo:{_status:{}},status:{},pay:!1,payType:["yue","weixin"],from:Object(f["d"])()?"weixin":"weixinh5"}},computed:Object(s["a"])({refundOrder:function(){return this.orderInfo.refund_status>0}},Object(v["b"])(["userInfo"])),watch:{$route:function(t){t.name===h&&this.id!==t.params.id&&(this.id=t.params.id,this.getDetail())}},inject:["app"],mounted:function(){this.getDetail(),this.$nextTick(function(){var t=this,e=document.getElementsByClassName("copy-data"),r=new d.a(e);r.on("success",function(){t.$dialog.success("复制成功")})})},methods:{goBack:function(){var t=this.app.history,e=t[t.length-1]||{};return"MyOrder"===e.name?this.$router.go(-1):this.$router.replace({path:"/order/list/"})},cancelOrder:function(){var t=this;Object(p["a"])(this.orderInfo.order_id).then(function(){setTimeout(function(){return t.goBack()},300)}).catch(function(){t.getDetail()})},takeOrder:function(){var t=this;Object(p["d"])(this.orderInfo.order_id).finally(function(){t.getDetail()})},delOrder:function(){var t=this;Object(p["b"])(this.orderInfo.order_id).then(function(){setTimeout(function(){return t.goBack()},300)})},setOfflinePayStatus:function(t){var e=this;e.offlinePayStatus=t,1===t&&!0===e.orderTypeNameStatus&&e.payType.push("offline")},getOrderStatus:function(){var t=this.orderInfo||{},e=t._status||{_type:0},r={},n=parseInt(e._type),a=t.delivery_type,i=t.seckill_id?parseInt(t.seckill_id):0,s=t.bargain_id?parseInt(t.bargain_id):0,o=t.combination_id?parseInt(t.combination_id):0;r={type:n,class_status:0},1===n&&o>0&&(r.type=6,r.class_status=1),2===n&&"express"===a&&(r.class_status=2),2===n&&(r.class_status=3),4!==n&&0!==n||(r.class_status=4),i||s||o||3!==n&&4!==n||(r.class_status=5),9==n&&(r.class_status=0,this.offlineStatus=!1),this.status=r},getDetail:function(){var t=this,e=this.id;if(!e)return this.$dialog.error("订单不存在");Object(c["i"])(e).then(function(e){t.orderInfo=e.data,t.getOrderStatus(),t.orderInfo.combination_id>0?(t.orderTypeName="拼团订单",t.orderTypeNameStatus=!1):t.orderInfo.bargain_id>0?(t.orderTypeName="砍价订单",t.orderTypeNameStatus=!1):t.orderInfo.seckill_id>0&&(t.orderTypeName="秒杀订单",t.orderTypeNameStatus=!1),t.setOfflinePayStatus(t.orderInfo.offlinePayStatus)}).catch(function(e){t.$dialog.error(e.msg)})},toPay:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return r=this,t.next=3,Object(p["c"])(this.orderInfo.order_id,e,r.from);case 3:r.getDetail();case 4:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}()}},y=_,w=r("2877"),m=Object(w["a"])(y,n,a,!1,null,null,null);e["default"]=m.exports},e79a:function(t,e,r){"use strict";var n=r("a639"),a=r.n(n);a.a}}]); //# sourceMappingURL=chunk-a9831602.0bcc7d97.js.map