(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f13b19a"],{"39fa":function(t,i,a){"use strict";a.r(i);var e=function(){var t=this,i=t._self._c;return i("div",{staticClass:"box"},[t._m(0),i("div",{staticClass:"content"},[i("div",{staticClass:"content-cell"},[t._m(1),t.list&&t.list.length?i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadData,expression:"loadData"}],staticClass:"infinite-list",style:{height:t.windowHeight-50-20-34-10+"px"},attrs:{"infinite-scroll-distance":"10"}},t._l(t.list,(function(a){return i("div",{key:a,staticClass:"reward-item-box"},[i("div",{staticClass:"reward-item",on:{click:function(i){return t.toRewardDetail(a)}}},[i("div",{staticClass:"reward-img-box"},[i("img",{staticClass:"reward-img",attrs:{src:a.prizeImageUrl,mode:"scaleToFit"}})]),i("div",{staticClass:"reward-info"},[i("div",{staticClass:"reward-name"},[t._v(t._s(a.prizeName))]),i("div",{staticClass:"reward-condition"},[t._v(t._s(a.prizeDesc||""))]),i("div",{staticClass:"reward-time"},[t._v(t._s(t._f("formatDate")(a.prizeTime)))])])])])})),0):t.haveLoad?i("div",{staticClass:"empty-box",style:{height:t.windowHeight-50-20-34-10+"px"}},[i("img",{staticClass:"empty-img",attrs:{src:a("7528"),mode:"widthFix"}}),i("div",{staticClass:"title"},[t._v("这里空空如也")]),i("div",{staticClass:"subtitle"},[t._v("还没有获得任何奖品哦~赶紧拆盲盒赢取好礼吧！")]),i("div",{staticClass:"play-btn",on:{click:t.toPlay}},[t._v("去拆盲盒")])]):t._e()])])])},s=[function(){var t=this,i=t._self._c;return i("div",{staticClass:"page-bg"},[i("img",{staticClass:"bg-img",attrs:{src:a("a603"),mode:"widthFix"}})])},function(){var t=this,i=t._self._c;return i("div",{staticClass:"cell-top"},[i("div",{staticClass:"iconfont icon-duobianxing"}),i("div",{staticClass:"title"},[t._v("我的奖品")]),i("div",{staticClass:"iconfont icon-duobianxing"})])}],n=a("2934"),r=a("b843");const{getMyReward:l}=n["a"];var o={components:{},data(){return{list:[],pageSize:20,currentPage:1,totalCount:0}},created(){document.title="我的奖品",this.manager=new r["a"](this),this.windowHeight=window.innerHeight,this.reloadData()},methods:{reloadData(){this.currentPage=1,this.totalCount=0,this.loadData()},toRewardDetail(t){switch(+t.prizeType){case 0:break;case 1:this.manager.toIntegralDetail();break;case 2:this.manager.toCouponList();break;case 3:break;default:break}},async loadData(){if(this.list.length>=this.totalCount&&0!=this.totalCount)return;let t=this.$route.query,i=await l({...t,currentPage:this.currentPage,pageSize:this.pageSize});this.haveLoad=!0,this.totalCount=i.totalCount;let a=this.list||[];a=1==this.currentPage?i.result||[]:a.concat(i.result||[]),this.currentPage++,this.list=a},toPlay(){this.$router.go(-1)}},filters:{formatDate(t){if(!t)return"--";let i=new Date(t);return i.getFullYear()+"年"+(i.getMonth()+1)+"月"+i.getDate()+"日"}}},c=o,d=(a("5a2c"),a("2877")),u=Object(d["a"])(c,e,s,!1,null,"90592b14",null);i["default"]=u.exports},"5a2c":function(t,i,a){"use strict";a("7ba1")},7528:function(t,i,a){t.exports=a.p+"img/mould_fail_pic.1c06610f.png"},"7ba1":function(t,i,a){},a603:function(t,i,a){t.exports=a.p+"img/rulebg.bb315b1e.png"}}]);