chunk-ed309448.2fd145d9.js 11 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed309448"],{"3f18":function(t,s,e){"use strict";e("a07c")},"4cd9":function(t,s,e){"use strict";e.r(s);e("28a5");var n=function(){var t=this,s=t._self._c;return s("div",{staticClass:"wrap"},[s("div",{staticClass:"middle-container"},[s("p",{staticClass:"middle-container-top"},[t._v(t._s(t.titleMap[t.info.order_status]||"订单详情"))]),-1===t.refundInfo.refund_status?s("div",{staticClass:"order-msg-module"},[s("p",{staticClass:"order-msg-label",staticStyle:{color:"#FF870E"}},[t._v("失败原因")]),s("p",{staticClass:"order-number"},[t._v(t._s(t.refundInfo.refund_refuse_reason))])]):t._e(),t._l(t.info.order_goods,(function(e,n){return s("div",{key:n,staticClass:"item-module"},[s("div",{staticClass:"item-big"},[s("div",{staticClass:"msg-module"},[s("img",{staticClass:"produt-img",attrs:{src:t.BASE_URL+e.sku_image}}),s("div",{staticClass:"msg-module-sidebar"},[s("p",{staticClass:"produt-title"},[t._v(t._s(e.sku_name))]),s("p",{staticClass:"produt-tag"})])])]),s("div",{staticClass:"produt-msg-box"},t._l(e.sku_spec_format,(function(e,n){return s("p",{key:n,staticClass:"produt-msg"},[t._v("\n "+t._s(e.spec_name)+":"+t._s(e.spec_value_name)+"\n ")])})),0),s("div",{staticClass:"price-box"},[s("span",{staticClass:"produt-price"},[t._v("¥ "+t._s(e.price))]),s("span",{staticClass:"produt-price-del"},[t._v("¥ "+t._s(e.cost_price))])]),s("div",{staticClass:"calc-box"},[s("span",{staticClass:"calc-num"},[t._v(t._s(e.num))])]),s("div",{staticClass:"total-price-box"},[s("span",{staticClass:"font-1"},[t._v("¥ "+t._s(e.goods_money))]),s("span",{staticClass:"font-2"},[t._v("(运费:"+t._s(t.info.delivery_money)+")")])])])})),s("div",{staticClass:"price-module"},[s("p",{staticClass:"price-module-label"},[t._v("价格明细")]),s("div",{staticClass:"price-module-between"},[s("span",{staticClass:"font-6"},[t._v("商品总价(共"+t._s(t.info.goods_num)+"件宝贝)")]),s("span",{staticClass:"font-6"},[t._v("¥"+t._s(t.info.goods_money))])]),s("div",{staticClass:"price-module-between"},[s("span",{staticClass:"font-6"},[t._v("运费")]),s("span",{staticClass:"font-6"},[t._v("¥"+t._s(t.info.delivery_money||"0.00"))])]),s("div",{staticClass:"price-module-between"},[s("span",{staticClass:"font-7"},[t._v("实付款")]),s("span",{staticClass:"font-8"},[t._v("¥"+t._s(t.info.pay_money))])])]),s("div",{staticClass:"order-msg-module"},[s("p",{staticClass:"order-msg-label"},[t._v("退款说明")]),s("p",{staticClass:"order-number"},[t._v(t._s(t.refundInfo.refund_remark||t.refundInfo.refund_reason||""))])]),s("div",{staticClass:"order-msg-module"},[s("p",{staticClass:"order-msg-label"},[t._v("上传图片")]),s("div",{staticClass:"order-msg-module-imgs"},t._l(t.refundInfo.refund_image.split(","),(function(e,n){return s("img",{key:n,attrs:{src:t.BASE_URL+e}})})),0)]),s("div",{staticClass:"order-msg-module"},[s("p",{staticClass:"order-msg-label"},[t._v("退款信息")]),s("p",{staticClass:"order-number"},[t._v("订单编号:"+t._s(t.refundInfo.refund_no))]),s("ul",{staticClass:"timeline"},[s("li",[s("span",{staticClass:"font-9"},[t._v("卖家退款")]),s("span",{staticClass:"circle-row"}),-1===t.refundInfo.refund_status?s("span",{staticClass:"font-10"},[t._v("卖家已驳回")]):s("span",{staticClass:"font-10"},[t._v(t._s(t.refundInfo.refund_status_name))])]),s("li",{class:{null:!(3===t.refundInfo.refund_status)}},[s("span",{staticClass:"font-9"},[t._v("到账成功")]),s("span",{staticClass:"circle-row"}),t._m(0)])])]),s("div",{staticClass:"btn-box-end"},[s("button",{attrs:{type:"button"},on:{click:function(s){return t.$router.back()}}},[t._v("返回")])])],2)])},i=[function(){var t=this,s=t._self._c;return s("span",{staticClass:"font-10"},[t._v("钱款已退至"),s("br"),t._v("支付账户")])}],r=(e("ac6a"),e("f3e2"),e("f523")),a=e("a49b"),o=e("5c96"),u=e("5a0c"),c=e.n(u),d={data:function(){return{Message:o["Message"],BASE_URL:a["a"],titleMap:{0:"等待卖家付款",1:"等待卖家发货",3:"正在运输中",4:"交易完成"},id:0,info:{},order_goods_id:0,refundInfo:{}}},mounted:function(){var t=this.$route.query;this.id=parseInt(t.id||0),this.order_goods_id=parseInt(t.order_goods_id||0),this.id>0&&this.getInfo(),this.order_goods_id>0&&this.getRefundInfo()},methods:{getRefundInfo:function(){var t=this;r["q"].refundData({order_goods_id:this.order_goods_id}).then((function(s){var e=s.data;t.refundInfo=e.order_goods_info})).finally((function(){console.log(JSON.stringify(t.refundInfo,null,2))}))},getInfo:function(){var t=this;r["o"].detail({order_id:this.id}).then((function(s){var e=s.data,n=new Date("2000-01-01 00:00:00").getTime();e.pay_time=new Date(e.pay_time).getTime()<n?"":e.pay_time,e.delivery_time=new Date(e.delivery_time).getTime()<n?"":e.delivery_time,e.finish_time=new Date(e.finish_time).getTime()<n?"":e.finish_time,e.sign_time=e.sign_time?c.a.unix(parseFloat(e.sign_time),"X").format("YYYY-MM-DD HH:mm:ss"):"",e.order_goods.forEach((function(t){"string"===typeof t.sku_spec_format&&(t.sku_spec_format=JSON.parse(t.sku_spec_format||"[]"))})),t.info=e})).finally((function(){}))}}},f=d,l=(e("3f18"),e("2877")),h=Object(l["a"])(f,n,i,!1,null,"026d7cbc",null);s["default"]=h.exports},"5a0c":function(t,s,e){!function(s,e){t.exports=e()}(0,(function(){"use strict";var t=1e3,s=6e4,e=36e5,n="millisecond",i="second",r="minute",a="hour",o="day",u="week",c="month",d="quarter",f="year",l="date",h="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,s,e){var n=String(t);return!n||n.length>=s?t:""+Array(s+1-n.length).join(e)+t},g={s:v,z:function(t){var s=-t.utcOffset(),e=Math.abs(s),n=Math.floor(e/60),i=e%60;return(s<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function t(s,e){if(s.date()<e.date())return-t(e,s);var n=12*(e.year()-s.year())+(e.month()-s.month()),i=s.clone().add(n,c),r=e-i<0,a=s.clone().add(n+(r?-1:1),c);return+(-(n+(e-i)/(r?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:f,w:u,d:o,D:l,h:a,m:r,s:i,ms:n,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",y={};y[$]=p;var C=function(t){return t instanceof S},M=function t(s,e,n){var i;if(!s)return $;if("string"==typeof s){var r=s.toLowerCase();y[r]&&(i=r),e&&(y[r]=e,i=r);var a=s.split("-");if(!i&&a.length>1)return t(a[0])}else{var o=s.name;y[o]=s,i=o}return!n&&i&&($=i),i||!n&&$},D=function(t,s){if(C(t))return t.clone();var e="object"==typeof s?s:{};return e.date=t,e.args=arguments,new S(e)},w=g;w.l=M,w.i=C,w.w=function(t,s){return D(t,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var S=function(){function p(t){this.$L=M(t.locale,null,!0),this.parse(t)}var v=p.prototype;return v.parse=function(t){this.$d=function(t){var s=t.date,e=t.utc;if(null===s)return new Date(NaN);if(w.u(s))return new Date;if(s instanceof Date)return new Date(s);if("string"==typeof s&&!/Z$/i.test(s)){var n=s.match(_);if(n){var i=n[2]-1||0,r=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(s)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return w},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(t,s){var e=D(t);return this.startOf(s)<=e&&e<=this.endOf(s)},v.isAfter=function(t,s){return D(t)<this.startOf(s)},v.isBefore=function(t,s){return this.endOf(s)<D(t)},v.$g=function(t,s,e){return w.u(t)?this[s]:this.set(e,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,s){var e=this,n=!!w.u(s)||s,d=w.p(t),h=function(t,s){var i=w.w(e.$u?Date.UTC(e.$y,s,t):new Date(e.$y,s,t),e);return n?i:i.endOf(o)},_=function(t,s){return w.w(e.toDate()[t].apply(e.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(s)),e)},m=this.$W,p=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case f:return n?h(1,0):h(31,11);case c:return n?h(1,p):h(0,p+1);case u:var $=this.$locale().weekStart||0,y=(m<$?m+7:m)-$;return h(n?v-y:v+(6-y),p);case o:case l:return _(g+"Hours",0);case a:return _(g+"Minutes",1);case r:return _(g+"Seconds",2);case i:return _(g+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,s){var e,u=w.p(t),d="set"+(this.$u?"UTC":""),h=(e={},e[o]=d+"Date",e[l]=d+"Date",e[c]=d+"Month",e[f]=d+"FullYear",e[a]=d+"Hours",e[r]=d+"Minutes",e[i]=d+"Seconds",e[n]=d+"Milliseconds",e)[u],_=u===o?this.$D+(s-this.$W):s;if(u===c||u===f){var m=this.clone().set(l,1);m.$d[h](_),m.init(),this.$d=m.set(l,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](_);return this.init(),this},v.set=function(t,s){return this.clone().$set(t,s)},v.get=function(t){return this[w.p(t)]()},v.add=function(n,d){var l,h=this;n=Number(n);var _=w.p(d),m=function(t){var s=D(h);return w.w(s.date(s.date()+Math.round(t*n)),h)};if(_===c)return this.set(c,this.$M+n);if(_===f)return this.set(f,this.$y+n);if(_===o)return m(1);if(_===u)return m(7);var p=(l={},l[r]=s,l[a]=e,l[i]=t,l)[_]||1,v=this.$d.getTime()+n*p;return w.w(v,this)},v.subtract=function(t,s){return this.add(-1*t,s)},v.format=function(t){var s=this,e=this.$locale();if(!this.isValid())return e.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),r=this.$H,a=this.$m,o=this.$M,u=e.weekdays,c=e.months,d=function(t,e,i,r){return t&&(t[e]||t(s,n))||i[e].slice(0,r)},f=function(t){return w.s(r%12||12,t,"0")},l=e.meridiem||function(t,s,e){var n=t<12?"AM":"PM";return e?n.toLowerCase():n},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:w.s(o+1,2,"0"),MMM:d(e.monthsShort,o,c,3),MMMM:d(c,o),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:d(e.weekdaysMin,this.$W,u,2),ddd:d(e.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(r),HH:w.s(r,2,"0"),h:f(1),hh:f(2),a:l(r,a,!0),A:l(r,a,!1),m:String(a),mm:w.s(a,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:i};return n.replace(m,(function(t,s){return s||_[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,l,h){var _,m=w.p(l),p=D(n),v=(p.utcOffset()-this.utcOffset())*s,g=this-p,$=w.m(this,p);return $=(_={},_[f]=$/12,_[c]=$,_[d]=$/3,_[u]=(g-v)/6048e5,_[o]=(g-v)/864e5,_[a]=g/e,_[r]=g/s,_[i]=g/t,_)[m]||g,h?$:w.a($)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(t,s){if(!t)return this.$L;var e=this.clone(),n=M(t,s,!0);return n&&(e.$L=n),e},v.clone=function(){return w.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},p}(),b=S.prototype;return D.prototype=b,[["$ms",n],["$s",i],["$m",r],["$H",a],["$W",o],["$M",c],["$y",f],["$D",l]].forEach((function(t){b[t[1]]=function(s){return this.$g(s,t[0],t[1])}})),D.extend=function(t,s){return t.$i||(t(s,S,D),t.$i=!0),D},D.locale=M,D.isDayjs=C,D.unix=function(t){return D(1e3*t)},D.en=y[$],D.Ls=y,D.p={},D}))},a07c:function(t,s,e){}}]);
  2. //# sourceMappingURL=chunk-ed309448.2fd145d9.js.map