You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
11 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f67d53d2"],{"28ba":function(t,a,e){var n=e("6254");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("499e").default;i("816066e6",n,!0,{sourceMap:!1,shadowMode:!1})},6254:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,".app-container[data-v-29038b5a]{background:#f2f2f2;height:100vh;width:100%}.app-container[data-v-29038b5a],.panel-group[data-v-29038b5a]{-webkit-box-sizing:border-box;box-sizing:border-box}.panel-group[data-v-29038b5a]{border-radius:12px;background:#fff;margin-bottom:30px}.panel-group .header[data-v-29038b5a]{font-size:16px;padding:20px 20px 0}.panel-group .card-panel-col[data-v-29038b5a]{margin-bottom:32px}.panel-group .card-panel-col+.card-panel-col .card-panel-description[data-v-29038b5a]{border-left:1px solid #d8d8d8}.panel-group .card-panel[data-v-29038b5a]{height:auto;cursor:pointer;font-size:12px;position:relative;overflow:hidden;color:#666;background:#fff;border-color:rgba(0,0,0,.05)}.panel-group .card-panel:hover .card-panel-icon-wrapper[data-v-29038b5a]{color:#fff}.panel-group .card-panel:hover .icon-people[data-v-29038b5a]{background:#40c9c6}.panel-group .card-panel:hover .icon-message[data-v-29038b5a]{background:#36a3f7}.panel-group .card-panel:hover .icon-money[data-v-29038b5a]{background:#f4516c}.panel-group .card-panel:hover .icon-shopping[data-v-29038b5a]{background:#34bfa3}.panel-group .card-panel .icon-people[data-v-29038b5a]{color:#40c9c6}.panel-group .card-panel .icon-message[data-v-29038b5a]{color:#36a3f7}.panel-group .card-panel .icon-money[data-v-29038b5a]{color:#f4516c}.panel-group .card-panel .icon-shopping[data-v-29038b5a]{color:#34bfa3}.panel-group .card-panel .card-panel-icon-wrapper[data-v-29038b5a]{float:left;margin:14px 0 0 14px;padding:16px;-webkit-transition:all .38s ease-out;transition:all .38s ease-out;border-radius:6px}.panel-group .card-panel .card-panel-icon[data-v-29038b5a]{float:left;font-size:48px}.panel-group .card-panel-description[data-v-29038b5a]{text-align:center;font-weight:700;margin:26px;margin-left:0}.panel-group .card-panel-description .card-panel-text[data-v-29038b5a]{line-height:18px;color:#333;font-size:16px;margin-bottom:12px}.panel-group .card-panel-description .card-panel-growth-text[data-v-29038b5a]{color:#999;font-size:16px;margin-top:12px}.panel-group .card-panel-description .card-panel-num[data-v-29038b5a]{font-size:30px}",""]),t.exports=a},9406:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-container "},[e("el-row",{staticClass:"panel-group"},[e("div",{staticClass:"header"},[e("span",{staticClass:"iconfont icon-notice"},[t._v("统计数据")])]),e("el-divider"),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel"},[e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 用户总数 ")]),e("countto",{staticClass:"card-panel-num",staticStyle:{color:"#40AF52"},attrs:{"start-val":0,"end-val":t.SysSetting.UserSumTotal,duration:3e3}}),e("div",{staticClass:"card-panel-growth-text"},[e("span",[t._v("日增量")]),e("span",[t._v(t._s(t.SysSetting.UserAddTotalPercent))]),t.SysSetting.UserAddTotalPercent>0?e("i",{staticClass:"el-icon-top",staticStyle:{color:"#40AF52"}}):e("i",{staticClass:"el-icon-bottom",staticStyle:{color:"#FF0008"}})])],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel"},[e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 本日活跃用户 ")]),e("countto",{staticClass:"card-panel-num",staticStyle:{color:"#20BDD6"},attrs:{"start-val":0,"end-val":t.SysSetting.ActiveUserTotal,duration:3600}}),e("div",{staticClass:"card-panel-growth-text"},[e("span",[t._v("日增量")]),e("span",[t._v(t._s(t.SysSetting.UserAddTotal))]),t.SysSetting.UserAddTotal>0?e("i",{staticClass:"el-icon-top",staticStyle:{color:"#40AF52"}}):e("i",{staticClass:"el-icon-bottom",staticStyle:{color:"#FF0008"}})])],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel"},[e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 总收入")]),e("countto",{staticClass:"card-panel-num",staticStyle:{color:"#D745EE"},attrs:{"start-val":0,"end-val":t.SysSetting.Income,duration:3e3}}),e("div",{staticClass:"card-panel-growth-text"},[e("span",[t._v("日增量")]),e("span",[t._v(t._s(t.SysSetting.IncomePercent))]),t.SysSetting.IncomePercent>0?e("i",{staticClass:"el-icon-top",staticStyle:{color:"#40AF52"}}):e("i",{staticClass:"el-icon-bottom",staticStyle:{color:"#FF0008"}})])],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel"},[e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 日收入 ")]),e("countto",{staticClass:"card-panel-num",staticStyle:{color:"#D745EE"},attrs:{"start-val":0,"end-val":t.SysSetting.TodayIncome,duration:3200}}),e("div",{staticClass:"card-panel-growth-text"},[e("span",[t._v("日增收 "+t._s(t.SysSetting.IncomeIncremental>0?"+":"-"))]),e("span",[t._v(t._s(t.SysSetting.IncomeIncremental))]),t.SysSetting.IncomeIncremental>0?e("i",{staticClass:"el-icon-top",staticStyle:{color:"#40AF52"}}):e("i",{staticClass:"el-icon-bottom",staticStyle:{color:"#FF0008"}})])],1)])])],1)],1)},i=[],r=e("ec1b"),s=e.n(r),o=e("ae0d"),l={name:"Dashboard",components:{countto:s.a},data:function(){return{SysSetting:[]}},created:function(){this.InitDictItem()},methods:{InitDictItem:function(){var t=this;Object(o["e"])().then((function(a){t.SysSetting=a.ResData}))}}},c=l,u=(e("c16a"),e("2877")),d=Object(u["a"])(c,n,i,!1,null,"29038b5a",null);a["default"]=d.exports},c16a:function(t,a,e){"use strict";e("28ba")},ec1b:function(t,a,e){!function(a,e){t.exports=e()}(0,(function(){return function(t){function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}var e={};return a.m=t,a.c=e,a.i=function(t){return t},a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},a.p="/dist/",a(a.s=2)}([function(t,a,e){var n=e(4)(e(1),e(5),null,null);t.exports=n.exports},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e(3);a.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,a,e,n){return e*(1-Math.pow(2,-10*t/n))*1024/1023+a}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var a=t-this.startTime;this.remaining=this.localDuration-a,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(a,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(a,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(a/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(a/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),a<this.localDuration?this.rAF=(0,n.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=t.toFixed(this.decimals),t+="";var a=t.split("."),e=a[0],n=a.length>1?this.decimal+a[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(e);)e=e.replace(i,"$1"+this.separator+"$2");return this.prefix+e+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);a.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=0,i="webkit moz ms o".split(" "),r=void 0,s=void 0;if("undefined"==typeof window)a.requestAnimationFrame=r=function(){},a.cancelAnimationFrame=s=function(){};else{a.requestAnimationFrame=r=window.requestAnimationFrame,a.cancelAnimationFrame=s=window.cancelAnimationFrame;for(var o=void 0,l=0;l<i.length&&(!r||!s);l++)o=i[l],a.requestAnimationFrame=r=r||window[o+"RequestAnimationFrame"],a.cancelAnimationFrame=s=s||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];r&&s||(a.requestAnimationFrame=r=function(t){var a=(new Date).getTime(),e=Math.max(0,16-(a-n)),i=window.setTimeout((function(){t(a+e)}),e);return n=a+e,i},a.cancelAnimationFrame=s=function(t){window.clearTimeout(t)})}a.requestAnimationFrame=r,a.cancelAnimationFrame=s},function(t,a){t.exports=function(t,a,e,n){var i,r=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(i=t,r=t.default);var o="function"==typeof r?r.options:r;if(a&&(o.render=a.render,o.staticRenderFns=a.staticRenderFns),e&&(o._scopeId=e),n){var l=Object.create(o.computed||null);Object.keys(n).forEach((function(t){var a=n[t];l[t]=function(){return a}})),o.computed=l}return{esModule:i,exports:r,options:o}}},function(t,a){t.exports={render:function(){var t=this,a=t.$createElement;return(t._self._c||a)("span",[t._v("\n "+t._s(t.displayValue)+"\n")])},staticRenderFns:[]}}])}))}}]);