(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-award"],{"191f":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=o,e.userBalance=r,e.extractCash=f,e.extractBank=s,e.rechargeWechat=u,e.aliInfo=d,e.bankInfo=l,e.setAliInfo=c,e.setBankInfo=g,e.balance=v,e.yue=p,e.integral=h;var i=a(n("559e"));function o(t,e){return(0,i.default)({url:"/api/spread/commission/"+e,method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}function f(t){return(0,i.default)({url:"/api/extract/cash",method:"post",data:t})}function s(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/ali/info",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/bank/info",method:"get",data:t})}function c(t){return(0,i.default)({url:"/api/ali/edit",method:"post",data:t})}function g(t){return(0,i.default)({url:"/api/bank/edit",method:"post",data:t})}function v(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/now_money/list",method:"get",data:t})}function h(t){return(0,i.default)({url:"/api/integral/list",method:"get",data:t})}},"20ee":function(t,e,n){"use strict";var a=n("9e1a"),i=n.n(a);i.a},"59be":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 i=a(n("1da1")),o=a(n("5530")),r=n("26cb"),f=n("d9e9"),s=n("bcaf"),u=a(n("f84e")),d=a(n("ef70")),l=n("191f"),c={filters:{getMoneyStyle:s.getMoneyStyle},components:{empty:d.default,uniLoadMore:u.default},computed:(0,o.default)({},(0,r.mapState)("user",["userInfo"])),onReady:function(t){var e=this;console.log(e.userInfo),uni.getSystemInfo({success:function(t){var n=uni.createSelectorQuery();n.select(".swiper-box").boundingClientRect(),n.exec((function(n){e.height=t.windowHeight-n[0].top+"px",console.log("打印页面的剩余高度",e.height)}))},fail:function(t){}})},data:function(){return{yj:"",height:"",maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{state:0,text:"支出",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"收入",loadingType:"more",orderList:[],page:1,limit:10}],money:""}},onLoad:function(t){},onShow:function(){this.extractBank(),this.loadData()},methods:{extractBank:function(){var t=this;(0,l.extractBank)().then((function(e){console.log(e),t.yj=e.data.commissionCount}))},toBack:function(){uni.switchTab({url:"/pages/user/user"})},navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,i.default)(regeneratorRuntime.mark((function n(){var a,i,o,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=e,i=e.tabCurrentIndex,o=e.navList[i],r=o.state,"tabChange"!==t||!0!==o.loaded){n.next=6;break}return n.abrupt("return");case 6:if("loading"!==o.loadingType){n.next=8;break}return n.abrupt("return");case 8:o.loadingType="loading",(0,f.getCommissionInfo)({page:o.page,limit:o.limit,pm:r}).then((function(t){var n=t.data;a.recharge=n.sr,a.orderStatusSum=n.zc,o.orderList=o.orderList.concat(n.list),o.page++,o.limit==n.list.length?o.loadingType="more":o.loadingType="noMore",uni.hideLoading(),e.$set(o,"loaded",!0)})).catch((function(t){console.log(t)}));case 10: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=c},"63a6":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniLoadMore:n("f84e").default},i=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:"status_bar"}),a("v-uni-view",{staticClass:"body-title"},[a("v-uni-view",{staticClass:"goback-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toBack.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"goback",attrs:{src:n("eb50"),mode:""}})],1),a("v-uni-view",{staticClass:"header"},[t._v("我的佣金")])],1),a("v-uni-view",{staticClass:"content-bg"},[a("v-uni-image",{attrs:{src:n("d068"),mode:""}})],1),a("v-uni-view",{staticClass:"money-box"},[a("v-uni-view",{staticClass:"money"},[t._v(t._s(t.userInfo.brokerage_price||0))]),a("v-uni-view",[t._v("我的佣金")])],1),a("v-uni-view",{staticClass:"moneybtn-box"},[a("v-uni-view",{staticClass:"money-btn"}),a("v-uni-view",{staticClass:"money-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/user/withdrawal")}}},[t._v("佣金提现")])],1)],1),a("v-uni-view",{staticClass:"info-box flex"},[a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"info-font"},[t._v("累计收入")]),a("v-uni-view",{staticClass:"info-num"},[t._v(t._s(t.recharge||"0"))])],1),a("v-uni-view",{staticClass:"shu"}),a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"info-font"},[t._v("累计支出")]),a("v-uni-view",{staticClass:"info-num"},[t._v(t._s(t.orderStatusSum||"0"))])],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.height},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":"true"},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(),a("v-uni-view",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.mark))])],1),a("v-uni-view",{staticClass:"time"},[a("v-uni-text",[t._v(t._s(e.create_time))])],1)],1),a("v-uni-view",{staticClass:"money"},[a("v-uni-view",[t._v(t._s((0==e.pm?"-":"+")+e.number))])],1)],1)})),1),0==e.orderList.length&&e.loaded?t._e():a("uni-load-more",{attrs:{status:e.loadingType}})],1)],1)})),1)],1)},o=[]},6498:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-ff9f0486]{background:#f1f1f1;height:100%}.status_bar[data-v-ff9f0486]{height:0;width:100%}.content-money[data-v-ff9f0486]{position:relative;height:%?480?%}.content-money .content-bg[data-v-ff9f0486]{position:absolute;top:0;left:0;right:0;width:%?750?%;height:%?480?%}.content-money .content-bg uni-image[data-v-ff9f0486]{width:100%;height:100%}.content-money .body-title[data-v-ff9f0486]{height:%?80?%;text-align:center;font-size:%?35?%;position:relative}.content-money .body-title .header[data-v-ff9f0486]{position:absolute;left:0;top:0;width:100%;font-size:%?36?%;font-family:PingFang SC;font-weight:700;color:#fffeff;height:%?80?%;font-size:%?36?%;font-weight:700;z-index:9;display:flex;justify-content:center;align-items:center}.content-money .body-title .goback-box[data-v-ff9f0486]{position:absolute;left:%?18?%;top:0;height:%?80?%;display:flex;align-items:center}.content-money .body-title .goback[data-v-ff9f0486]{z-index:100;width:%?34?%;height:%?34?%}.info-box[data-v-ff9f0486]{width:%?670?%;height:%?186?%;background:#fff;box-shadow:0 0 %?20?% 0 rgba(50,50,52,.06);border-radius:%?20?%;margin:%?-100?% auto 0;position:relative;z-index:2}.info-box .info-item[data-v-ff9f0486]{width:50%;display:flex;flex-direction:column;align-items:center;line-height:1}.info-box .info-item .info-font[data-v-ff9f0486]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#999}.info-box .info-item .info-num[data-v-ff9f0486]{margin-top:%?30?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#181818}.info-box .shu[data-v-ff9f0486]{width:%?2?%;height:%?74?%;background:#dcdfe6}.money-box[data-v-ff9f0486]{position:relative;z-index:2;padding-top:%?90?%;color:#fff;text-align:center}.money-box .money[data-v-ff9f0486]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .text[data-v-ff9f0486]{font-size:%?30?%}.moneybtn-box[data-v-ff9f0486]{display:flex;justify-content:space-between;position:relative;z-index:2;color:#fff;padding:%?0?% %?50?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#fff}.navbar[data-v-ff9f0486]{margin-top:%?20?%;display:flex;height:%?88?%;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-ff9f0486]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#999;position:relative}.navbar .nav-item.current[data-v-ff9f0486]{color:#000}.navbar .nav-item.current[data-v-ff9f0486]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #fe5b38}.swiper-box .order-item[data-v-ff9f0486]:last-child{margin-bottom:%?60?%}.swiper-box .order-item[data-v-ff9f0486]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box .title[data-v-ff9f0486]{font-size:%?32?%;color:#606266}.swiper-box .order-item .title-box .time[data-v-ff9f0486]{font-size:%?28?%;color:#909399}.swiper-box .order-item .money[data-v-ff9f0486]{color:#fd5b23;font-size:%?32?%;text-align:right}.swiper-box .order-item .money .status[data-v-ff9f0486]{color:#909399}.list-scroll-content[data-v-ff9f0486]{background:#fff;height:100%}.content[data-v-ff9f0486]{height:100%}.content .empty-content[data-v-ff9f0486]{background-color:#fff}.btn-box[data-v-ff9f0486]{width:%?674?%;height:%?88?%;background:linear-gradient(0deg,#2e58ff,#32c6ff);border-radius:%?44?%;font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#fff;text-align:center;line-height:%?88?%;position:fixed;bottom:%?48?%;left:0;right:0;margin:0 auto}body.?%PAGE?%[data-v-ff9f0486]{background:#f1f1f1}',""]),t.exports=e},"8dab":function(t,e,n){"use strict";n.r(e);var a=n("59be"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"9e1a":function(t,e,n){var a=n("6498");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("3507d536",a,!0,{sourceMap:!1,shadowMode:!1})},abc6:function(t,e,n){"use strict";n.r(e);var a=n("63a6"),i=n("8dab");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("20ee");var r,f=n("f0c5"),s=Object(f["a"])(i["default"],a["b"],a["c"],!1,null,"ff9f0486",null,!1,a["a"],r);e["default"]=s.exports},bcaf: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 i(){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 o(t){var e=(new Date).getTime(),n=t-e;n<0&&(n*=-1);var a=Math.floor(n/1e3/60/60/24),i=Math.floor(n/1e3/60/60%24),o=Math.floor(n/1e3/60%60),r=Math.floor(n/1e3%60);return{hours:i,minutes:o,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 f(t){for(var e=13-(t+"").length,n=1,a=0;a