pages-money-wallet.5aa7f806.js 17 KB

123
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-wallet"],{"10ab":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"content-money"},[n("v-uni-view",{staticClass:"status_bar"}),n("v-uni-view",{staticClass:"body-title"},[n("v-uni-view",{staticClass:"header"},[t._v("我的余额")])],1),n("v-uni-view",{staticClass:"money-box"},[n("v-uni-view",{staticClass:"money"},[t._v(t._s(t._f("getMoneyStyle")(t.money)))]),n("v-uni-view",[t._v("我的余额")])],1),n("v-uni-view",{staticClass:"moneybtn-box"},[n("v-uni-view",{staticClass:"money-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/money/withdmoenys?type=yue")}}},[t._v("转账")])],1)],1),n("v-uni-view",{staticClass:"info-box flex"},[n("v-uni-view",{staticClass:"info-item"},[n("v-uni-view",{staticClass:"info-font"},[t._v("累计收入")]),n("v-uni-view",{staticClass:"info-num"},[t._v(t._s(t.recharge))])],1),n("v-uni-view",{staticClass:"shu"}),n("v-uni-view",{staticClass:"info-item"},[n("v-uni-view",{staticClass:"info-font"},[t._v("累计支出")]),n("v-uni-view",{staticClass:"info-num"},[t._v(t._s(t.orderStatusSum))])],1)],1),n("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"nav-item",class:{current:t.tabCurrentIndex===i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[t._v(t._s(e.text))])})),1),n("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,i){return n("v-uni-swiper-item",{key:i,staticClass:"tab-content"},[n("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?n("empty"):t._e(),n("v-uni-view",t._l(e.orderList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"order-item flex"},[n("v-uni-view",{staticClass:"title-box"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",[t._v(t._s(e.title))])],1),n("v-uni-view",{staticClass:"time"},[n("v-uni-text",[t._v(t._s(e.add_time))])],1)],1),n("v-uni-view",{staticClass:"money"},[n("v-uni-view",[t._v(t._s((0==e.pm?"-":"+")+e.number))]),0==e.status?n("v-uni-view",{staticClass:"status"},[t._v("待发放")]):t._e()],1)],1)})),1),0==e.orderList.length&&e.loaded?t._e():n("uni-load-more",{attrs:{status:e.loadingType}})],1)],1)})),1)],1)},r=[]},"1da1":function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){try{var c=t[o](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(i,r)}n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function c(t){i(a,r,o,c,s,"next",t)}function s(t){i(a,r,o,c,s,"throw",t)}c(void 0)}))}},n("d3b7")},"4a30":function(t,e,n){var i=n("f555");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("e783549c",i,!0,{sourceMap:!1,shadowMode:!1})},"5e95":function(t,e,n){"use strict";n.r(e);var i=n("10ab"),r=n("c456");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("5ec4");var a=n("f0c5"),c=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"638c40c6",null,!1,i["a"],void 0);e["default"]=c.exports},"5ec4":function(t,e,n){"use strict";var i=n("4a30"),r=n.n(i);r.a},b636:function(t,e,n){var i=n("e065");i("asyncIterator")},c456:function(t,e,n){"use strict";n.r(e);var i=n("fac0"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},c7eb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
  2. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  3. e.default=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(P){l=function(t,e,n){return t[e]=n}}function f(t,e,n,i){var r=e&&e.prototype instanceof h?e:h,a=Object.create(r.prototype),c=new S(i||[]);return o(a,"_invoke",{value:C(t,n,c)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}t.wrap=f;var v={};function h(){}function p(){}function g(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(j([])));b&&b!==n&&r.call(b,c)&&(y=b);var w=g.prototype=h.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var n;o(this,"_invoke",{value:function(o,a){function c(){return new e((function(n,c){(function n(o,a,c,s){var u=d(t[o],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==(0,i.default)(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)})(o,a,n,c)}))}return n=n?n.then(c,c):c()}})}function C(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var c=L(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var s=d(t,e,n);if("normal"===s.type){if(i=n.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i="completed",n.method="throw",n.arg=s.arg)}}}function L(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var r=d(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:p,configurable:!0}),p.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(_.prototype),l(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new _(f(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,u,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var i=function(t){return t&&t.__esModule?t:{default:t}}(n("53ca"))},f555:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-638c40c6]{background:#f1f1f1;height:100%}body.?%PAGE?%[data-v-638c40c6]{background:#f1f1f1}.status_bar[data-v-638c40c6]{height:0;width:100%}.content-money[data-v-638c40c6]{position:relative;height:%?480?%}.content-money .content-bg[data-v-638c40c6]{position:absolute;top:0;left:0;right:0;width:%?750?%;height:%?480?%}.content-money .content-bg uni-image[data-v-638c40c6]{width:100%;height:100%}.content-money .body-title[data-v-638c40c6]{height:%?80?%;text-align:center;font-size:%?35?%;position:relative}.content-money .body-title .header[data-v-638c40c6]{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-638c40c6]{position:absolute;left:%?18?%;top:0;height:%?80?%;display:flex;align-items:center}.content-money .body-title .goback[data-v-638c40c6]{z-index:100;width:%?34?%;height:%?34?%}.info-box[data-v-638c40c6]{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-638c40c6]{width:50%;display:flex;flex-direction:column;align-items:center;line-height:1}.info-box .info-item .info-font[data-v-638c40c6]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#999}.info-box .info-item .info-num[data-v-638c40c6]{margin-top:%?30?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#181818}.info-box .shu[data-v-638c40c6]{width:%?2?%;height:%?74?%;background:#dcdfe6}.money-box[data-v-638c40c6]{position:relative;z-index:2;padding-top:%?70?%;color:#fff;text-align:center}.money-box .money[data-v-638c40c6]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .text[data-v-638c40c6]{font-size:%?30?%}.moneybtn-box[data-v-638c40c6]{display:flex;justify-content:space-between;position:relative;z-index:2;color:#fff;padding:%?20?% %?50?%;font-size:%?30?%;margin-top:%?-40?%;font-family:PingFang SC;font-weight:700;color:#fff}.navbar[data-v-638c40c6]{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-638c40c6]{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-638c40c6]{color:#000}.navbar .nav-item.current[data-v-638c40c6]: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-638c40c6]:last-child{margin-bottom:%?60?%}.swiper-box .order-item[data-v-638c40c6]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .money[data-v-638c40c6]{color:#fd5b23;text-align:right}.list-scroll-content[data-v-638c40c6]{background:#fff;height:100%}.content[data-v-638c40c6]{height:100%}.content .empty-content[data-v-638c40c6]{background-color:#fff}.btn-box[data-v-638c40c6]{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}',""]),t.exports=e},fac0:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("c7eb")),o=i(n("1da1"));n("ac1f"),n("99af");var a={filters:{getMoneyStyle:getMoneyStyle},onReady:function(t){var e=this;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{height:"",maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{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(),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)((0,r.default)().mark((function n(){var i,o,a;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e,i=e.tabCurrentIndex,o=e.navList[i],a=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",spreadCommission({page:o.page,limit:o.limit},a).then((function(t){var n=t.data;if(n[0].list.length>0?(console.log(n[0].list,"data.list[0]"),o.orderList=o.orderList.concat(n[0].list),console.log(o.orderList,"navItem.orderList"),o.page++):(o.loadingType="noMore",console.log("还有税局2")),o.limit==n[0].list.length)return console.log(o.limit==n[0].list.length,"还有税局"),void(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=a}}]);