(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f84963f8"],{"0160":function(t,e,a){t.exports=a.p+"img/no-ticket.8e69b494.png"},"7eb4":function(t,e,a){},c5c8:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("van-tabs",{attrs:{sticky:"",swipeable:"","title-active-color":"#FF7E29",color:"#FF7E29"},on:{click:t.tabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{title:"有效门票",name:"1"}}),a("van-tab",{attrs:{title:"无效门票",name:"0"}})],1),t.ticketList.length>0?a("van-list",{attrs:{finished:t.listFinished,"finished-text":"我是有底线的"},on:{load:t.getTicketList},model:{value:t.listLoading,callback:function(e){t.listLoading=e},expression:"listLoading"}},t._l(t.ticketList,(function(e,i){return a("div",{key:i,staticClass:"ticket-content",on:{click:function(a){return t.linkToDetail(e.ticket_code)}}},[a("div",{staticClass:"content-msg"},[a("p",{staticClass:"title van-ellipsis"},[t._v(t._s(e.ticket_name)+"·"+t._s(e.session_name))]),a("p",{staticClass:"van-ellipsis"},[t._v("有效期："+t._s(e.date_str))]),a("p",{staticClass:"van-ellipsis"},[t._v("有效时长："+t._s(e.ticket_valid_days)+"天")]),a("p",{staticClass:"van-ellipsis"},[t._v("【有效期内有效，不可退换】")])]),a("div",{staticClass:"content-operation"},[1===e.status||2===e.status?a("svg-icon",{attrs:{"icon-class":"tag-valid","class-name":"status-tag"}}):t._e(),3===e.status?a("svg-icon",{attrs:{"icon-class":"tag-checked","class-name":"status-tag"}}):4===e.status?a("svg-icon",{attrs:{"icon-class":"tag-refund","class-name":"status-tag"}}):5===e.status?a("svg-icon",{attrs:{"icon-class":"tag-invalid","class-name":"status-tag"}}):t._e()],1)])})),0):a("van-empty",{attrs:{description:"暂无数据"}}),a("div",{staticClass:"footer"},[a("van-button",{staticClass:"btn flex-align-justify-center",attrs:{plain:"",loading:t.isLoading},on:{click:function(e){return t.handleBind()}}},[t._v(" 绑定门票 ")])],1)],1)},s=[],n=(a("2397"),a("ade3")),c=(a("91d5"),a("f0ca")),o=(a("66b9"),a("b650")),r=(a("da3c"),a("0b33")),l=(a("2994"),a("2bdd")),u=(a("7f7f"),a("bda7"),a("5e46")),d=(a("96cf"),a("1da1")),v=a("d4ec"),p=a("bee2"),f=a("99de"),k=a("7e84"),b=a("262e"),h=a("9ab4"),g=a("60a3"),m=a("cab1"),O=a("0160"),_=a.n(O);function y(t,e,a){return e=Object(k["a"])(e),Object(f["a"])(t,j()?Reflect.construct(e,a||[],Object(k["a"])(t).constructor):e.apply(t,a))}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(j=function(){return!!t})()}var L=function(t){function e(){var t;return Object(v["a"])(this,e),t=y(this,e,arguments),t.activeName="1",t.ticketList=[],t.none=_.a,t.listLoading=!1,t.listFinished=!1,t.page=1,t.pageSize=5,t.total=0,t.isLoading=!1,t}return Object(b["a"])(e,t),Object(p["a"])(e,[{key:"mounted",value:function(){this.getTicketList()}},{key:"handleBind",value:function(){this.$router.push({name:"BindTicket",query:{}})}},{key:"tabClick",value:function(){this.page=1,this.ticketList=[],this.listFinished=!1,this.getTicketList()}},{key:"getTicketList",value:function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(){var e,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={type:this.activeName,page:this.page,size:this.pageSize},t.prev=1,this.$toast({type:"loading",message:"加载中...",duration:0}),t.next=5,Object(m["b"])(e);case 5:a=t.sent,i=a.data,this.$toast.clear(),"[]"!==JSON.stringify(i.list)?(this.ticketList=this.ticketList.concat(i.list),i.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:"linkToDetail",value:function(t){this.$router.push({name:"MyTicketDetail",query:{ticket_code:t}})}}])}(g["g"]);L=h["a"]([Object(g["a"])({components:Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({},u["a"].name,u["a"]),l["a"].name,l["a"]),r["a"].name,r["a"]),o["a"].name,o["a"]),c["a"].name,c["a"])})],L);var w=L,C=w,T=(a("c9e5"),a("2877")),x=Object(T["a"])(C,i,s,!1,null,"7bf6d97a",null);e["default"]=x.exports},c9e5:function(t,e,a){"use strict";a("7eb4")},cab1:function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return c}));var i=a("b32d"),s=function(t){return Object(i["a"])({url:"/ticket/wxTicketSale/getUserTicketCodeList",method:"post",data:t})},n=function(t){return Object(i["a"])({url:"/ticket/wxTicketSale/getUserTicketCodeOne",method:"post",data:t})},c=function(t){return Object(i["a"])({url:"/ticket/wxTicketSale/ticketBindMember",method:"post",data:t})}}}]);
//# sourceMappingURL=chunk-f84963f8.199c55de.js.map