pages-user-cash.5a375b38.js 9.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-cash"],{"10da":function(t,e,n){"use strict";n.r(e);var a=n("6ec7"),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},"1e9c":function(t,e,n){"use strict";var a=n("99aa"),i=n.n(a);i.a},"5e97":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-0a952b49]{background:#f1f1f1;height:100%}.status_bar[data-v-0a952b49]{height:0;width:100%}.content-money[data-v-0a952b49]{position:relative;height:%?480?%}.content-money .content-bg[data-v-0a952b49]{position:absolute;top:0;left:0;right:0;width:%?750?%;height:%?480?%}.content-money .content-bg uni-image[data-v-0a952b49]{width:100%;height:100%}.content-money .body-title[data-v-0a952b49]{height:%?80?%;text-align:center;font-size:%?35?%;position:relative}.content-money .body-title .header[data-v-0a952b49]{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-0a952b49]{position:absolute;left:%?18?%;top:0;height:%?80?%;display:flex;align-items:center}.content-money .body-title .goback[data-v-0a952b49]{z-index:100;width:%?34?%;height:%?34?%}.info-box[data-v-0a952b49]{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-0a952b49]{width:50%;display:flex;flex-direction:column;align-items:center;line-height:1}.info-box .info-item .info-font[data-v-0a952b49]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#999}.info-box .info-item .info-num[data-v-0a952b49]{margin-top:%?30?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#181818}.info-box .shu[data-v-0a952b49]{width:%?2?%;height:%?74?%;background:#dcdfe6}.moneybtn-box[data-v-0a952b49]{display:flex;justify-content:space-between;position:relative;z-index:2;color:#fff;padding:%?20?% %?50?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box[data-v-0a952b49]{position:relative;z-index:2;padding-top:%?90?%;color:#fff;text-align:center}.money-box .money[data-v-0a952b49]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .text[data-v-0a952b49]{font-size:%?30?%}.navbar[data-v-0a952b49]{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-0a952b49]{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-0a952b49]{color:#000}.navbar .nav-item.current[data-v-0a952b49]: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-0a952b49]:last-child{margin-bottom:%?60?%}.swiper-box .order-item[data-v-0a952b49]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box .title[data-v-0a952b49]{font-size:%?32?%;color:#606266}.swiper-box .order-item .title-box .time[data-v-0a952b49]{font-size:%?28?%;color:#909399}.swiper-box .order-item .money[data-v-0a952b49]{color:#fd5b23;font-size:%?32?%;text-align:right}.swiper-box .order-item .money .status[data-v-0a952b49]{color:#909399}.list-scroll-content[data-v-0a952b49]{background:#fff;height:100%}.content[data-v-0a952b49]{height:100%}.content .empty-content[data-v-0a952b49]{background-color:#fff}.btn-box[data-v-0a952b49]{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-0a952b49]{background:#f1f1f1}',""]),t.exports=e},"61f9":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("96a7").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("0176"),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("a5ee"),mode:""}})],1),a("v-uni-view",{staticClass:"money-box"},[a("v-uni-view",{staticClass:"money"},[t._v(t._s(t.userInfo.cash))]),a("v-uni-view",[t._v("我的现金")])],1),a("v-uni-view",{staticClass:"moneybtn-box"},[a("v-uni-view",{staticClass:"money-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/money/withdmoenys?type=cash")}}},[t._v("现金转账")]),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))])],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))])],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":"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.add_time))])],1)],1),a("v-uni-view",{staticClass:"money"},[a("v-uni-view",[t._v(t._s((0==e.pm?"-":"+")+e.number))]),0==e.status?a("v-uni-view",{staticClass:"status"},[t._v("待发放")]):t._e()],1)],1)})),1),a("uni-load-more",{attrs:{status:e.loadingType}})],1)],1)})),1)],1)},o=[]},"6ec7":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")),s=n("8a24"),r=n("b6227"),c=n("26cb"),l=a(n("bfe9")),d=a(n("8b1c")),f={filters:{getMoneyStyle:r.getMoneyStyle},computed:(0,o.default)({},(0,c.mapState)("user",["userInfo","orderInfo","hasLogin"])),components:{empty:d.default,uniLoadMore:l.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){e.maxheight=t.windowHeight-n[0].top+"px",console.log("打印页面的剩余高度",e.height)}))},fail:function(t){}})},data:function(){return{maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{state:1,text:"收入",loadingType:"more",orderList:[],page:1,limit:10},{state:0,text:"支出",loadingType:"more",orderList:[],page:1,limit:10}],money:""}},onLoad:function(t){},onShow:function(){this.loadData()},methods:{navto:function(t){uni.navigateTo({url:t})},toBack:function(){uni.navigateBack({})},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,s.cashList)({page:o.page,limit:o.limit,pm:r}).then((function(t){var n=t.data;a.recharge=n.income,a.orderStatusSum=n.expend,n.list.length>0&&(o.orderList=o.orderList.concat(n.list),console.log(o.orderList),o.page++),o.limit!=n.list.length?(o.loadingType="noMore",uni.hideLoading(),e.$set(o,"loaded",!0)):o.loadingType="more"})).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=f},"7b89":function(t,e,n){"use strict";n.r(e);var a=n("61f9"),i=n("10da");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("1e9c");var s,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"0a952b49",null,!1,a["a"],s);e["default"]=c.exports},"99aa":function(t,e,n){var a=n("5e97");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("91e2af5c",a,!0,{sourceMap:!1,shadowMode:!1})},a5ee:function(t,e,n){t.exports=n.p+"static/img/cash-bg.8993f7b8.png"}}]);