1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{418:function(e,t,r){var content=r(421);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(16).default)("03051d40",content,!0,{sourceMap:!1})},419:function(e,t,r){"use strict";r.r(t);r(415),r(69),r(259);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:500},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=parseFloat(e),e=String(e).split("."),t.first=e[0],t.second=e[1],this.priceSlice=t)}}},n=(r(420),r(7)),component=Object(n.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("span",{class:(e.lineThrough?"line-through":"")+"price-format",style:{color:e.color,"font-weight":e.weight}},[e.showSubscript?r("span",{style:{"font-size":e.subscriptSize+"px","margin-right":"1px"}},[e._v("¥")]):e._e(),e._v(" "),r("span",{style:{"font-size":e.firstSize+"px","margin-right":"1px"}},[e._v(e._s(e.priceSlice.first))]),e._v(" "),e.priceSlice.second?r("span",{style:{"font-size":e.secondSize+"px"}},[e._v("."+e._s(e.priceSlice.second))]):e._e()])}),[],!1,null,null,null);t.default=component.exports},420:function(e,t,r){"use strict";r(418)},421:function(e,t,r){var o=r(15)(!1);o.push([e.i,".price-format{display:flex;align-items:baseline}",""]),e.exports=o},426:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return d})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var o=r(32);r(69),r(259),r(89),r(54),r(19),r(36),r(55),r(37),r(17),r(56),r(57),r(46);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;l<n;l++)d[l]=arguments[l];e.apply(t,d),r=o}}};function d(e){var p="";if("object"==Object(o.a)(e)){for(var t in p="?",e)p+="".concat(t,"=").concat(e[t],"&");p=p.slice(0,-1)}return p}var l=function(e){var t=document.createElement("input");t.setAttribute("value",e),document.body.appendChild(t),t.select();try{if(document.execCommand("copy"))return Promise.resolve();throw new Error}catch(e){return Promise.reject(e)}finally{document.body.removeChild(t)}},c=function(e){return new Promise((function(t,r){var o=document.getElementById(e);if(o)return t(o);try{var n=document.createElement("script");n.setAttribute("id",e),n.setAttribute("src",e),document.body.append(n),("onload"in n?function(e){return new Promise((function(t,r){e.onload=function(){this.onerror=this.onload=null,t(e)},e.onerror=function(){this.onerror=this.onload=null,r()}}))}:function(e){return new Promise((function(t,r){e.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||(this.onreadystatechange=null,t(e))}}))})(n).then((function(){return t(n)})).catch((function(){return r()}))}catch(e){r(e)}}))}},429:function(e,t,r){"use strict";r.r(t);r(415),r(71),r(54),r(19),r(87),r(69),r(86);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(7),component=Object(v.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.time>=0?r("div",[r("client-only",[e.isSlot?e._t("default"):r("span",[e._v(e._s(e.formateTime))])],2)],1):e._e()}),[],!1,null,null,null);t.default=component.exports},451:function(e,t,r){var content=r(470);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(16).default)("3e5ddd00",content,!0,{sourceMap:!1})},469:function(e,t,r){"use strict";r(451)},470:function(e,t,r){var o=r(15)(!1);o.push([e.i,".deliver-search-container .deliver-box .deliver-recode-box[data-v-c351ad84]{padding:10px 20px;background-color:#f2f2f2}.deliver-search-container .deliver-box .deliver-recode-box .recode-img[data-v-c351ad84]{position:relative;width:72px;height:72px}.deliver-search-container .deliver-box .deliver-recode-box .recode-img .float-count[data-v-c351ad84]{position:absolute;bottom:0;height:20px;width:100%;background-color:rgba(0,0,0,.5);color:#fff;font-size:12px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container[data-v-c351ad84]{flex:1}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .recode-label[data-v-c351ad84]{width:70px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-c351ad84]{height:20px;min-width:42px;border:1px solid #ff2c3c;font-size:12px;margin-left:8px;border-radius:60px;cursor:pointer}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-c351ad84]:hover{background-color:#fff}.deliver-search-container .deliver-box .deliver-flow-box[data-v-c351ad84]{padding-left:15px}",""]),e.exports=o},477:function(e,t,r){"use strict";r.r(t);var o=r(6),n=(r(48),r(415),{props:{value:{type:Boolean,default:!1},aid:{type:Number|String}},data:function(){return{showDialog:!1,deliverBuy:{},delivery:{},deliverFinish:{},deliverOrder:{},deliverShipment:{},deliverTake:{},timeLineArray:[]}},watch:{value:function(e){console.log(e,"val"),this.showDialog=e},showDialog:function(e){e&&this.aid&&(this.timeLineArray=[],this.getDeliverTraces()),this.$emit("input",e)}},methods:{getDeliverTraces:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var data,r,o,n,d,l,c,v,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return data={id:e.aid},t.next=3,e.$get("order/orderTraces",{params:data});case 3:1==(r=t.sent).code&&(o=r.data,n=o.buy,d=o.delivery,l=o.finish,c=o.order,v=o.shipment,m=o.take,e.deliverBuy=n,e.delivery=d,e.deliverFinish=l,e.deliverOrder=c,e.deliverShipment=v,e.deliverTake=m,e.timeLineArray.push(e.deliverFinish),e.timeLineArray.push(e.delivery),e.timeLineArray.push(e.deliverShipment),e.timeLineArray.push(e.deliverBuy),console.log(e.timeLineArray));case 5:case"end":return t.stop()}}),t)})))()},onCopy:function(){var e=document.createElement("input");e.value=this.deliverOrder.invoice_no,document.body.appendChild(e),e.select(),document.execCommand("Copy"),this.$message.success("复制成功"),e.remove()}}}),d=(r(469),r(7)),component=Object(d.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"deliver-search-container"},[r("el-dialog",{attrs:{visible:e.showDialog,width:"920px",title:"物流查询"},on:{"update:visible":function(t){e.showDialog=t}}},[r("div",{staticClass:"deliver-box"},[r("div",{staticClass:"deliver-recode-box row"},[r("div",{staticClass:"recode-img"},[r("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{fit:"cover",src:e.deliverOrder.image}}),e._v(" "),r("div",{staticClass:"float-count row-center"},[e._v("共"+e._s(e.deliverOrder.count)+"件商品")])],1),e._v(" "),r("div",{staticClass:"recode-info-container ml10"},[r("div",{staticClass:"row"},[r("div",{staticClass:"recode-label"},[e._v("物流状态:")]),e._v(" "),r("div",{staticClass:"primary lg",staticStyle:{"font-weight":"500"}},[e._v(e._s(e.deliverOrder.tips))])]),e._v(" "),r("div",{staticClass:"row",staticStyle:{margin:"6px 0"}},[r("div",{staticClass:"recode-label"},[e._v("快递公司:")]),e._v(" "),r("div",[e._v(e._s(e.deliverOrder.shipping_name))])]),e._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"recode-label"},[e._v("快递单号:")]),e._v(" "),r("div",[e._v(e._s(e.deliverOrder.invoice_no))]),e._v(" "),r("div",{staticClass:"copy-btn primary row-center",on:{click:e.onCopy}},[e._v("复制")])])])]),e._v(" "),r("div",{staticClass:"deliver-flow-box mt16"},[r("el-timeline",[this.deliverFinish.tips?r("el-timeline-item",[r("div",[r("div",{staticClass:"row lg"},[r("div",{staticClass:"mr8",staticStyle:{"font-weight":"500"}},[e._v("\n "+e._s(this.deliverTake.contacts)+"\n ")]),e._v(" "),r("div",{staticStyle:{"font-weight":"500"}},[e._v(e._s(this.deliverTake.mobile))])]),e._v(" "),r("div",{staticClass:"lighter mt8"},[e._v(e._s(this.deliverTake.address))])])]):e._e(),e._v(" "),this.deliverFinish.tips?r("el-timeline-item",{attrs:{timestamp:this.deliverFinish.time}},[r("div",{staticClass:"time-line-title"},[e._v(e._s(this.deliverFinish.title))]),e._v(" "),r("div",[e._v(e._s(this.deliverFinish.tips))])]):e._e(),e._v(" "),this.delivery.traces&&this.delivery.traces.length?r("el-timeline-item",{attrs:{timestamp:this.delivery.time}},[r("div",{staticClass:"time-line-title mb8"},[e._v(e._s(this.delivery.title))]),e._v(" "),e._l(this.delivery.traces,(function(t,o){return r("el-timeline-item",{key:o,attrs:{timestamp:t[0]}},[r("div",{staticClass:"muted"},[e._v(e._s(t[1]))])])}))],2):e._e(),e._v(" "),this.deliverShipment.tips?r("el-timeline-item",{attrs:{timestamp:this.deliverShipment.time}},[r("div",{staticClass:"time-line-title"},[e._v(e._s(this.deliverShipment.title))]),e._v(" "),r("div",[e._v(e._s(this.deliverShipment.tips))])]):e._e(),e._v(" "),this.deliverBuy.tips?r("el-timeline-item",{attrs:{timestamp:this.deliverBuy.time}},[r("div",{staticClass:"time-line-title"},[e._v(e._s(this.deliverBuy.title))]),e._v(" "),r("div",[e._v(e._s(this.deliverBuy.tips))])]):e._e()],1)],1)])])],1)}),[],!1,null,"c351ad84",null);t.default=component.exports},523:function(e,t,r){var content=r(600);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(16).default)("5d325d48",content,!0,{sourceMap:!1})},599:function(e,t,r){"use strict";r(523)},600:function(e,t,r){var o=r(15)(!1);o.push([e.i,".order-detail[data-v-1789497e]{padding:20px 10px}.order-detail .detail-hd[data-v-1789497e]{padding:14px 5px;border-bottom:1px solid #e5e5e5}.order-detail .address[data-v-1789497e]{padding:16px 15px}.order-detail .address>div[data-v-1789497e]{margin-bottom:10px}.order-detail .address-item[data-v-1789497e]{display:flex}.order-detail .address-item-label[data-v-1789497e]{width:70px;text-align:justify;-moz-text-align-last:justify;text-align-last:justify}.order-detail .detail-con .title[data-v-1789497e]{height:40px;background:#f2f2f2;border:1px solid #e5e5e5;padding:0 20px}.order-detail .detail-con .goods .goods-hd[data-v-1789497e],.order-detail .detail-con .goods .goods-list[data-v-1789497e]{padding:10px 20px;border:1px solid #e5e5e5;border-top:0 solid #e5e5e5}.order-detail .detail-con .goods .goods-hd .goods-item[data-v-1789497e],.order-detail .detail-con .goods .goods-list .goods-item[data-v-1789497e]{padding:10px 0}.order-detail .detail-con .goods .goods-hd .goods-item .goods-name[data-v-1789497e],.order-detail .detail-con .goods .goods-list .goods-item .goods-name[data-v-1789497e]{line-height:1.5}.order-detail .detail-con .goods .info .goods-img[data-v-1789497e]{width:72px;height:72px;margin-right:10px}.order-detail .detail-con .goods .num[data-v-1789497e],.order-detail .detail-con .goods .price[data-v-1789497e],.order-detail .detail-con .goods .total[data-v-1789497e]{width:150px}.order-detail .detail-footer[data-v-1789497e]{padding:25px 20px;justify-content:flex-end}.order-detail .detail-footer .money>div[data-v-1789497e]{text-align:right}.order-detail .detail-footer .money>div[data-v-1789497e]:first-of-type{width:80px}.order-detail .detail-footer .money>div[data-v-1789497e]:last-of-type{width:120px;display:flex;justify-content:flex-end}.order-detail .detail-footer .oprate-btn .btn[data-v-1789497e]{width:152px;height:44px;cursor:pointer;border-radius:2px}.order-detail .detail-footer .oprate-btn .btn.plain[data-v-1789497e]{border:1px solid #e5e5e5}.order-detail .selffetc-code[data-v-1789497e]{display:inline-block;padding:4px 15px;border-radius:60px;font-size:12px;background-color:#f6f6f6;color:#222}.order-detail .qr-container[data-v-1789497e]{width:120px;height:120px;padding:6px;border:1px solid #e5e5e5;border-radius:6px}",""]),e.exports=o},643:function(e,t,r){"use strict";r.r(t);var o=r(6),n=(r(71),r(48),r(429)),d=r(426),l=r(598),c=r.n(l),v={head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"user_lauout",components:{CountDown:n.default},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/detail",{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}},mounted:function(){2===this.orderDetail.delivery_type&&this.creatQrCode(this.orderDetail.pickup_code)},methods:{gopage:function(){this.$router.push("/user/after_sales")},handleclick:function(e,t){this.$router.push("/user/after_sales/apply_sale?order_id="+e+"&item_id="+t)},creatQrCode:function(content){new c.a(this.$refs.qrCodeUrl,{text:content,width:106,height:106,colorDark:"#333333",colorLight:"#ffffff",correctLevel:c.a.CorrectLevel.H})},onCopyQRCode:function(){var e=this,content=this.orderDetail.pickup_code;Object(d.a)(content).then((function(){e.$message.success("复制成功")})).catch((function(t){e.$message.error("复制失败"),console.log(t)}))},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/detail",{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:"取消",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}}}},m=(r(599),r(7)),component=Object(m.a)(v,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"order-detail"},[r("div",{staticClass:"detail-hd row-between"},[r("div",{staticClass:"lg"},[e._v("订单状态")]),e._v(" "),r("div",{class:["status lg",{primary:0==e.orderDetail.order_status}]},[e._v("\n "+e._s(e.orderDetail.order_status_desc)+"\n ")])]),e._v(" "),r("div",{staticClass:"address"},[r("div",{staticClass:"address-item"},[r("div",{staticClass:"lighter address-item-label"},[e._v("收件人:")]),e._v(" "),r("div",[e._v(e._s(e.orderDetail.consignee))])]),e._v(" "),r("div",{staticClass:"address-item"},[r("div",{staticClass:"lighter address-item-label"},[e._v("联系方式:")]),e._v(" "),r("div",[e._v(e._s(e.orderDetail.mobile))])]),e._v(" "),1===e.orderDetail.delivery_type?[r("div",{staticClass:"address-item"},[r("div",{staticClass:"lighter address-item-label"},[e._v("收货地址:")]),e._v(" "),r("div",[e._v(e._s(e.orderDetail.delivery_address))])])]:e._e(),e._v(" "),2===e.orderDetail.delivery_type?[r("div",{staticClass:"address-item"},[r("div",{staticClass:"lighter address-item-label"},[e._v("门店地址:")]),e._v(" "),r("div",[r("div",{staticClass:"bold black"},[e._v(e._s(e.orderDetail.selffetch_shop.name))]),e._v(" "),r("div",{staticClass:"lighter mt8"},[e._v("\n "+e._s(e.orderDetail.selffetch_shop.shop_address)+"\n ")]),e._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"column-center mt10"},[r("div",{ref:"qrCodeUrl",staticClass:"qr-container"}),e._v(" "),r("div",{staticClass:"selffetc-code mt10"},[r("span",[e._v("提货码:")]),e._v(" "),r("span",[e._v(e._s(e.orderDetail.pickup_code))]),e._v(" "),r("span",{staticClass:"primary ml8 pointer",on:{click:e.onCopyQRCode}},[e._v("复制")])])])])])])]:e._e()],2),e._v(" "),r("div",{staticClass:"detail-con"},[r("div",{staticClass:"title row"},[r("div",{staticClass:"flex1"},[e._v("下单时间:"+e._s(e.orderDetail.create_time))]),e._v(" "),r("div",{staticClass:"flex1"},[e._v("订单编号:"+e._s(e.orderDetail.order_sn))]),e._v(" "),r("div",{staticClass:"flex1"},[e._v("订单类型:"+e._s(e.orderDetail.order_type_desc))])]),e._v(" "),r("div",{staticClass:"goods"},[e._m(0),e._v(" "),r("div",{staticClass:"goods-list"},e._l(e.orderDetail.order_goods,(function(t,o){return r("div",{key:o,staticClass:"goods-item row"},[r("nuxt-link",{staticClass:"info row flex1",attrs:{to:"/goods_details/"+t.goods_id}},[r("el-image",{staticClass:"goods-img",attrs:{src:t.image,alt:""}}),e._v(" "),r("div",{staticClass:"goods-info flex1"},[r("div",{staticClass:"goods-name line2"},[t.is_seckill?r("el-tag",{attrs:{size:"mini",effect:"plain"}},[e._v("秒杀")]):e._e(),e._v("\n "+e._s(t.goods_name)+"\n ")],1),e._v(" "),r("div",{staticClass:"sm lighter mt8"},[e._v(e._s(t.spec_value))])])],1),e._v(" "),r("div",{staticClass:"price row-center"},[r("div",{staticClass:"price column-center"},[r("price-formate",{attrs:{price:0==e.orderDetail.order_type&&t.is_member?t.original_price:t.goods_price}}),e._v(" "),0==e.orderDetail.order_type&&t.is_member?r("div",{staticClass:"primary row"},[e._v("\n 会员价\n "),r("price-formate",{attrs:{price:t.member_price}})],1):e._e()],1)]),e._v(" "),r("div",{staticClass:"num row-center"},[e._v(e._s(t.goods_num))]),e._v(" "),r("div",{staticClass:"total row-center"},[r("price-formate",{attrs:{price:t.total_price}})],1),e._v(" "),r("div",{staticClass:"total row-center"},[1!=e.orderDetail.order_status&&2!=e.orderDetail.order_status||t.after_status_desc||e.orderDetail.cancel_btn?e._e():r("el-button",{staticClass:"apply-btn row-center mr20 sm",attrs:{size:"small"},on:{click:function(r){return r.stopPropagation(),e.handleclick(t.order_id,t.item_id)}}},[e._v("申请售后")]),e._v(" "),t.after_status_desc||1==e.orderDetail.order_status||2==e.orderDetail.order_status?e._e():r("div",[e._v("-")]),e._v(" "),t.after_status_desc?r("el-button",{staticClass:"apply-btn row-center mr20 sm",attrs:{size:"small"},on:{click:function(t){return t.stopPropagation(),e.gopage.apply(null,arguments)}}},[e._v(e._s(t.after_status_desc))]):e._e()],1)],1)})),0)]),e._v(" "),e.orderDetail.user_remark?r("div",{staticClass:"mt16"},[r("span",{staticClass:"lighter mr8"},[e._v("买家留言:")]),e._v(" "),r("span",[e._v(e._s(e.orderDetail.user_remark))])]):e._e()]),e._v(" "),r("div",{staticClass:"detail-footer row"},[r("div",[r("div",{staticClass:"column",staticStyle:{"align-items":"flex-end"}},[r("div",{staticClass:"money row mb8"},[r("div",{staticClass:"lighter"},[e._v("商品总价:")]),e._v(" "),r("div",[r("price-formate",{attrs:{price:e.orderDetail.goods_price}})],1)]),e._v(" "),r("div",{staticClass:"money row mb8"},[r("div",{staticClass:"lighter"},[e._v("运费:")]),e._v(" "),r("div",[r("price-formate",{attrs:{price:e.orderDetail.shipping_price}})],1)]),e._v(" "),0!=e.orderDetail.discount_amount?r("div",{staticClass:"money row mb16"},[r("div",{staticClass:"lighter"},[e._v("优惠券:")]),e._v(" "),r("div",[e._v("\n -\n "),r("price-formate",{attrs:{price:e.orderDetail.discount_amount}})],1)]):e._e(),e._v(" "),0!=e.orderDetail.integral_amount?r("div",{staticClass:"money row mb16"},[r("div",{staticClass:"lighter"},[e._v("积分抵扣")]),e._v(" "),r("div",[e._v("\n -\n "),r("price-formate",{attrs:{price:e.orderDetail.integral_amount}})],1)]):e._e(),e._v(" "),r("div",{staticClass:"money row"},[r("div",{staticClass:"lighter"},[e._v("实付金额:")]),e._v(" "),r("div",{staticClass:"primary"},[r("price-formate",{attrs:{price:e.orderDetail.order_amount,"subscript-size":14,"first-size":28,"second-size":28}})],1)])]),e._v(" "),r("div",{staticClass:"oprate-btn row-end mt16"},[e.orderDetail.cancel_btn?r("div",{staticClass:"btn plain row-center lighter",on:{click:function(t){return e.handleOrder(0)}}},[e._v("\n 取消订单\n ")]):e._e(),e._v(" "),e.orderDetail.delivery_btn?r("div",{staticClass:"btn plain row-center ml8 lighter",on:{click:function(t){e.showDeliverPop=!0}}},[e._v("\n 物流查询\n ")]):e._e(),e._v(" "),e.orderDetail.take_btn?r("div",{staticClass:"btn bg-primary row-center white ml8",on:{click:function(t){return e.handleOrder(2)}}},[e._v("\n 确认收货\n ")]):e._e(),e._v(" "),e.orderDetail.del_btn?r("div",{staticClass:"btn plain row-center lighter ml8",on:{click:function(t){return e.handleOrder(1)}}},[e._v("\n 删除订单\n ")]):e._e(),e._v(" "),e.orderDetail.pay_btn?r("nuxt-link",{staticClass:"btn bg-primary row-center white ml8",attrs:{to:"/payment?id="+e.orderDetail.id}},[r("span",{staticClass:"mr8"},[e._v("去付款")]),e._v(" "),e.getCancelTime(e.orderDetail.order_cancel_time)>0?r("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(" "),r("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.$createElement,r=e._self._c||t;return r("div",{staticClass:"goods-hd lighter row"},[r("div",{staticClass:"info row flex1"},[e._v("商品信息")]),e._v(" "),r("div",{staticClass:"price row-center"},[e._v("单价")]),e._v(" "),r("div",{staticClass:"num row-center"},[e._v("数量")]),e._v(" "),r("div",{staticClass:"total row-center"},[e._v("合计")]),e._v(" "),r("div",{staticClass:"total row-center"},[e._v("操作")])])}],!1,null,"1789497e",null);t.default=component.exports;installComponents(component,{PriceFormate:r(419).default,DeliverSearch:r(477).default})}}]); |