pages-money-running-money-running.2fcba34e.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-running-money-running"],{2983:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE/klEQVR4XuWbTYgcRRSAX/VkhtmZjllFD4HEQwgiyeagoKAGZIWEME0kmdn1ogQhKB6EHIzgKQQ9iETBewgiaw7Kpjd/MwkEsgtiBI0ImgUlGH8QRBLc1ene/56S3szM1vZUd73qruqd2e3rvPfqva/eq/8hsME/slbx0/FX8+6s8yZQ70UAGAAgDwLAXQr0BoHMBdMa/SQN31IBQC8dLLhG1k0UEIFJs2QPJLLBUdYGgFIgbq3cUO1w096cadl9KmwrB+DUho4AbXyqwjmMjWLhnywZnFjCyPJklAGo14Z3EepNxnUkqZ5p2bFiiaUUdNaplmnSABTpz5qWXZCxlQhA/WrlJeLRz2UaTENWJhtiA3CqywNcbH3dICiB9zaX7BOidmIF0EUpL4iPTpnW2ENRQtIAeif4lbCjSkIKQC8G38IQBgENoJeDb0L407Ts7cFyQAFwqmV/oZERDSjd/jshRqlYGr3C+ikE4NSGXgba+ExncPlnT0Gmf8dyE26torMpCJaCGEAKi5w0Afh0WQiRANKq+7QBAMC4adkv+DBCAdQvVnaTDL2lMx/ZwNl2lv66CfPfv6+z6XYWhALQ1fu5x1+D7I4D6OBmJt4COvMbWl5G0C8FLgDnSuUVaNARGWMY2WLpHEaMK6NjcAwHoGHg4wXv3Z2EuW9PQHAMCAOlA0JHBug4ySkMngHS17+qZ9lgwgbBIIhUAOiofVEgUbOASDd2TTUVOzJANwBeL0YBINl+KOw7045TdRasAkBvvp51/763kJQqq595+BnIP308MgDROoDNgoWfx2DxF3UL01UAdPR+cNqTzQCfnM4y0A7A2LIH+p47mSgDVGZk5G5QRwZgelBUAusOQHDX1xUApsYO9WdzxpQu2rzFzdw3H4J37+uOhZAuH3h222OAUxs6DrRxSlfjwbEgrB3V05wonjYAt3b4S0rJXpFC0t9F+wFv+g7M3Xg7aTNo/ZUMqJZ/B4BH0ZoxBYMLm7XOBBZA6tdb+afehcwjuyNR6s4IFoB/fy91rxYzCTrUwg5GWMGZa0eBLk6rarJthwXw4/2XGul/2O3w7FcnofGv76a6j5kFKh8DpcfUmcZbwm6Hg+sHfAvhkkwGDO8B8H5QYVTWRtRCiDdOqJwqte8FMDBEK8Ge3gxhnBcB8CGydnoqAzY8ABXnAallQP1yeZAQuI6pWxkZNgvmb43A0h/nV6mLSgCTRTL+sLKpnwnyprJ1DyCYwkEIXXUqXL84/DzJeBNxUypMj7cLpLPTMDN+tOM8ILN1H+SfeINrSuUM4DfAvxrTcDPEywJZyKqDjwBweBKA7JJ1ECMf1bth+ro2QsWSbaR+O8wGWdh/FsimPDfuxTtXYeGn0ximsWVCL0d9i0617L+lwd9jx3YD1uRMsPVKZKO+EBE/kPA7lH4xnHOL3nyCzkWpitYBKCMSQug3Qs1S+A8ANkvYlxbNDRwD44Fty3q6D0S9Bnlsy8Fzt1tOCl+JNSGkfl4oTRGl0Pl2GAVgvUDgPZdFA+h1CInfCrcyTNcFKiqDYwopey3eixBE/x6RKgG2A3ohE0TBh+4FsJnWxRBGTMs+gokjdga0jLuXyk9SA77DNJaGDKbXWT8SA2DGBX/FmEsjSG4bxPjILI2uvMZCOqIMwBoOkL+aln3/zwYxPuUA2qVRK9+mFHbG8AmnQox3zNLoBzjhcKn/Ae9OIbzUDvboAAAAAElFTkSuQmCC"},"30fe":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-69b616f5]{margin-top:%?10?%}.app-item uni-input[data-v-69b616f5], .app-item uni-picker[data-v-69b616f5], .app-item uni-textarea[data-v-69b616f5]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-69b616f5]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-69b616f5]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-69b616f5]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-69b616f5]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-69b616f5]{color:#fff;background:#f76454}.small-btn[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-69b616f5]{color:#999;border-color:#999}.login-btn[data-v-69b616f5]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-69b616f5]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-69b616f5]{margin-right:%?20?%}.border-right[data-v-69b616f5]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-69b616f5]{margin-right:%?6?%}.position-center[data-v-69b616f5]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-69b616f5]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-69b616f5]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-69b616f5]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-69b616f5]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-69b616f5]{color:#f76454}.swiper-nav[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-69b616f5]{color:#f76454}.swiper-nav .moveBar[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-69b616f5]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-69b616f5]{flex:1;width:100%}.swiper-area uni-swiper[data-v-69b616f5]{width:100%;height:100%}.article-header[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-69b616f5]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-69b616f5]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-69b616f5]{color:#f76454}.article-footer[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-69b616f5]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-69b616f5]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-69b616f5]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\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/* 文章场景相关 */.money-running[data-v-69b616f5]{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f2f2f2;justify-content:flex-start}.money-running .money[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;font-size:%?36?%;width:100%;height:%?200?%;background:linear-gradient(-59deg,#f77354,#f9a272)}.money-running .money .num[data-v-69b616f5]{font-size:%?60?%}.money-running .picker[data-v-69b616f5]{width:100%;height:%?98?%;margin:%?10?% 0;background:#fff}.money-running .picker uni-picker[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:100%}.money-running .no[data-v-69b616f5]{flex:1;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:row}.money-running .list[data-v-69b616f5]{flex:1;width:100%;overflow:auto}.money-running .list .item[data-v-69b616f5]{height:%?90?%;background:#fff;margin-bottom:%?1?%;box-sizing:border-box;padding:%?13?% %?30?%;display:flex;align-items:center;justify-content:center;flex-direction:row;justify-content:space-between;font-size:%?32?%}.money-running .list .item .left[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:row}.money-running .list .item .left > uni-view[data-v-69b616f5]{display:flex;align-items:center;justify-content:center;flex-direction:column;align-items:flex-start;margin-left:%?16?%}.money-running .list .item .left > uni-view uni-text[data-v-69b616f5]{font-size:%?28?%}.money-running .list .item .left > uni-view uni-text.time[data-v-69b616f5]{font-size:%?24?%;color:#666}.money-running .list .item .left uni-image[data-v-69b616f5]{width:%?64?%;height:%?64?%}',""]),t.exports=e},"840c":function(t,e,n){"use strict";var i=n("e58d"),a=n.n(i);a.a},a147:function(t,e,n){"use strict";n("99af"),n("d3b7"),n("ac1f"),n("25f0"),n("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("a4b7"),a={data:function(){return{end:this.getDate({format:!0}),date:this.getDate({format:!0}),list:[]}},filters:{getRunningStatus:function(t){switch(t.toString()){case"0":return"账户充值";case"1":return"购买商品";case"2":return"订单退款";case"3":return"后台扣款";default:return""}}},computed:{money:function(){return this.$store.state.userinfo.money},timestamp:function(){return+new Date("".concat(this.date.split("-")[0],"-").concat(this.date.split("-")[1],"-01"))/1e3-28800}},mounted:function(){this.request()},methods:{request:function(){var t=this;uni.loading(),(0,i._API_PurseRunning)({time:this.timestamp}).then((function(e){var n=e.data.list;t.list=n}))},getDate:function(t){var e=new Date,n=e.getFullYear(),i=e.getMonth()+1,a=e.getDate();return i=i>9?i:"0"+i,a=a>9?a:"0"+a,"".concat(n,"-").concat(i,"-").concat(a)},bindDateChange:function(t){var e=this;this.date=t.target.value,setTimeout((function(){return e.request()}))},detail:function(t){var e=Date.now().toString();uni.setStorageSync(e,JSON.stringify(t)),uni.navigateTo({url:"../money-running-detail/money-running-detail?key=".concat(e)})}}};e.default=a},a4b7:function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e._API_ActivityList=e._API_OrderRank=e._API_OrderSum=e._API_PurseRunning=e._API_FortuneReward=e._API_FortuneRecordRecord=e._API_FortuneRecordOrder=e._API_FortuneIncomeList=e._API_FortuneChart=void 0;var a=i(n("daa8")),r=function(t){return a.default.get("/app/chart?type=2",t)};e._API_FortuneChart=r;var o=function(t){return a.default.get("/income/income",t)};e._API_FortuneIncomeList=o;var f=function(t){return a.default.get("/inventory/record",t)};e._API_FortuneRecordOrder=f;var d=function(t){return a.default.get("/inventory/record_his",t)};e._API_FortuneRecordRecord=d;var c=function(t){return a.default.get("/income/detail",t)};e._API_FortuneReward=c;var s=function(t){return a.default.get("/user/user_pay_log",t)};e._API_PurseRunning=s;var l=function(t){return a.default.get("/order/order_data",t)};e._API_OrderSum=l;var u=function(t){return a.default.get("/order/order_rank",t)};e._API_OrderRank=u;var g=function(t){return a.default.get("/get_activity_list",t)};e._API_ActivityList=g},c9ba:function(t,e,n){"use strict";n.r(e);var i=n("cccd"),a=n("e8ff");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("840c");var o,f=n("f0c5"),d=Object(f["a"])(a["default"],i["b"],i["c"],!1,null,"69b616f5",null,!1,i["a"],o);e["default"]=d.exports},cccd:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"money-running"},[i("v-uni-view",{staticClass:"money"},[i("v-uni-text",{staticClass:"num"},[t._v("余额:¥"+t._s(t.money))])],1),i("v-uni-view",{staticClass:"picker"},[i("v-uni-picker",{attrs:{mode:"date",fields:"month",value:t.date,end:t.end},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindDateChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.date.split("-")[0])+t._s(" - ")+t._s(t.date.split("-")[1])+t._s(" >"))])],1)],1),t.list.length?i("v-uni-view",{staticClass:"list"},t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.detail(e)}}},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:n("2983")}}),i("v-uni-view",[i("v-uni-text",[t._v(t._s(t._f("getRunningStatus")(e.type)))]),i("v-uni-text",{staticClass:"time"},[t._v(t._s(e.updated_at))])],1)],1),i("v-uni-view",{staticClass:"rihgt",class:{basecolor:1!=e.type}},[t._v(t._s(1==e.type||3==e.type?"- ":"+ ")+t._s(e.pay_money))])],1)})),1):i("v-uni-view",{staticClass:"no"},[t._v("暂无流水")])],1)},r=[]},e58d:function(t,e,n){var i=n("30fe");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("75134389",i,!0,{sourceMap:!1,shadowMode:!1})},e8ff:function(t,e,n){"use strict";n.r(e);var i=n("a147"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a}}]);