(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-443c59b0"],{"57b2":function(t,e,s){t.exports=s.p+"img/avatar-woman.d15a79f8.png"},"76f3":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"record-item",on:{click:function(e){return t.handleClick(t.item)}}},[s("div",{staticClass:"item-header"},[s("span",{staticClass:"order-id"},[t._v("订单号："+t._s(t.item.parent_order_no))]),s("span",{staticClass:"status-text",class:t.getStatusClass(t.item.status)},[t._v(t._s(t.getStatusText(t.item.status)))])]),s("div",{staticClass:"item-content flex-direction-row"},[s("div",{staticClass:"product-info flex-1"},[s("div",{staticClass:"product-name flex-direction-row mb13"},[s("span",{staticClass:"name-text"},[t._v(t._s(t.item.product_name))]),s("span",{staticClass:"group-tag fs0 ml5"},[t._v(t._s(t.item.group_num)+"人团")])]),s("div",{staticClass:"status-info"},[1==t.item.status?s("span",{staticClass:"tag tag-danger"},[t._v("差"+t._s(Number(t.item.group_num)-Number(t.item.sale_num))+"人成团")]):2==t.item.status?s("span",{staticClass:"tag tag-success"},[t._v("已拼成")]):s("span",{staticClass:"tag tag-default"},[t._v("未拼成")])])]),s("div",{staticClass:"price-info ml5"},[s("div",{staticClass:"price"},[t._v(t._s(t.item.price))]),s("div",{staticClass:"price-label"},[t._v("成团价")])])]),s("div",{staticClass:"item-footer flex-direction-row flex-align-center"},[1===t.item.status?s("div",{staticClass:"time-info"},[t._v(t._s(t.item.close_time||t.getTimeDifference(t.item.close_time).timeInfo)+"未拼成自动退款")]):s("div",{staticClass:"time-info"},[t._v("成团时间："+t._s(t.item.u_time||t.item.close_time))]),s("div",{staticClass:"action-btn ml13"},[1==t.item.status?s("button",{staticClass:"btn-invite",on:{click:function(e){return e.stopPropagation(),t.handleInvite.apply(null,arguments)}}},[t._v("邀请好友参团")]):2==t.item.status?s("button",{staticClass:"btn-reorder",on:{click:function(e){return e.stopPropagation(),t.handleReorder.apply(null,arguments)}}},[t._v("再来一单")]):t._e()])])])},i=[],n=(s("2397"),s("d4ec")),c=s("bee2"),r=s("99de"),o=s("7e84"),u=s("262e"),l=s("9ab4"),m=s("60a3"),d=s("73ec");function f(t,e,s){return e=Object(o["a"])(e),Object(r["a"])(t,v()?Reflect.construct(e,s||[],Object(o["a"])(t).constructor):e.apply(t,s))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var p=function(t){function e(){var t;return Object(n["a"])(this,e),t=f(this,e,arguments),t.defaultAvatar=s("57b2"),t.getTimeDifference=d["c"],t}return Object(u["a"])(e,t),Object(c["a"])(e,[{key:"getStatusClass",value:function(t){var e={1:"status-ongoing",2:"status-success",3:"status-failed"};return e[t]||""}},{key:"getStatusText",value:function(t){var e={1:"拼团中",2:"已拼成",3:"未拼成"};return e[t]||""}},{key:"handleClick",value:function(t){this.$emit("detail",t)}},{key:"handleInvite",value:function(){this.$emit("invite",this.item)}},{key:"handleReorder",value:function(){this.$emit("reorder",this.item)}}])}(m["f"]);l["a"]([Object(m["d"])({required:!0})],p.prototype,"item",void 0),p=l["a"]([Object(m["a"])({name:"GroupBuyingRecordItem"})],p);var _=p,C=_,b=(s("e8e3"),s("2877")),g=Object(b["a"])(C,a,i,!1,null,"12c62cd2",null);e["default"]=g.exports},d76f:function(t,e,s){},e8e3:function(t,e,s){"use strict";s("d76f")}}]);