(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4574ca4b"],{"6bdf":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"container",staticClass:"bill-details"},[i("NavBar",{attrs:{title:"账单记录"}}),i("div",{staticClass:"nav acea-row"},[i("div",{staticClass:"item",class:0==t.types?"on":"",on:{click:function(e){return t.changeTypes(0)}}},[t._v("\n      全部\n    ")]),i("div",{staticClass:"item",class:1==t.types?"on":"",on:{click:function(e){return t.changeTypes(1)}}},[t._v("\n      消费\n    ")]),i("div",{staticClass:"item",class:2==t.types?"on":"",on:{click:function(e){return t.changeTypes(2)}}},[t._v("\n      充值\n    ")])]),i("div",{staticClass:"sign-record"},[i("div",{staticClass:"list"},t._l(t.list,(function(e,s){return i("div",{key:s,staticClass:"item"},[i("div",{staticClass:"data"},[t._v(t._s(e.time))]),t._l(e.list,(function(e,s){return i("div",{key:s,staticClass:"listn"},[i("div",{staticClass:"itemn acea-row row-between-wrapper"},[i("div",[i("div",{staticClass:"name line1"},[t._v(t._s(e.title))]),i("div",[t._v(t._s(e.add_time))])]),i("div",{staticClass:"num",class:0==e.pm?"font-color-red":""},[t._v("\n              "+t._s(0==e.pm?"-":"+")+t._s(e.number)+"\n            ")])])])}))],2)})),0)]),i("Loading",{attrs:{loaded:t.loaded,loading:t.loading}})],1)},n=[],a=i("c24f"),l=i("3a5e"),o=i("d000"),c={name:"UserBill",components:{Loading:l["a"],NavBar:o["a"]},props:{},data:function(){return{types:"",where:{page:1,limit:5},list:[],loaded:!1,loading:!1}},watch:{"$route.params.types":function(t){var e=this;void 0!=t&&(e.types=t,e.list=[],e.where.page=1,e.loaded=!1,e.loading=!1,e.getIndex())},types:function(){this.getIndex()}},mounted:function(){var t=this;t.types=t.$route.params.types,t.getIndex(),t.$scroll(t.$refs.container,(function(){!t.loading&&t.getIndex()}))},methods:{code:function(){this.sendCode()},changeTypes:function(t){t!=this.types&&(this.types=t,this.list=[],this.where.page=1,this.loaded=!1,this.loading=!1)},getIndex:function(){var t=this;1!=t.loaded&&1!=t.loading&&(t.loading=!0,Object(a["p"])(t.where,t.types).then((function(e){t.loading=!1,t.loaded=e.data.length<t.where.limit,t.where.page=t.where.page+1,t.list.push.apply(t.list,e.data)}),(function(e){t.$dialog.message(e.msg)})))}}},d=c,r=i("2877"),u=Object(r["a"])(d,s,n,!1,null,null,null);e["default"]=u.exports},d000:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"bg-color-red",staticStyle:{height:"0.7rem",position:"fixed","z-index":"999",top:"0",width:"100%"}},[i("div",{staticStyle:{width:"100%",display:"flex","line-height":"0.7rem","font-size":"0.35rem"}},[i("div",{staticClass:"iconfont icon-xiangzuo",staticStyle:{color:"#FFFFFF","font-size":"0.35rem","padding-left":"10px"},on:{click:t.returns}}),i("div",{staticStyle:{color:"#FFFFFF","font-weight":"400",flex:"auto","text-align":"center","padding-right":"30px"}},[t._v("\n        "+t._s(t.titles)+"\n      ")])])]),i("div",{staticStyle:{height:"0.7rem"}})])},n=[],a={name:"NavBar",props:{title:String},data:function(){return{titles:""}},mounted:function(){void 0==this.title?this.titles=this.$route.meta.title:this.titles=this.title},methods:{returns:function(){this.$router.back()}}},l=a,o=i("2877"),c=Object(o["a"])(l,s,n,!1,null,null,null);e["a"]=c.exports}}]);
//# sourceMappingURL=chunk-4574ca4b.1a4353b3.js.map