webpackJsonp([36],{JcGM:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("FevL"),a=s("j7xs"),l=s("gOFm"),n=s("p52L");i.default.component(a.CellGroup.name,a.CellGroup),i.default.component(a.CellItem.name,a.CellItem),i.default.component(l.InfiniteScroll.name,l.InfiniteScroll);var o={data:()=>({title:"积分明细",items:[],page:1}),created(){this.getList()},methods:{getList(){var t={page:this.page,type:"0",limit:20,token:this.$store.getters.getToken};this.$axios.post(this.api.financeRecord,{attr:t}).then(t=>{if(t.data){var e=t.data;const s=e.data;if(this.items=[...this.items,...s],this.page>=e.last_page)return void this.$refs.infinitescrollDemo.$emit("ydui.infinitescroll.loadedDone");this.$refs.infinitescrollDemo.$emit("ydui.infinitescroll.finishLoad"),this.page++}else this.$dialog.toast({mes:"暂无数据",timeout:1e3,icon:"warning"})},t=>{this.$dialog.toast({mes:"网络请求失败!",timeout:1e3,icon:"error"})})}},components:{Bottom:n.a}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"index"},[s("v-title",{attrs:{title:t.title}}),t._v(" "),s("div",{staticClass:"list"},[s("yd-infinitescroll",{ref:"infinitescrollDemo",attrs:{callback:t.getList}},[s("div",{attrs:{slot:"list"},slot:"list"},t._l(t.items,function(e){return s("yd-cell-item",{key:e.id},[1==e.balance?s("i",{staticClass:"iconfont icon-credit red",attrs:{slot:"icon"},slot:"icon"}):s("i",{staticClass:"iconfont icon-credit green",attrs:{slot:"icon"},slot:"icon"}),t._v(" "),s("span",{attrs:{slot:"left"},slot:"left"},[t._v(t._s(e.memo))]),t._v(" "),s("div",{staticClass:"pt-sm pb-sm",attrs:{slot:"right"},slot:"right"},[1==e.balance?s("p",{staticClass:"f16 red"},[t._v(t._s(e.balance_name)+t._s(e.money))]):s("p",{staticClass:"f16 green"},[t._v(t._s(e.balance_name)+t._s(e.money))]),t._v(" "),s("p",{staticClass:"time mt-sm f12"},[t._v(t._s(e.create_time))]),t._v(" "),s("p",{staticClass:" mt-sm "},[0==e.status?s("span",{staticClass:"label text-muted "},[t._v("未支付")]):s("span",{staticClass:"label label-info"},[t._v("已完成")])])])])})),t._v(" "),s("Bottom",{attrs:{slot:"doneTip"},slot:"doneTip"}),t._v(" "),s("img",{attrs:{slot:"loadingTip",src:t.api.imgloading},slot:"loadingTip"})],1)],1)],1)},staticRenderFns:[]};var c=s("D8HT")(o,r,!1,function(t){s("hDVL")},"data-v-1e1b97f8",null);e.default=c.exports},hDVL:function(t,e){}});