1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_bill-user_bill"],{"112d":function(t,e,n){"use strict";var r=n("f186"),o=n.n(r);o.a},"3b73":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"record-cell",props:{remark:{type:String,required:!0},date:{type:String,required:!0},money:{type:String|Number,required:!0},type:{type:String|Number}},methods:{}};e.default=r},"41ae":function(t,e,n){"use strict";n.r(e);var r=n("3b73"),o=n.n(r);for(var c in r)"default"!==c&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=o.a},"552b":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return r}));var r={uTabs:n("7dc1").default,recordCell:n("57c8").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"user-bill"},[n("mescroll-body",{ref:"mescrollRef",attrs:{up:t.upOption},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)}}},[n("u-tabs",{attrs:{list:t.tabsList,"is-scroll":!1,current:t.currentTab,bold:!1,"active-color":t.colorConfig.primary},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"p-t-20"},t._l(t.list,(function(t,e){return n("v-uni-view",{key:e,staticClass:"bg-white"},[n("record-cell",{attrs:{remark:t.source_type,date:t.create_time_format,money:t.change_amount_format,type:t.change_type}})],1)})),1)],1)],1)},c=[]},5549:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.record-cell[data-v-6a7f4577]{padding:%?16?% %?30?%;border-bottom:1px solid #e5e5e5}',""]),t.exports=e},"57c8":function(t,e,n){"use strict";n.r(e);var r=n("a283"),o=n("41ae");for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("112d");var i,l=n("f0c5"),s=Object(l["a"])(o["default"],r["b"],r["c"],!1,null,"6a7f4577",null,!1,r["a"],i);e["default"]=s.exports},"5f09":function(t,e,n){"use strict";n.r(e);var r=n("552b"),o=n("a8ec");for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);var i,l=n("f0c5"),s=Object(l["a"])(o["default"],r["b"],r["c"],!1,null,"20409dc8",null,!1,r["a"],i);e["default"]=s.exports},"9df2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(t){this.mescroll&&this.mescroll.onPageScroll(t)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(t){console.log(t),this.mescroll=t,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef;t&&(this.mescroll=t.mescroll)}},downCallback:function(){var t=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){t.mescroll.endSuccess()}),500)},upCallback:function(){var t=this;setTimeout((function(){t.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},o=r;e.default=o},a283:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return r}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"record-cell flex row-between"},[n("v-uni-view",[n("v-uni-view",{staticClass:"remark md"},[t._v(t._s(t.remark))]),n("v-uni-view",{staticClass:"time m-t-10 muted sm"},[t._v(t._s(t.date))])],1),n("v-uni-view",{staticClass:"black"},[n("v-uni-view",{staticClass:"money lg",class:{primary:1==t.type}},[t._v(t._s(t.money))])],1)],1)},c=[]},a8ec:function(t,e,n){"use strict";n.r(e);var r=n("c079"),o=n.n(r);for(var c in r)"default"!==c&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=o.a},c079:function(t,e,n){"use strict";var r=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("9df2")),c=n("e9dc"),i={mixins:[o.default],data:function(){return{tabsList:[{name:"全部"},{name:"收入"},{name:"支出"}],upOption:{empty:{icon:"/static/images/order_null.png",tip:"暂无记录"}},currentTab:0,list:[]}},methods:{changeTab:function(t){this.currentTab=t,this.list=[],this.mescroll.resetUpScroll()},upCallback:function(t){var e=this,n=t.num,r=t.size;(0,c.getAccountLog)({page_size:r,page_no:n,source:1,type:this.currentTab}).then((function(n){var r=n.data;1==t.num&&(e.list=[]);var o=r.list,c=o.length,i=!!r.more;e.list=e.list.concat(o),e.mescroll.endSuccess(c,i)})).catch((function(){e.mescroll.endErr()}))}},onLoad:function(t){console.log(t,"option"),this.currentTab=t.mode||0}};e.default=i},f186:function(t,e,n){var r=n("5549");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("4f06").default;o("7950681a",r,!0,{sourceMap:!1,shadowMode:!1})}}]); |