(window.webpackJsonp=window.webpackJsonp||[]).push([[55,9,11,18],{488:function(e,t,r){var content=r(491);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(18).default)("d7ac674a",content,!0,{sourceMap:!1})},489:function(e,t,r){"use strict";r.r(t);r(300);var o={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(e){this.priceFormat()}},methods:{priceFormat:function(){var e=this.price,t={};null!==e&&(e=String(e).split("."),t.first=e[0],t.second=e[1],this.priceSlice=t)}}},n=(r(490),r(9)),component=Object(n.a)(o,(function(){var e=this,t=e._self._c;return t("span",{class:(e.lineThrough?"line-through":"")+"price-format",style:{color:e.color,"font-weight":e.weight}},[e.showSubscript?t("span",{style:{"font-size":e.subscriptSize+"px","margin-right":"1px"}},[e._v("¥")]):e._e(),e._v(" "),t("span",{style:{"font-size":e.firstSize+"px","margin-right":"1px"}},[e._v(e._s(e.priceSlice.first))]),e._v(" "),e.priceSlice.second?t("span",{style:{"font-size":e.secondSize+"px"}},[e._v("."+e._s(e.priceSlice.second))]):e._e()])}),[],!1,null,null,null);t.default=component.exports},490:function(e,t,r){"use strict";r(488)},491:function(e,t,r){var o=r(17)((function(i){return i[1]}));o.push([e.i,".price-format{align-items:baseline;display:flex}",""]),o.locals={},e.exports=o},496:function(e,t,r){"use strict";r.r(t);r(300),r(87),r(63),r(12),r(47),r(39),r(88);var o=6e4,n=36e5,d=24*n;function l(e){return(0+e.toString()).slice(-2)}var c={components:{},props:{isSlot:{type:Boolean,default:!1},time:{type:Number,default:0},format:{type:String,default:"hh:mm:ss"},autoStart:{type:Boolean,default:!0}},watch:{time:{immediate:!0,handler:function(e){e&&this.reset()}}},data:function(){return{timeObj:{},formateTime:0}},created:function(){},computed:{},methods:{createTimer:function(e){return setTimeout(e,100)},isSameSecond:function(e,t){return Math.floor(e)===Math.floor(t)},start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+1e3*this.remain,this.setTimer())},setTimer:function(){var e=this;this.tid=this.createTimer((function(){var t=e.getRemain();e.isSameSecond(t,e.remain)&&0!==t||e.setRemain(t),0!==e.remain&&e.setTimer()}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},pause:function(){this.counting=!1,clearTimeout(this.tid)},reset:function(){this.pause(),this.remain=this.time,this.setRemain(this.remain),this.autoStart&&this.start()},setRemain:function(e){var t=this.format;this.remain=e;var time,r=(time=e,{days:Math.floor(time/d),hours:l(Math.floor(time%d/n)),minutes:l(Math.floor(time%n/o)),seconds:l(Math.floor(time%o/1e3))});this.formateTime=function(e,t){var r=t.days,o=t.hours,n=t.minutes,d=t.seconds;return-1!==e.indexOf("dd")&&(e=e.replace("dd",r)),-1!==e.indexOf("hh")&&(e=e.replace("hh",l(o))),-1!==e.indexOf("mm")&&(e=e.replace("mm",l(n))),-1!==e.indexOf("ss")&&(e=e.replace("ss",l(d))),e}(t,r),this.$emit("change",r),0===e&&(this.pause(),this.$emit("finish"))}}},v=r(9),component=Object(v.a)(c,(function(){var e=this,t=e._self._c;return e.time>=0?t("div",[t("client-only",[e.isSlot?e._t("default"):t("span",[e._v(e._s(e.formateTime))])],2)],1):e._e()}),[],!1,null,null,null);t.default=component.exports},497:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return d}));r(47),r(30),r(65),r(48),r(39),r(20),r(66),r(67),r(49);var o=r(22);r(109),r(63),r(12);var n=function(e){var time=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,t=arguments.length>2?arguments[2]:void 0,r=new Date(0).getTime();return function(){var o=(new Date).getTime();if(o-r>time){for(var n=arguments.length,d=new Array(n),l=0;ldiv[data-v-00f1036b]{margin-bottom:10px}.order-detail .address-item[data-v-00f1036b]{display:flex}.order-detail .address-item-label[data-v-00f1036b]{text-align:justify;-moz-text-align-last:justify;text-align-last:justify;width:70px}.order-detail .detail-con .title[data-v-00f1036b]{background:#f2f2f2;border:1px solid #e5e5e5;height:40px;padding:0 20px}.order-detail .detail-con .goods .goods-hd[data-v-00f1036b],.order-detail .detail-con .goods .goods-list[data-v-00f1036b]{border:1px solid #e5e5e5;border-top:0 solid #e5e5e5;padding:10px 20px}.order-detail .detail-con .goods .goods-hd .goods-item[data-v-00f1036b],.order-detail .detail-con .goods .goods-list .goods-item[data-v-00f1036b]{padding:10px 0}.order-detail .detail-con .goods .goods-hd .goods-item .goods-name[data-v-00f1036b],.order-detail .detail-con .goods .goods-list .goods-item .goods-name[data-v-00f1036b]{line-height:1.5}.order-detail .detail-con .goods .info .goods-img[data-v-00f1036b]{height:72px;margin-right:10px;width:72px}.order-detail .detail-con .goods .num[data-v-00f1036b],.order-detail .detail-con .goods .price[data-v-00f1036b],.order-detail .detail-con .goods .total[data-v-00f1036b]{width:150px}.order-detail .detail-footer[data-v-00f1036b]{justify-content:flex-end;padding:25px 20px}.order-detail .detail-footer .money>div[data-v-00f1036b]{text-align:right}.order-detail .detail-footer .money>div[data-v-00f1036b]:first-of-type{width:80px}.order-detail .detail-footer .money>div[data-v-00f1036b]:last-of-type{display:flex;justify-content:flex-end;width:120px}.order-detail .detail-footer .oprate-btn .btn[data-v-00f1036b]{border-radius:2px;cursor:pointer;height:44px;width:152px}.order-detail .detail-footer .oprate-btn .btn.plain[data-v-00f1036b],.order-detail .qr-container[data-v-00f1036b]{border:1px solid hsla(0,0%,90%,.898)}.order-detail .qr-container[data-v-00f1036b]{border-radius:6px;height:120px;padding:6px;width:120px}.detail-upload .tit[data-v-00f1036b]{border-left:4px solid red;color:#333;font-size:20px;font-weight:700;line-height:1;margin-bottom:20px;padding-left:14px}.detail-upload .img-boxs[data-v-00f1036b]{align-items:center;display:flex;flex-wrap:wrap}.detail-upload .img-boxs .img[data-v-00f1036b]{border:1px solid #ededed;height:150px;margin-right:15px;margin-top:10px;width:150px}",""]),o.locals={},e.exports=o},739:function(e,t,r){"use strict";r.r(t);r(30);var o=r(8),n=(r(64),r(87),r(56),r(497),r(195)),d={head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"user",asyncData:function(e){return Object(o.a)(regeneratorRuntime.mark((function t(){var r,o,n,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.$get,o=e.query,t.next=3,r("order/getOrderDetail",{params:{id:o.id}});case 3:if(n=t.sent,data=n.data,1!=n.code){t.next=8;break}return t.abrupt("return",{orderDetail:data,id:o.id});case 8:case"end":return t.stop()}}),t)})))()},data:function(){return{orderDetail:{},showDeliverPop:!1,baseUrl:n.a.baseUrl+"/",frontend_arrayNew:[]}},mounted:function(){var e=this;2===this.orderDetail.delivery_type&&this.creatQrCode(this.orderDetail.pickup_code),this.orderDetail.frontend_array&&(this.frontend_arrayNew=this.orderDetail.frontend_array.map((function(t){return e.baseUrl+t})))},methods:{getOrderDetail:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var r,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$get("order/getOrderDetail",{params:{id:e.id}});case 2:r=t.sent,data=r.data,1==r.code&&(e.orderDetail=data);case 6:case"end":return t.stop()}}),t)})))()},handleOrder:function(e){var t=this;this.type=e,this.$confirm(this.getTipsText(e),{title:"温馨提示",center:!0,confirmButtonText:"确定",cancelButtonText:"取消",width:"300px",callback:function(e){"confirm"==e&&t.postOrder()}})},postOrder:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var r,o,n,d,code,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.type,o=e.id,n="",t.t0=r,t.next=0===t.t0?5:1===t.t0?7:2===t.t0?9:11;break;case 5:return n="order/cancel",t.abrupt("break",11);case 7:return n="order/del",t.abrupt("break",11);case 9:return n="order/confirm",t.abrupt("break",11);case 11:return t.next=13,e.$post(n,{id:o});case 13:d=t.sent,code=d.code,d.data,l=d.msg,1==code&&(e.$message({message:l,type:"success"}),1==r?setTimeout((function(){e.$router.go(-1)}),1500):e.getOrderDetail());case 18:case"end":return t.stop()}}),t)})))()},getTipsText:function(e){switch(e){case 0:return"确认取消订单吗?";case 1:return"确认删除订单吗?";case 2:return"确认收货吗?"}}},computed:{getOrderStatus:function(){return function(e){var text="";switch(e){case 0:text="待支付";break;case 1:text="待发货";break;case 2:text="待收货";break;case 3:text="已完成";break;case 4:text="订单已关闭"}return text}},getCancelTime:function(){return function(time){return time-Date.now()/1e3}}}},l=(r(694),r(9)),component=Object(l.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-detail"},[t("div",{staticClass:"detail-hd row-between"},[t("div",{staticClass:"lg"},[e._v("订单详情")]),e._v(" "),t("div",{class:["status lg",{primary:0==e.orderDetail.order_status}]},[e._v("\n "+e._s(e.orderDetail.order_status_desc)+"\n ")])]),e._v(" "),t("div",{staticClass:"address"},[t("div",{staticClass:"address-item"},[t("div",{staticClass:"lighter address-item-label"},[e._v("收件人:")]),e._v(" "),t("div",[e._v(e._s(e.orderDetail.consignee))])]),e._v(" "),t("div",{staticClass:"address-item"},[t("div",{staticClass:"lighter address-item-label"},[e._v("联系方式:")]),e._v(" "),t("div",[e._v(e._s(e.orderDetail.mobile))])]),e._v(" "),t("div",{staticClass:"address-item"},[t("div",{staticClass:"lighter address-item-label"},[e._v("收货地址:")]),e._v(" "),t("div",[e._v(e._s(e.orderDetail.delivery_address))])])]),e._v(" "),t("div",{staticClass:"detail-con"},[t("div",{staticClass:"title flex"},[t("nuxt-link",{staticClass:"flex-1 lighter sm line-1 m-r-20",staticStyle:{"min-width":"0"},attrs:{to:"/shop_street_detail?id=".concat(e.orderDetail.shop.id)}},[e._v("\n "+e._s(e.orderDetail.shop.name)+"\n ")]),e._v(" "),t("div",{staticClass:"flex-1 lighter sm"},[e._v("\n 下单时间:"+e._s(e.orderDetail.create_time)+"\n ")]),e._v(" "),t("div",{staticClass:"flex-1 lighter sm"},[e._v("\n 订单编号:"+e._s(e.orderDetail.order_sn)+"\n ")]),e._v(" "),t("div",{class:["status sm",{primary:0==e.orderDetail.order_status}]},[e._v("\n "+e._s(e.getOrderStatus(e.orderDetail.order_status))+"\n ")])],1),e._v(" "),t("div",{staticClass:"goods"},[e._m(0),e._v(" "),t("div",{staticClass:"goods-list"},e._l(e.orderDetail.order_goods,(function(r,o){return t("div",{key:o,staticClass:"goods-item flex"},[t("nuxt-link",{staticClass:"info flex flex-1",attrs:{to:"/goods_details/".concat(r.goods_id)}},[t("el-image",{staticClass:"goods-img",attrs:{src:r.image,alt:""}}),e._v(" "),t("div",{staticClass:"goods-info flex-1"},[t("div",{staticClass:"goods-name line-2"},[r.is_seckill?t("el-tag",{attrs:{size:"mini",effect:"plain"}},[e._v("秒杀")]):e._e(),e._v("\n "+e._s(r.goods_name)+"\n ")],1),e._v(" "),t("div",{staticClass:"sm lighter m-t-8"},[e._v("\n "+e._s(r.spec_value)+"\n ")])])],1),e._v(" "),t("div",{staticClass:"price"},[t("price-formate",{attrs:{price:r.goods_price}})],1),e._v(" "),t("div",{staticClass:"num flex row-center"},[e._v(e._s(r.goods_num))]),e._v(" "),t("div",{staticClass:"total flex row-center"},[t("price-formate",{attrs:{price:r.sum_price}})],1)],1)})),0)]),e._v(" "),e.orderDetail.user_remark?t("div",{staticClass:"m-t-16"},[t("span",{staticClass:"lighter m-r-8"},[e._v("买家留言:")]),e._v(" "),t("span",[e._v(e._s(e.orderDetail.user_remark))])]):e._e(),e._v(" "),e.orderDetail.delivery_content?t("div",{staticClass:"m-t-16"},[t("span",{staticClass:"lighter m-r-8"},[e._v("发货内容:")]),e._v(" "),t("span",[e._v(e._s(e.orderDetail.delivery_content))])]):e._e()]),e._v(" "),t("div",{staticClass:"detail-footer flex"},[t("div",[t("div",{staticClass:"flex-col",staticStyle:{"align-items":"flex-end"}},[t("div",{staticClass:"money flex m-b-8"},[t("div",{staticClass:"lighter"},[e._v("商品总价:")]),e._v(" "),t("div",[t("price-formate",{attrs:{price:e.orderDetail.goods_price}})],1)]),e._v(" "),t("div",{staticClass:"money flex m-b-8"},[t("div",{staticClass:"lighter"},[e._v("运费:")]),e._v(" "),t("div",[t("price-formate",{attrs:{price:e.orderDetail.shipping_price}})],1)]),e._v(" "),t("div",{staticClass:"money flex m-b-8"},[t("div",{staticClass:"lighter"},[e._v("会员抵扣:")]),e._v(" "),t("div",{staticClass:"primary"},[e._v("\n -"),t("price-formate",{attrs:{price:e.orderDetail.member_amount,color:"#FF0808"}})],1)]),e._v(" "),0!=e.orderDetail.discount_amount?t("div",{staticClass:"money flex m-b-16"},[t("div",{staticClass:"lighter"},[e._v("优惠券:")]),e._v(" "),t("div",[e._v("\n -\n "),t("price-formate",{attrs:{price:e.orderDetail.discount_amount}})],1)]):e._e(),e._v(" "),t("div",{staticClass:"money flex"},[t("div",{staticClass:"lighter"},[e._v("实付金额:")]),e._v(" "),t("div",{staticClass:"primary"},[t("price-formate",{attrs:{price:e.orderDetail.order_amount,"subscript-size":14,"first-size":28,"second-size":28}})],1)])]),e._v(" "),t("div",{staticClass:"oprate-btn flex row-right m-t-16"},[e.orderDetail.cancel_btn?t("div",{staticClass:"btn plain flex row-center lighter",on:{click:function(t){return e.handleOrder(0)}}},[e._v("\n 取消订单\n ")]):e._e(),e._v(" "),e.orderDetail.delivery_btn?t("div",{staticClass:"btn plain flex row-center m-l-8 lighter",on:{click:function(t){e.showDeliverPop=!0}}},[e._v("\n 物流查询\n ")]):e._e(),e._v(" "),e.orderDetail.take_btn?t("div",{staticClass:"btn bg-primary flex row-center white m-l-8",on:{click:function(t){return e.handleOrder(2)}}},[e._v("\n 确认收货\n ")]):e._e(),e._v(" "),e.orderDetail.del_btn?t("div",{staticClass:"btn plain flex row-center lighter m-l-8",on:{click:function(t){return e.handleOrder(1)}}},[e._v("\n 删除订单\n ")]):e._e(),e._v(" "),e.orderDetail.pay_btn?t("nuxt-link",{staticClass:"btn bg-primary flex row-center white m-l-8",attrs:{to:"/payment?id=".concat(e.orderDetail.id,"&from=order")}},[t("span",{staticClass:"mr8"},[e._v("去付款")]),e._v(" "),e.getCancelTime(e.orderDetail.order_cancel_time)>0?t("count-down",{attrs:{time:e.getCancelTime(e.orderDetail.order_cancel_time),format:"hh:mm:ss"},on:{finish:e.getOrderDetail}}):e._e()],1):e._e()],1)])]),e._v(" "),e.orderDetail.frontend_array.length>0?t("div",{staticClass:"detail-upload"},[t("div",{staticClass:"tit"},[e._v("上传合同列表")]),e._v(" "),t("div",{staticClass:"img-boxs"},e._l(e.orderDetail.frontend_array,(function(r,o){return t("div",{key:o,staticClass:"img"},[t("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.baseUrl+r,"preview-src-list":e.frontend_arrayNew}})],1)})),0)]):e._e(),e._v(" "),t("deliver-search",{attrs:{aid:e.id},model:{value:e.showDeliverPop,callback:function(t){e.showDeliverPop=t},expression:"showDeliverPop"}})],1)}),[function(){var e=this,t=e._self._c;return t("div",{staticClass:"goods-hd lighter flex"},[t("div",{staticClass:"info flex-1"},[e._v("商品信息")]),e._v(" "),t("div",{staticClass:"price flex row-center"},[e._v("商品价格")]),e._v(" "),t("div",{staticClass:"num flex row-center"},[e._v("数量")]),e._v(" "),t("div",{staticClass:"total flex row-center"},[e._v("合计")])])}],!1,null,"00f1036b",null);t.default=component.exports;installComponents(component,{PriceFormate:r(489).default,CountDown:r(496).default,DeliverSearch:r(549).default})}}]);