(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-16b6f680"],{"0160":function(t,e,a){t.exports=a.p+"img/no-ticket.8e69b494.png"},"19a4":function(t,e,a){"use strict";a.r(e);var n,i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"invailid-list"},[a("van-tabs",{attrs:{sticky:"",swipeable:"","title-active-color":t.theme,color:t.theme},on:{click:t.handleTab},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[a("van-tab",{attrs:{title:"已使用",name:"1"}}),a("van-tab",{attrs:{title:"已失效",name:"2"}})],1),0===t.couponList.length?a("div",{staticClass:"no-data-box"},[a("img",{staticClass:"img-medium",attrs:{src:t.none}}),a("p",{staticClass:"no-data-des"},[t._v("暂无无效优惠券~")])]):a("div",[a("van-list",{attrs:{finished:t.listFinished,"finished-text":"仅展示过期3个月内的优惠券记录"},on:{load:t.getCouponList},model:{value:t.listLoading,callback:function(e){t.listLoading=e},expression:"listLoading"}},t._l(t.couponList,(function(t){return a("CouponList",{key:t.id,staticClass:"mb20 pl15 pr15 pt15",attrs:{item:t,type:1}})})),1)],1)],1)},s=[],c=(a("2397"),a("ade3")),o=(a("bda7"),a("5e46")),r=(a("da3c"),a("0b33")),u=(a("91d5"),a("f0ca")),l=(a("7f7f"),a("2994"),a("2bdd")),f=(a("ac6a"),a("96cf"),a("1da1")),p=a("d4ec"),h=a("bee2"),b=a("262e"),d=a("99de"),v=a("7e84"),m=a("9ab4"),g=a("60a3"),L=a("e72f"),y=a("0160"),O=a.n(y),j=a("e672");function k(t){var e=w();return function(){var a,n=Object(v["a"])(t);if(e){var i=Object(v["a"])(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Object(d["a"])(this,a)}}function w(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var C=function(t){Object(b["a"])(a,t);var e=k(a);function a(){var t;return Object(p["a"])(this,a),t=e.apply(this,arguments),t.theme=sessionStorage.getItem("theme")||"var(--theme-primary)",t.page=1,t.pageSize=5,t.none=O.a,t.listLoading=!1,t.listFinished=!1,t.couponList=[],t.activeTab="1",t.tabList=[{name:"已使用",value:"1"},{name:"已失效",value:"2"}],t}return Object(h["a"])(a,[{key:"mounted",value:function(){this.getCouponList()}},{key:"handleTab",value:function(){this.page=1,this.couponList=[],this.getCouponList()}},{key:"getCouponList",value:function(){var t=Object(f["a"])(regeneratorRuntime.mark((function t(){var e,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$toast({type:"loading",message:"加载中...",duration:0}),t.prev=1,e={page:this.page,size:this.pageSize,status:2,history_status:this.activeTab},t.next=5,Object(L["c"])(e);case 5:a=t.sent,n=a.data,this.$toast.clear(),0!==n.list.length?(n.list.forEach((function(t){t.extend=!1})),this.couponList=this.couponList.concat(n.list),n.list.length===this.pageSize?(this.page++,this.listLoading=!1):this.listFinished=!0):this.listFinished=!0,t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),this.$toast.clear();case 14:case"end":return t.stop()}}),t,this,[[1,11]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"arrowDownOrUP",value:function(t){this.couponList.forEach((function(e,a){t===a&&(e.isShowDetail=!e.isShowDetail)}))}}]),a}(g["g"]);C=m["a"]([Object(g["a"])({name:"MyCouponList",components:(n={},Object(c["a"])(n,l["a"].name,l["a"]),Object(c["a"])(n,"CouponList",j["default"]),Object(c["a"])(n,u["a"].name,u["a"]),Object(c["a"])(n,r["a"].name,r["a"]),Object(c["a"])(n,l["a"].name,l["a"]),Object(c["a"])(n,o["a"].name,o["a"]),n)})],C);var x=C,R=x,T=(a("f65f"),a("2877")),S=Object(T["a"])(R,i,s,!1,null,"679fbb30",null);e["default"]=S.exports},cbf2:function(t,e,a){},f65f:function(t,e,a){"use strict";a("cbf2")}}]);
//# sourceMappingURL=chunk-16b6f680.444e6313.js.map