pages-users-user_bill-index.ae5c9451.js 7.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_bill-index"],{"35cc":function(t,i,n){"use strict";var e=n("3641"),a=n.n(e);a.a},3641:function(t,i,n){var e=n("c1d6");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("4f06").default;a("085dfbbc",e,!0,{sourceMap:!1,shadowMode:!1})},"480f":function(t,i,n){var e=n("608b");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("4f06").default;a("8491232a",e,!0,{sourceMap:!1,shadowMode:!1})},"4c4d":function(t,i,n){"use strict";n.r(i);var e=n("8b27"),a=n.n(e);for(var s in e)"default"!==s&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=a.a},5107:function(t,i,n){"use strict";var e;n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return s})),n.d(i,"a",(function(){return e}));var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",[n("v-uni-view",{staticClass:"bill-details"},[n("v-uni-view",{staticClass:"nav acea-row"},[n("v-uni-view",{staticClass:"item",class:0==t.type?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType(0)}}},[t._v("全部")]),n("v-uni-view",{staticClass:"item",class:1==t.type?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType(1)}}},[t._v("消费")]),n("v-uni-view",{staticClass:"item",class:2==t.type?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType(2)}}},[t._v("充值")])],1),n("v-uni-view",{staticClass:"sign-record"},[t._l(t.userBillList,(function(i,e){return n("v-uni-view",{key:e,staticClass:"list"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"listn"},[n("v-uni-view",{staticClass:"itemn acea-row row-between-wrapper"},[n("v-uni-view",[n("v-uni-view",{staticClass:"name line1"},[t._v(t._s(i.title))]),n("v-uni-view",[t._v(t._s(i.create_time))])],1),1==i.pm?n("v-uni-view",{staticClass:"num"},[t._v("+"+t._s(i.number))]):n("v-uni-view",{staticClass:"num font-color"},[t._v("-"+t._s(i.number))])],1)],1)],1)],1)})),t.userBillList.length>0?n("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[n("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e(),0==t.userBillList.length?n("v-uni-view",[n("emptyPage",{attrs:{title:"暂无账单的记录哦~"}})],1):t._e()],2)],1)],1)},s=[]},"5e26":function(t,i,n){"use strict";var e=n("480f"),a=n.n(e);a.a},"608b":function(t,i,n){var e=n("24fb");i=e(!1),i.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/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.bill-details .nav[data-v-5dd15456]{background-color:#fff;height:%?90?%;width:100%;line-height:%?90?%}.bill-details .nav .item[data-v-5dd15456]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center;font-size:%?30?%;color:#282828}.bill-details .nav .item.on[data-v-5dd15456]{color:#e93323;border-bottom:%?3?% solid #e93323}',""]),t.exports=i},8572:function(t,i,n){"use strict";var e;n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return s})),n.d(i,"a",(function(){return e}));var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{staticClass:"empty-box"},[n("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),n("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.title))])],1)},s=[]},"8b27":function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={props:{title:{type:String,default:"暂无记录"}}};i.default=e},ab61:function(t,i,n){"use strict";n.r(i);var e=n("5107"),a=n("b3cb");for(var s in a)"default"!==s&&function(t){n.d(i,t,(function(){return a[t]}))}(s);n("5e26");var o,l=n("f0c5"),c=Object(l["a"])(a["default"],e["b"],e["c"],!1,null,"5dd15456",null,!1,e["a"],o);i["default"]=c.exports},b3cb:function(t,i,n){"use strict";n.r(i);var e=n("bcaf"),a=n.n(e);for(var s in e)"default"!==s&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=a.a},b871:function(t,i,n){"use strict";n.r(i);var e=n("8572"),a=n("4c4d");for(var s in a)"default"!==s&&function(t){n.d(i,t,(function(){return a[t]}))}(s);n("35cc");var o,l=n("f0c5"),c=Object(l["a"])(a["default"],e["b"],e["c"],!1,null,"6b1a6701",null,!1,e["a"],o);i["default"]=c.exports},bcaf:function(t,i,n){"use strict";var e=n("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=n("5e22"),s=n("c496"),o=n("2f62"),l=e(n("b871")),c={components:{emptyPage:l.default},data:function(){return{loadTitle:"加载更多",loading:!1,loadend:!1,page:1,limit:15,type:0,userBillList:[],isAuto:!1,isShowAuth:!1}},computed:(0,o.mapGetters)(["isLogin"]),onShow:function(){this.isLogin?this.getUserBillList():(0,s.toLogin)()},onLoad:function(t){this.type=t.type||0},onReachBottom:function(){this.getUserBillList()},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getUserBillList()},authColse:function(t){this.isShowAuth=t},getUserBillList:function(){var t=this;if(!t.loadend&&!t.loading){t.loading=!0,t.loadTitle="";var i={page:t.page,limit:t.limit,type:t.type};(0,a.getCommissionInfo)(i).then((function(i){var n=i.data.list,e=n.length<t.limit;t.userBillList=t.$util.SplitArray(n,t.userBillList),t.$set(t,"userBillList",t.userBillList),t.loadend=e,t.loading=!1,t.loadTitle=e?"哼😕~我也是有底线的~":"加载更多",t.page=t.page+1}),(function(i){t.loading=!1,t.loadTitle="加载更多"}))}},changeType:function(t){this.type=t,this.loadend=!1,this.page=1,this.$set(this,"userBillList",[]),this.getUserBillList()}}};i.default=c},c1d6:function(t,i,n){var e=n("24fb");i=e(!1),i.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/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-6b1a6701]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-6b1a6701]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-6b1a6701]{font-size:%?26?%;color:#999}',""]),t.exports=i}}]);