1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/bonus/statics/statics"],{6440:function(t,e,n){"use strict";var a=n("dbba"),i=n.n(a);i.a},"7ec4":function(t,e,n){"use strict";(function(t){n("8748");a(n("66fd"));var e=a(n("cb6a"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},af4a:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("a8ff")),i=n("2f62");function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u,l=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-layout/app-layout")]).then(function(){return resolve(n("3dd6"))}.bind(null,n)).catch(n.oe)},d=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-form-id/app-form-id")]).then(function(){return resolve(n("e583"))}.bind(null,n)).catch(n.oe)},f=null,p={data:function(){return{list:[],setting:{},cWidth:"",cHeight:"",pixelRatio:1,_date:0,show:!0,all_data:[]}},components:{"app-layout":l,"app-form-id":d},computed:r({},(0,i.mapState)({theme:function(t){return t.mallConfig.theme}})),methods:{tablist:function(t){var e=this;this._date=t,this.show=!0;var n,a,i={categories:[],series:[{name:"分红金额",data:[]}]};0==t?(e.list.day_list.forEach((function(t,a){n=e.list.day_list[a].created_at,i.series[0].data.push(t.bonus_price),a%6==0?(n<10?n="0"+n+":00":n+=":00",i.categories.push(n)):i.categories.push("")})),i.categories.push("24:00"),u.showColumn("canvasColumn",i,"line")):1==t?(e.list.day_7_list.forEach((function(t,a){n=e.list.day_7_list[a].created_at.slice(5),i.series[0].data.push(t.bonus_price),i.categories.push(n)})),a=[15,15,4,-30],u.showColumn("canvasColumn",i,"column",a)):2==t&&(e.list.month_12_list.forEach((function(t,a){n=e.list.month_12_list[a].created_at.slice(5)+"月",i.series[0].data.push(t.bonus_price),i.categories.push(n)})),a=[15,15,4,-30],u.showColumn("canvasColumn",i,"column",a)),this.$forceUpdate()},touchIt:function(t){f.showToolTip(t,{format:function(t,e){return t.color="rgba(0,0,0,0)","object"===typeof t.data?e+" "+t.name+":"+t.data.value:e+" "+t.name+":"+t.data}})},getSetting:function(){var e=this;e.$request({url:e.$api.bonus.setting}).then((function(n){0==n.code?(e.setting=n.data.list,e.setting.form&&e.setting.form.orders?t.setNavigationBarTitle({title:e.setting.form.statistic_bonus}):t.setNavigationBarTitle({title:"分红统计"})):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))},getList:function(){var e=this;t.showLoading({title:"加载中..."}),e.$request({url:e.$api.bonus.data}).then((function(n){if(t.hideLoading(),0==n.code){e.list=n.data.list,e.all_data=n.data.all_data;var a,i={categories:[],series:[{name:"分红金额",data:[]}]};n.data.list.day_list.forEach((function(t,e){a=n.data.list.day_list[e].created_at,i.series[0].data.push(t.bonus_price),e%6==0?(a<10?a="0"+a+":00":a+=":00",i.categories.push(a)):i.categories.push("")})),i.categories.push("24:00"),u.showColumn("canvasColumn",i,"line")}else t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(e){t.hideLoading()}))},showColumn:function(t,e,n,i){f=new a.default({$this:u,canvasId:t,type:n||"column",legend:{show:!1},fontSize:9,background:"#FFFFFF",colors:["#ff4544"],pixelRatio:u.pixelRatio,padding:i||[15,15,4,0],categories:e.categories,series:e.series,xAxis:{disableGrid:!0},yAxis:{gridType:"dash",data:{disabled:!0}},dataLabel:!1,dataPointShape:!1,width:u.cWidth*u.pixelRatio,height:u.cHeight*u.pixelRatio,extra:{tooltip:{bgColor:"#000000",bgOpacity:.7}}})},changeData:function(){f.updateData({series:u.serverData.ColumnB.series,categories:u.serverData.ColumnB.categories})}},onLoad:function(){u=this,this.cWidth=t.upx2px(650),this.cHeight=t.upx2px(440),this.getList(),this.getSetting()}};e.default=p}).call(this,n("543d")["default"])},cb6a:function(t,e,n){"use strict";n.r(e);var a=n("d614"),i=n("dc46");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("6440");var s,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"09b5b364",null,!1,a["a"],s);e["default"]=c.exports},d614:function(t,e,n){"use strict";var a,i=function(){var t=this,e=t.$createElement;t._self._c},o=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}))},dbba:function(t,e,n){},dc46:function(t,e,n){"use strict";n.r(e);var a=n("af4a"),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}},[["7ec4","common/runtime","common/vendor"]]]);
|