pages-user-award.fc32ae46.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-award"],{"36a8":function(t,e,a){"use strict";var n=a("4ea4");a("99af"),a("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var o=n(a("1da1")),i=n(a("5530")),r=a("eb45"),d=a("26cb"),s=a("793c"),c=n(a("dfd3")),l=n(a("599d")),u={filters:{getMoneyStyle:s.getMoneyStyle},components:{empty:l.default,uniLoadMore:c.default},onReady:function(){var t=this;uni.createSelectorQuery().select(".content").fields({size:!0},(function(e){console.log(e),console.log(Math.floor(e.width/750*300)),t.maxheight=e.height-Math.floor(e.width/750*570),console.log(t.maxheight)})).exec()},computed:(0,i.default)({},(0,d.mapState)("user",["userInfo","orderInfo","hasLogin"])),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}],money:""}},onLoad:function(t){},onShow:function(){var t=this;this.loadData(),(0,r.userBalance)({}).then((function(e){var a=e.data;t.money=a.commissionCount}))},methods:{navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function a(){var n,o,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e.tabCurrentIndex,o=e.navList[n],i=o.state+3,"tabChange"!==t||!0!==o.loaded){a.next=5;break}return a.abrupt("return");case 5:if("loading"!==o.loadingType){a.next=7;break}return a.abrupt("return");case 7:o.loadingType="loading",(0,r.spreadCommission)({page:o.page,limit:o.limit},i).then((function(t){var a=t.data;a.length>0&&(o.orderList=o.orderList.concat(a[0].list),console.log(o.orderList),o.page++),o.limit!=a.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 a.stop()}}),a)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=u},"6a11":function(t,e,a){var n=a("74b9");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("c7b491b8",n,!0,{sourceMap:!1,shadowMode:!1})},"74b9":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".uni-load-more[data-v-c8f01f2e]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-c8f01f2e]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-c8f01f2e]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-c8f01f2e]{position:absolute}.uni-load-more__img>.load .item[data-v-c8f01f2e]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-c8f01f2e 1.56s ease infinite;animation:load-data-v-c8f01f2e 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(4){top:11px;left:0}.load1[data-v-c8f01f2e],\n.load2[data-v-c8f01f2e],\n.load3[data-v-c8f01f2e]{height:24px;width:24px}.load2[data-v-c8f01f2e]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-c8f01f2e]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-c8f01f2e{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},"793c":function(t,e,a){"use strict";function n(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(""),a=e.reverse().map((function(t,e,a){return e%3==0&&e/3>1&&e!=a.length?t+",":t}));return a=a.reverse().join(""),a}function i(t){var e=(new Date).getTime(),a=t-e;a<0&&(a*=-1);var n=Math.floor(a/1e3/60/60/24),o=Math.floor(a/1e3/60/60%24),i=Math.floor(a/1e3/60%60),r=Math.floor(a/1e3%60);return{hours:o,minutes:i,seconds:r,day:n}}function r(t){return new Promise((function(t,e){wx.getSetting({success:function(a){a.authSetting["scope.userLocation"]?t():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(a){if(0==a.confirm)return e(),!1;wx.openSetting({success:function(e){e.authSetting["scope.userLocation"]?t():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))}function d(t){for(var e=13-(t+"").length,a=1,n=0;n<e;n++)a+="0";a=parseInt(a);var o=new Date(parseInt(t)*a),i=o.getFullYear(),r=o.getMonth()+1;r<10&&(r="0"+r);var d=o.getDate();d<10&&(d="0"+d);var s=o.getHours();s<10&&(s="0"+s);var c=o.getMinutes();c<10&&(c="0"+c);var l=o.getSeconds();return l<10&&(l="0"+l),i+"-"+r+"-"+d+" "+s+":"+c+":"+l}a("d81d"),a("26e9"),a("d3b7"),a("e25e"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.isCardNo=n,e.getMoneyStyle=o,e.timeComputed=i,e.openMap=r,e.getTime=d},"8af6":function(t,e,a){"use strict";a.r(e);var n=a("93dc"),o=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"90a2":function(t,e,a){"use strict";var n=a("6a11"),o=a.n(n);o.a},"93dc":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=n},abab:function(t,e,a){"use strict";a.r(e);var n=a("b1dc"),o=a("f971");for(var i in o)"default"!==i&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("b6c4");var r,d=a("f0c5"),s=Object(d["a"])(o["default"],n["b"],n["c"],!1,null,"470d5338",null,!1,n["a"],r);e["default"]=s.exports},b1dc:function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={uniLoadMore:a("dfd3").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-view",{staticClass:"text"},[t._v("可提现佣金(元)")]),a("v-uni-view",{staticClass:"money"},[t._v(t._s(t._f("getMoneyStyle")(t.userInfo.brokerage_price)))])],1),a("v-uni-view",{staticClass:"moneyTx",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("./withdrawal")}}},[t._v("提现")])],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+"px"},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(),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=[]},b2fe:function(t,e,a){var n=a("c2af");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("6aa5aeda",n,!0,{sourceMap:!1,shadowMode:!1})},b6c4:function(t,e,a){"use strict";var n=a("b2fe"),o=a.n(n);o.a},c2af:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-470d5338]{background:#fff;height:100%}.content-money[data-v-470d5338]{padding-bottom:%?30?%;background:#f8f8f8}.content-money .moneyTx[data-v-470d5338]{position:absolute;top:%?150?%;right:%?0?%;width:%?150?%;padding:%?10?% %?30?%;border:2px solid #fff;border-top-left-radius:%?99?%;border-bottom-left-radius:%?99?%;color:#fff;line-height:1;font-size:%?28?%}.content-money .buttom-box[data-v-470d5338]{background-color:#fff;text-align:center;margin:0 %?30?%;padding:%?20?% 0;border-radius:%?15?%;margin-top:%?-60?%}.content-money .buttom-box .buttom[data-v-470d5338]{font-size:%?32?%;flex-grow:1}.content-money .buttom-box .interval[data-v-470d5338]{width:2px;height:%?60?%;background-color:#eee}.content-money .buttom-box .icon[data-v-470d5338]{height:%?50?%;width:%?48?%;margin:0 auto}.content-money .buttom-box .icon .icon-img[data-v-470d5338]{width:100%;height:100%}.money-box[data-v-470d5338]{background-color:#5dbc7c;padding-top:0;height:%?368?%;color:#fff;text-align:center}.money-box .text[data-v-470d5338]{padding-top:%?147?%;font-size:%?24?%}.money-box .money[data-v-470d5338]{font-size:%?56?%}.navbar[data-v-470d5338]{display:flex;height:40px;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-470d5338]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-470d5338]{color:#5dbc7c}.navbar .nav-item.current[data-v-470d5338]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #5dbc7c}.swiper-box[data-v-470d5338]{padding-top:%?10?%}.swiper-box .order-item[data-v-470d5338]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box .title[data-v-470d5338]{font-size:%?32?%;color:#606266}.swiper-box .order-item .title-box .time[data-v-470d5338]{font-size:%?28?%;color:#909399}.swiper-box .order-item .money[data-v-470d5338]{color:#fd5b23;font-size:%?32?%}.list-scroll-content[data-v-470d5338]{height:100%}.content[data-v-470d5338]{height:100%}.content .empty-content[data-v-470d5338]{background-color:#fff}body.?%PAGE?%[data-v-470d5338]{background:#fff}',""]),t.exports=e},dfd3:function(t,e,a){"use strict";a.r(e);var n=a("ede1"),o=a("8af6");for(var i in o)"default"!==i&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("90a2");var r,d=a("f0c5"),s=Object(d["a"])(o["default"],n["b"],n["c"],!1,null,"c8f01f2e",null,!1,n["a"],r);e["default"]=s.exports},eb45:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=i,e.userBalance=r,e.extractCash=d,e.extractBank=s,e.rechargeWechat=c,e.aliInfo=l,e.bankInfo=u,e.setAliInfo=f,e.setBankInfo=v,e.balance=m,e.integral=h;var o=n(a("4c3b"));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 d(t){return(0,o.default)({url:"/api/extract/cash",method:"post",data:t})}function s(t){return(0,o.default)({url:"/api/extract/bank",method:"get",data:t})}function c(t){return(0,o.default)({url:"/api/recharge/wechat",method:"post",data:t})}function l(t){return(0,o.default)({url:"/api/ali/info",method:"get",data:t})}function u(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 v(t){return(0,o.default)({url:"/api/bank/edit",method:"post",data:t})}function m(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})}function h(t){return(0,o.default)({url:"/api/integral/list",method:"get",data:t})}},ede1:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-load-more"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[a("v-uni-view",{staticClass:"load1 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load2 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load3 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),a("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},i=[]},f971:function(t,e,a){"use strict";a.r(e);var n=a("36a8"),o=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a}}]);