"use strict";const e=require("../../../common/vendor.js"),t=require("../../../components/request.js"),s=require("../../../components/formatDate.js"),o={data:()=>({title:"Hello",userinfo:{},page:0,triggered:!1,pointslist:[]}),onLoad(){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e.data,this.onRefresherRefresh()}})},methods:{formatDate:s.formatDate,onRefresherRefresh(){this.page=0,this.triggered=!0,this.pointslist=[],this.getPointsDetail()},onScrollToLower(){this.page+=1,this.getPointsDetail()},getPointsDetail(){t.request({url:"user/pointsDetail",method:"POST",data:{userId:this.userinfo.id,page:this.page,size:10},userInfo:!0}).then((e=>{200===e.code?(this.pointslist.push(...e.data),this.triggered=!1):console.log(e.msg)}))},onBack(){e.index.navigateBack({delta:1})}}};if(!Array){e.resolveComponent("uni-card")()}const r=e._export_sfc(o,[["render",function(t,s,o,r,i,n){return e.e({a:e.o$1(((...e)=>n.onBack&&n.onBack(...e))),b:0!=i.pointslist.length},0!=i.pointslist.length?{c:e.f(i.pointslist,((t,s,o)=>({a:e.t(t.info),b:e.t(0==t.status?"-"+t.number:"+"+t.number),c:e.t(n.formatDate(t.time)),d:0==t.status?"#ff000011":"#11ff002b",e:s,f:"e1fb562b-0-"+o}))),d:e.o$1(((...e)=>n.onRefresherRefresh&&n.onRefresherRefresh(...e))),e:e.o$1(((...e)=>n.onScrollToLower&&n.onScrollToLower(...e))),f:i.triggered}:{},{g:0==i.pointslist.length},(i.pointslist.length,{}))}],["__scopeId","data-v-e1fb562b"]]);wx.createPage(r);
