require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_spread_money/index"],{"31ca":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("1d3c");o(n("3240"));var i=o(n("5d64"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},5393:function(t,e,n){},"5d64":function(t,e,n){"use strict";n.r(e);var o=n("a41b"),i=n("8e0a");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("9f7b");var r=n("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"8d99af58",null,!1,o["a"],void 0);e["default"]=c.exports},8601:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("51a2"),i=n("cef1"),a=n("8f59"),r=n("d5b1"),c=getApp(),s={components:{emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("a342"))}.bind(null,n)).catch(n.oe)}},filters:{statusFilter:function(t){return{2:"已拒绝",0:"待审核",1:"审核成功"}[t]}},data:function(){return{urlDomain:this.$Cache.get("imgHost"),name:"",type:0,page:1,limit:20,recordList:[],recordType:0,loadend:!1,extractCount:0,theme:c.globalData.theme,commissionCount:0,bgColor:"#e93323"}},computed:(0,a.mapGetters)(["isLogin"]),onLoad:function(e){this.type=e.type,this.isLogin?(this.extractCount=e.extractCount,this.commissionCount=e.commissionCount):(0,i.toLogin)();this.bgColor=(0,r.setThemeColor)(),t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.bgColor})},onShow:function(){var e=this.type;1==e?(t.setNavigationBarTitle({title:"结算记录"}),this.name="结算总额",this.recordType=4,this.getList()):2==e?(t.setNavigationBarTitle({title:"佣金记录"}),this.name="佣金记录",this.recordType=3,this.getRecordList()):t.showToast({title:"参数错误",icon:"none",duration:1e3,mask:!0,success:function(e){setTimeout((function(){t.navigateBack({delta:1})}),1200)}})},methods:{getList:function(){var t=this,e=t.recordList,n=[];1!=t.loadend&&(0,o.getClosingRecordApi)({page:t.page,limit:t.limit}).then((function(o){t.page=t.page+1;var i=t.page>o.data.totalPage,a=o.data||[];n=e.concat(a),t.loadend=i,t.$set(t,"recordList",n)}))},getRecordList:function(){var t=this,e=t.page,n=t.limit,i=t.loadend,a=(t.recordType,t.recordList),r=[];1!=i&&(0,o.getCommissionInfo)({page:e,limit:n}).then((function(n){if(n.data.list){t.page=e+1;var o=t.page>n.data.totalPage,i=n.data.list||[];r=a.concat(i),t.loadend=o,t.$set(t,"recordList",r)}}))}},onReachBottom:function(){1==this.type?this.getList():this.getRecordList()}};e.default=s}).call(this,n("df3c")["default"])},"8e0a":function(t,e,n){"use strict";n.r(e);var o=n("8601"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"9f7b":function(t,e,n){"use strict";var o=n("5393"),i=n.n(o);i.a},a41b:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,4==t.recordType?t.__map(t.recordList,(function(e,n){var o=t.__get_orig(e),i=t.recordList.length,a=i>0?t.__map(e.list,(function(e,n){var o=t.__get_orig(e),i=1!==e.auditStatus?t._f("statusFilter")(e.auditStatus):null;return{$orig:o,f0:i}})):null;return{$orig:o,g0:i,l0:a}})):null),o=4==t.recordType?t.recordList.length:null,i=4!=t.recordType?t.__map(t.recordList,(function(e,n){var o=t.__get_orig(e),i=t.recordList.length;return{$orig:o,g2:i}})):null,a=4!=t.recordType?t.recordList.length:null;t.$mp.data=Object.assign({},{$root:{l1:n,g1:o,l2:i,g3:a}})},i=[]}},[["31ca","common/runtime","common/vendor"]]]);