webpackJsonp([30],{cidD:function(e,t){},sGQN:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={data:function(){return{res:[],loading:!1,finished:!1,refreshing:!1,isShow:!1,page:1,Dshow:!1}},methods:{goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},getNew:function(){var e=this;this.loading=!0;var t={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"getScoreRecord",t).then(function(t){0==t.data[0].length?e.isShow=!0:e.isShow=!1,e.page++,e.loading=!1,e.refreshing=!1,e.finished=!1,e.res=t.data[0],console.log(e.res[0].content),console.log(t.data)}).catch(function(t){e.loading=!1,e.refreshing=!1,console.error(t)})},onRefresh:function(){this.page=1,this.getNew()},onLoad:function(){var e=this,t={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"getScoreRecord",t).then(function(t){e.loading=!1,e.refreshing=!1,e.res=e.res.concat(t.data[0]);var s=e.res.length?e.res[0].num:0;e.res.length<s?(e.page++,e.loading=!1):(e.finished=!0,e.loading=!0),console.log(t.data)}).catch(function(t){e.loading=!1,e.refreshing=!1,console.error(t)})}},created:function(){this.getNew()}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pb_content2",staticStyle:{background:"#fff"}},[n("div",{staticClass:"pb_head"},[n("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:e.goBack}}),e._v(" "),n("span",[e._v("积分记录")])],1),e._v(" "),n("div",{staticClass:"pb_content_body"},[n("van-pull-refresh",{staticStyle:{"padding-top":"0.5rem"},attrs:{"looing-text":"释放刷新","pulling-text":"下拉刷新"},on:{refresh:e.onRefresh},model:{value:e.refreshing,callback:function(t){e.refreshing=t},expression:"refreshing"}},[n("van-list",{attrs:{finished:e.finished,"finished-text":"没有更多啦",offset:"10","immediate-check":!1},on:{load:e.onLoad},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[e.isShow?n("van-empty",{staticClass:"custom-image",attrs:{image:s("0vHl"),description:"暂无数据"}}):e._e(),e._v(" "),e._l(e.res,function(t,s){return n("div",{key:s,staticClass:"r_content"},[n("div",{staticClass:"r_left"},[n("span",[e._v(e._s(t.content))]),e._v(" "),n("span",[e._v(e._s(t.time))])]),e._v(" "),n("div",{staticClass:"r_right"},[e._v(e._s(parseInt(t.score)>0?"+"+t.score:t.score))])])})],2)],1)],1)])},staticRenderFns:[]};var a=s("VU/8")(n,i,!1,function(e){s("cidD")},"data-v-752b8360",null);t.default=a.exports}});
//# sourceMappingURL=30.48fdbf97a613ed9146dd.js.map