(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-wallet"],{"0141":function(t,e,n){"use strict";var a=n("4ea4");n("99af"),n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var o=a(n("1da1")),i=n("2e0d"),r=n("448c"),s=a(n("2552")),d=a(n("393d")),u={filters:{getMoneyStyle:r.getMoneyStyle},components:{empty:d.default,uniLoadMore:s.default},onReady:function(t){var e=this;uni.getSystemInfo({success:function(t){var n=uni.createSelectorQuery();n.select(".swiper-box").boundingClientRect(),n.exec((function(n){console.log(n,"ddddddddddddd"),e.maxheight=t.windowHeight-n[0].top+"px",console.log("打印页面的剩余高度",e.maxheight)}))},fail:function(t){}})},data:function(){return{maxheight:"",tabCurrentIndex:0,navList:[{state:0,text:"全部",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"支出",loadingType:"more",orderList:[],page:1,limit:10},{state:2,text:"收入",loadingType:"more",orderList:[],page:1,limit:10}],money:""}},onLoad:function(t){},onShow:function(){var t=this;this.loadData(),(0,i.userBalance)({}).then((function(e){var n=e.data;t.money=n.now_money}))},methods:{navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function n(){var a,o,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=e.tabCurrentIndex,o=e.navList[a],r=o.state,"tabChange"!==t||!0!==o.loaded){n.next=5;break}return n.abrupt("return");case 5:if("loading"!==o.loadingType){n.next=7;break}return n.abrupt("return");case 7:o.loadingType="loading",(0,i.spreadCommission)({page:o.page,limit:o.limit},r).then((function(t){var n=t.data;n.length>0&&(o.orderList=o.orderList.concat(n[0].list),console.log(o.orderList),o.page++),o.limit!=n.length?(o.loadingType="noMore",uni.hideLoading(),e.$set(o,"loaded",!0)):o.loadingType="more"})).catch((function(t){console.log(t)}));case 9:case"end":return n.stop()}}),n)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=u},"176e":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(){return a}));var a={uniLoadMore:n("2552").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"content-money"},[a("v-uni-view",{staticClass:"money-box"},[a("v-uni-image",{staticClass:"bg",attrs:{src:n("4886"),mode:""}}),a("v-uni-view",{staticClass:"text"}),a("v-uni-view",{staticClass:"money"},[t._v(t._s(t._f("getMoneyStyle")(t.money)))]),a("v-uni-view",{staticClass:"tzzz",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/user/yuezz")}}},[t._v("通证转账")]),a("v-uni-view",{staticClass:"zzjl",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/user/zzjl")}}},[t._v("转账记录")])],1)],1),a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"nav-item",class:{current:t.tabCurrentIndex===n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(n)}}},[t._v(t._s(e.text))])})),1),a("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.maxheight},attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,n){return a("v-uni-swiper-item",{key:n,staticClass:"tab-content"},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?a("empty"):t._e(),t._l(e.orderList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"order-item flex"},[a("v-uni-view",{staticClass:"title-box"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",[t._v(t._s(e.title))])],1),a("v-uni-view",{staticClass:"time"},[a("v-uni-text",[t._v(t._s(e.add_time))])],1)],1),a("v-uni-view",{staticClass:"money"},[a("v-uni-text",[t._v(t._s((0==e.pm?"-":"+")+e.number))])],1)],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},i=[]},"1b86":function(t,e,n){var a=n("ed71");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("c8830c5a",a,!0,{sourceMap:!1,shadowMode:!1})},"2e0d":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=i,e.userBalance=r,e.extractCash=s,e.extractBank=d,e.rechargeWechat=u,e.aliInfo=c,e.bankInfo=l,e.setAliInfo=f,e.setBankInfo=g,e.balance=v,e.zhuanList=p;var o=a(n("776a"));function i(t,e){return(0,o.default)({url:"/api/spread/commission/"+e,method:"get",data:t})}function r(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})}function s(t){return(0,o.default)({url:"/api/extract/cash",method:"post",data:t})}function d(t){return(0,o.default)({url:"/api/extract/bank",method:"get",data:t})}function u(t){return(0,o.default)({url:"/api/recharge/wechat",method:"post",data:t})}function c(t){return(0,o.default)({url:"/api/ali/info",method:"get",data:t})}function l(t){return(0,o.default)({url:"/api/bank/info",method:"get",data:t})}function f(t){return(0,o.default)({url:"/api/ali/edit",method:"post",data:t})}function g(t){return(0,o.default)({url:"/api/bank/edit",method:"post",data:t})}function v(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})}function p(t){return(0,o.default)({url:"/api/transfer_list",method:"post",data:t})}},"448c":function(t,e,n){"use strict";function a(t){var e=/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/;return!1!==e.test(t)||(console.log(t),!1)}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"string"==typeof t&&(t=(+t).toFixed(2)),"number"==typeof t&&(t=t.toFixed(2));var e=t.split(""),n=e.reverse().map((function(t,e,n){return e%3==0&&e/3>1&&e!=n.length?t+",":t}));return n=n.reverse().join(""),n}function i(t){var e=(new Date).getTime(),n=t-e;n<0&&(n*=-1);var a=Math.floor(n/1e3/60/60/24),o=Math.floor(n/1e3/60/60%24),i=Math.floor(n/1e3/60%60),r=Math.floor(n/1e3%60);return{hours:o,minutes:i,seconds:r,day:a}}function r(t){return new Promise((function(t,e){wx.getSetting({success:function(n){n.authSetting["scope.userLocation"]?t():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(n){if(0==n.confirm)return e(),!1;wx.openSetting({success:function(e){e.authSetting["scope.userLocation"]?t():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))}function s(t){for(var e=13-(t+"").length,n=1,a=0;a