(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-statistics-index"],{"136c":function(t,e,a){"use strict";var i=a("4ea4");a("4de4"),a("4160"),a("b680"),a("d3b7"),a("3ca3"),a("159b"),a("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("578a")),r=i(a("94d4")),o=a("c38c"),s=null,l=(new Date).getFullYear(),c=(new Date).getMonth()+1,d=(new Date).getDate(),h={name:"Statistics",components:{uniCalendar:r.default},props:{},data:function(){return{isShowBox:!0,value:[[l,c,d-1],[l,c,d]],isrange:!0,weekSwitch:!1,ismulti:!1,monFirst:!0,clean:!1,lunar:!1,renderValues:[],monthRange:[],current:!1,where:{start:"",stop:"",type:""},types:"",time:"",title:"",growth_rate:"",increase_time:"",increase_time_status:"",time_price:"",order_num:"",loaded:!1,loading:!1,filter:{page:1,limit:10,start:"",stop:""},list:[],cWidth:"",cHeight:"",pixelRatio:1,textarea:"",LineA:{categories:["2012","2013","2014","2015","2016","2017"],series:[{data:[35,8,25,37,4,20]}]},info:{startDate:"",endDate:"",lunar:!1,range:!0,insert:!1,selected:[],showMonth:!1}}},watch:{"$route.params":function(t){var e=this;void 0!=t&&(e.setType(t.type),e.setTime(t.time),e.getIndex())}},onLoad:function(t){this.setType(t.type),this.setTime(t.time),this.cWidth=uni.upx2px(690),this.cHeight=uni.upx2px(500),this.getInfo()},computed:{monthRangeText:function(){return this.monthRange.length?"固定":"指定范围"}},methods:{getIndex:function(){var t=[],e=[],a=this;1==a.where.type?(0,o.turnoverStatistics)(a.where).then((function(i){var n=i.data.chart,r=[],o=[];n.forEach((function(t){r.push(t.time),o.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$dialog.error(t.msg)})):(0,o.orderNumberStatistics)(a.where).then((function(i){var n=i.data.chart,r=[],o=[];n.forEach((function(t){r.push(t.time),o.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$dialog.error(t.msg)}))},setTime:function(t){this.time=t;var e=(new Date).getFullYear(),a=(new Date).getMonth()+1,i=(new Date).getDate();switch(this.list=[],this.filter.page=1,this.loaded=!1,this.loading=!1,t){case"today":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title="今日",this.getIndex(),this.getInfo();break;case"yesterday":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-86400,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-1,this.title="昨日",this.getIndex(),this.getInfo();break;case"month":this.where.start=new Date(e,(new Date).getMonth(),1).getTime()/1e3,this.where.stop=new Date(e,a,1).getTime()/1e3-1,this.title="本月",this.where.month=1,this.getIndex(),this.getInfo();break;case"seven":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-604800,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title="七日",this.getIndex(),this.getInfo();break}},setType:function(t){switch(t){case"price":this.where.type=1;break;case"order":this.where.type=2;break}},dateTitle:function(){this.isShowBox=!1,this.$refs.calendar.open(),this.time="date",this.title="自定义"},close:function(){this.current=!1,this.isShowBox=!0},getInfo:function(){var t=this;t.loading||t.loaded||(t.loading=!0,t.filter.start=t.where.start,t.filter.stop=t.where.stop,(0,o.orderPrice)(t.filter).then((function(e){t.loading=!1,t.loaded=e.data.length0&&void 0!==arguments[0]?arguments[0]:{},a=e.date,i=e.selected,r=e.startDate,o=e.endDate,s=e.range;(0,n.default)(this,t),this.date=this.getDate(a),this.selected=i||[],this.startDate=r,this.endDate=o,this.range=s,this.multipleStatus={before:"",after:"",data:[]},this.weeks={},this._getWeek(this.date.fullDate)}return(0,r.default)(t,[{key:"getDate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";t||(t=new Date),"object"!==typeof t&&(t=t.replace(/-/g,"/"));var i=new Date(t);switch(a){case"day":i.setDate(i.getDate()+e);break;case"month":31===i.getDate()?i.setDate(i.getDate()+e):i.setMonth(i.getMonth()+e);break;case"year":i.setFullYear(i.getFullYear()+e);break}var n=i.getFullYear(),r=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate();return{fullDate:n+"-"+r+"-"+o,year:n,month:r,date:o,day:i.getDay()}}},{key:"_getLastMonthDays",value:function(t,e){for(var a=[],i=t;i>0;i--){var n=new Date(e.year,e.month-1,1-i).getDate();a.push({date:n,month:e.month-1,lunar:this.getlunar(e.year,e.month-1,n),disable:!0})}return a}},{key:"_currentMonthDys",value:function(t,e){for(var a=this,i=[],n=this.date.fullDate,r=function(t){var r=e.year+"-"+(e.month,e.month+"-")+(t<10?"0"+t:t),o=n===r,s=a.selected&&a.selected.find((function(t){if(a.dateEqual(r,t.date))return t})),l=!0,c=!0;if(a.startDate){var d=a.dateCompare(a.startDate,n);l=a.dateCompare(d?a.startDate:n,r)}if(a.endDate){var h=a.dateCompare(n,a.endDate);c=a.dateCompare(r,h?a.endDate:n)}var f=a.multipleStatus.data,u=!1,p=-1;a.range&&(f&&(p=f.findIndex((function(t){return a.dateEqual(t,r)}))),-1!==p&&(u=!0));var x={fullDate:r,year:e.year,date:t,multiple:!!a.range&&u,month:e.month,lunar:a.getlunar(e.year,e.month,t),disable:!l||!c,isDay:o};s&&(x.extraInfo=s),i.push(x)},o=1;o<=t;o++)r(o);return i}},{key:"_getNextMonthDays",value:function(t,e){for(var a=[],i=1;i1?e-1:0),i=1;it.end.x||e.end.xt.start.y||e.start.y=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=o-r&&(s=r-o,t.event.trigger("scrollRight")),s}function d(t,e,a){function i(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t=e&&t<=a}function h(t,e,a){var i=t,n=a-e,r=i+(a-n-i)/Math.sqrt(2);r*=-1;var o=(a-n)*(Math.sqrt(2)-1)-(a-n-i)/Math.sqrt(2);return{transX:r,transY:o}}function f(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var n=.2,r=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*n,s=t[0].y+(t[1].y-t[0].y)*n):(o=t[e].x+(t[e+1].x-t[e-1].x)*n,s=t[e].y+(t[e+1].y-t[e-1].y)*n),e>t.length-3){var d=t.length-1;l=t[d].x-(t[d].x-t[d-1].x)*r,c=t[d].y-(t[d].y-t[d-1].y)*r}else l=t[e+1].x-(t[e+2].x-t[e].x)*r,c=t[e+1].y-(t[e+2].y-t[e].y)*r;return a(t,e+1)&&(c=t[e+1].y),a(t,e)&&(s=t[e].y),i(t,e+1)&&(l=t[e+1].x),i(t,e)&&(o=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(o>=Math.max(t[e].x,t[e+1].x)||o<=Math.min(t[e].x,t[e+1].x))&&(o=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:l,y:c}}}function u(t,e,a){return{x:a.x+t,y:a.y-e}}function p(t,e){if(e)while(r.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function x(t,e,a){var i=0;return t.map((function(t){if(t.color||(t.color=a.colors[i],i=(i+1)%a.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function b(t,e){var a=0,i=e-t;return a=i>=1e4?1e3:i>=1e3?100:i>=100?10:i>=10?5:i>=1?1:i>=.1?.1:i>=.01?.01:i>=.001?.001:i>=1e-4?1e-4:i>=1e-5?1e-5:1e-6,{minRange:s(t,"lower",a),maxRange:s(e,"upper",a)}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.fontSize;t=String(t);t=t.split("");for(var a=0,n=0;n4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){var e=[];return e=i||t.data,{text:n.format?n.format(t,e[a]):t.name+": "+t.data,color:t.color}})),o=[],s={x:0,y:0},l=0;l4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){return{text:n.format?n.format(t,i[a]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));r=r.filter((function(t){if(!0!==t.disableLegend)return t}));for(var o=[],s={x:0,y:0},l=0;lt[i-1][1]&&(l[2]=o),e.data[3]4&&void 0!==arguments[4]?arguments[4]:0,r=-1,o=a.chartData.eachSpacing/2,s=[];if(e.length>0){if("candle"==a.type)for(var l=0;le&&(r=a)}))}return r}function M(t,e,a){var i=-1;if(C(t,e.area)){for(var n=e.points,r=-1,o=0,s=n.length;od[0]&&t.xd[1]&&t.ye.start.x&&t.xe.start.y&&t.y=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function F(t,e,a){var i=2*Math.PI/a,n=-1;if(O(t,e.center,e.radius)){var r=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},o=Math.atan2(e.center.y-t.y,t.x-e.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=e.angleList.map((function(t){return t=r(-1*t),t}));s.forEach((function(t,e){var a=r(t-i/2),s=r(t+i/2);s=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(n=e)}))}return n}function R(t,e){for(var a=-1,i=0,n=e.series.length;ir.funnelArea[0]&&t.xr.funnelArea[1]&&t.yr.area[0]&&t.xr.area[1]&&t.ye.width-e.padding[1]-e.padding[3]?(h.push(p),u.push(f-e.legend.itemGap),f=v,p=[b]):(f+=v,p.push(b))}if(p.length){h.push(p),u.push(f-e.legend.itemGap),n.widthArr=u;var y=Math.max.apply(null,u);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*r;break;case"right":n.area.start.x=e.width-e.padding[1]-y-2*r,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-y)/2-r,n.area.end.x=(e.width+y)/2+r}n.area.width=y+2*r,n.area.wholeWidth=y+2*r,n.area.height=h.length*d+2*r,n.area.wholeHeight=h.length*d+2*r+2*o,n.points=h}}else{var m=t.length,w=e.height-e.padding[0]-e.padding[2]-2*o-2*r,_=Math.min(Math.floor(w/d),m);switch(n.area.height=_*d+2*r,n.area.wholeHeight=_*d+2*r,e.legend.float){case"top":n.area.start.y=e.padding[0]+o,n.area.end.y=e.padding[0]+o+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-o-n.area.height,n.area.end.y=e.height-e.padding[2]-o;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var k=m%_===0?m/_:Math.floor(m/_+1),S=[],D=0;DM&&(M=L)}n.widthArr.push(M),n.heightArr.push(P.length*d+2*r)}for(var F=0,R=0;Ri&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+o*Math.sin(n.angle)),n}function j(t,e,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,n=v(t),r=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){r.push(t)})):r.push(t[0]):r.push(t.value):r.push(t)}));var o=0,s=0;if(r.length>0&&(o=Math.min.apply(this,r),s=Math.max.apply(this,r)),i>-1?("number"===typeof e.xAxis.data[i].min&&(o=Math.min(e.xAxis.data[i].min,o)),"number"===typeof e.xAxis.data[i].max&&(s=Math.max(e.xAxis.data[i].max,s))):("number"===typeof e.xAxis.min&&(o=Math.min(e.xAxis.min,o)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),o===s){var l=s||10;s+=l}for(var c=o,d=s,h=[],f=(d-c)/e.xAxis.splitNumber,u=0;u<=e.xAxis.splitNumber;u++)h.push(c+f*u);return h}function $(t,e,a){var i={angle:0,xAxisHeight:a.xAxisHeight};i.ranges=j(t,e,a),i.rangesFormat=i.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):r.toFixed(t,2),t}));var n=i.ranges.map((function(t){return t=r.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));i=Object.assign(i,tt(n,e,a));var o=i.eachSpacing,s=n.map((function(t){return g(t)})),l=Math.max.apply(this,s);return l+2*a.xAxisTextPadding>o&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*a.xAxisTextPadding+l*Math.sin(i.angle)),!0===e.xAxis.disabled&&(i.xAxisHeight=0),i}function H(t,e,a,i,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=n.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,v(i))),l=[],c=function(n){var o=i[n],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(i,n){var o={};o.angle=t[n],o.proportion=i/s,o.position=u(a*o.proportion*r*Math.cos(o.angle),a*o.proportion*r*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},d=0;d2&&void 0!==arguments[2]?arguments[2]:1,i=0,n=0,r=0;r2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i4&&void 0!==arguments[4]?arguments[4]:1,r=0,o=0,s=[],l=0;l2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i=2&&(n._proportion_=n._proportion_%2)}return t}function q(t,e,a){for(var i=e-a+1,n=e,r=0;r=2&&(t[r]._endAngle_=t[r]._endAngle_%2),n=t[r]._endAngle_;return t}function U(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n=a.oldData?r._proportion_=(r._endAngle_-r._oldAngle_)*i+a.oldAngle:r._proportion_=r._oldAngle_-(r._oldAngle_-r._endAngle_)*i,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function J(t){t=G(t);for(var e=0,a=0;a0&&(t.width=Math.min(t.width,+r.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*t.width,t)}))}function K(t,e,a,i,n,r,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),i>0&&(t.width-=2*o),t)}))}function Q(t,e,a,i,n,r,o){return t.map((function(t,a){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),t)}))}function tt(t,e,a){var i=e.width-e.area[1]-e.area[3],n=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&n>1&&"justify"==e.xAxis.boundaryGap&&(n-=1);var r=i/n,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*r)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*r):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:r}}function et(t,e,a,i,n,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var d=[];t.forEach((function(t,l){var h={};h.x=i[o]+Math.round(n/2);var f=t.value||t,u=c*(f-e)/(a-e);u*=s,h.y=r.height-Math.round(u)-r.area[2],d.push(h)})),l.push(d)}})),l}function at(t,e,a,i,n,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=r.type&&"area"!=r.type||(l=r.xAxis.boundaryGap);var c=[],d=r.height-r.area[0]-r.area[2],h=r.width-r.area[1]-r.area[3];return t.forEach((function(t,o){if(null===t)c.push(null);else{var f={};f.color=t.color,f.x=i[o];var u,p,x,b=t;if("object"===typeof t&&null!==t)if(t.constructor==Array)u=[].concat(r.chartData.xAxisData.ranges),p=u.shift(),x=u.pop(),b=t[1],f.x=r.area[3]+h*(t[0]-p)/(x-p);else b=t.value;"center"==l&&(f.x+=Math.round(n/2));var g=d*(b-e)/(a-e);g*=s,f.y=r.height-Math.round(g)-r.area[2],c.push(f)}})),c}function it(t,e,a,i,n,r,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)d.push(null);else{var f={};if(f.color=t.color,f.x=i[o]+Math.round(n/2),s>0){for(var u=0,p=0;p<=s;p++)u+=l[p].data[o];var x=u-t,b=h*(u-e)/(a-e),g=h*(x-e)/(a-e)}else u=t,b=h*(u-e)/(a-e),g=0;var v=g;b*=c,v*=c,f.y=r.height-Math.round(b)-r.area[2],f.y0=r.height-Math.round(v)-r.area[2],d.push(f)}})),d}function nt(t,e,a,i){var n,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;n="stack"==i?y(t,e.categories.length):v(t);var o=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[1]):o.push(t.value):o.push(t)}));var s=0,l=0;if(o.length>0&&(s=Math.min.apply(this,o),l=Math.max.apply(this,o)),r>-1?("number"===typeof e.yAxis.data[r].min&&(s=Math.min(e.yAxis.data[r].min,s)),"number"===typeof e.yAxis.data[r].max&&(l=Math.max(e.yAxis.data[r].max,l))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(l=Math.max(e.yAxis.max,l))),s===l){var c=l||10;l+=c}for(var d=b(s,l),h=d.minRange,f=d.maxRange,u=[],p=(f-h)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)u.push(h+p*x);return u.reverse()}function rt(t,e,a){var i=n({},{type:""},e.extra.column),o=e.yAxis.data.length,s=new Array(o);if(o>0){for(var l=0;l=2&&(d%=2),h+=c}}function ut(t,e,a,i,n,o){var s=i.extra.radar||{};e+=n.radarLabelTextMargin,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},d=u(c.x,c.y,a),h=d.x,f=d.y;r.approximatelyEqual(c.x,0)?h-=g(i.categories[l]||"")/2:c.x<0&&(h-=g(i.categories[l]||"")),o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(s.labelColor||"#666666"),o.fillText(i.categories[l]||"",h,f+n.fontSize/2),o.closePath(),o.stroke()}))}function pt(t,e,a,i,n,o){for(var s=a.pieChartLinePadding,l=[],c=null,d=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):r.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var a=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),i=t.color,n=t._radius_;return{arc:a,text:e,color:i,radius:n,textColor:t.textColor,textSize:t.textSize}})),h=0;h=0?x+a.pieChartTextPadding:x-a.pieChartTextPadding,w=b,_=g(f.text,f.textSize||a.fontSize),k=w;c&&r.isSameXCoordinateArea(c.start,{x:m})&&(k=m>0?Math.min(w,c.start.y):x<0||w>0?Math.max(w,c.start.y):Math.min(w,c.start.y)),m<0&&(m-=_);var S={lineStart:{x:v,y:y},lineEnd:{x:x,y:b},start:{x:m,y:k},width:_,height:a.fontSize,text:f.text,color:f.color,textColor:f.textColor,textSize:f.textSize};c=p(S,c),l.push(c)}for(var D=0;Da.width&&(u=!0),b+e.y>a.height&&(e.y=a.height-b),r.beginPath(),r.setFillStyle(o(c.bgColor||i.toolTipBackground,c.bgOpacity||i.toolTipOpacity)),u?(r.moveTo(e.x,e.y+10*a.pixelRatio),r.lineTo(e.x-f,e.y+10*a.pixelRatio-5*a.pixelRatio),r.lineTo(e.x-f,e.y),r.lineTo(e.x-f-Math.round(x),e.y),r.lineTo(e.x-f-Math.round(x),e.y+b),r.lineTo(e.x-f,e.y+b),r.lineTo(e.x-f,e.y+10*a.pixelRatio+5*a.pixelRatio),r.lineTo(e.x,e.y+10*a.pixelRatio)):(r.moveTo(e.x,e.y+10*a.pixelRatio),r.lineTo(e.x+f,e.y+10*a.pixelRatio-5*a.pixelRatio),r.lineTo(e.x+f,e.y),r.lineTo(e.x+f+Math.round(x),e.y),r.lineTo(e.x+f+Math.round(x),e.y+b),r.lineTo(e.x+f,e.y+b),r.lineTo(e.x+f,e.y+10*a.pixelRatio+5*a.pixelRatio),r.lineTo(e.x,e.y+10*a.pixelRatio)),r.closePath(),r.fill(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var n=e.x+f+2*i.toolTipPadding,o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;u&&(n=e.x-x-f+2*i.toolTipPadding),r.fillRect(n,o,d,i.fontSize),r.closePath()}})),t.forEach((function(t,a){var n=e.x+f+2*i.toolTipPadding+d+h;u&&(n=e.x-x-f+2*i.toolTipPadding+ +d+h);var o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(c.fontColor),r.fillText(t.text,n,o+i.fontSize),r.closePath(),r.stroke()})))}function mt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=n({},{type:"group",width:l/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),d=[];i.save();var h=-2,f=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=Math.floor(-e._scrollDistance_/l)-2,f=h+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&vt(e.tooltip.offset.x,e,a,i,l),t.forEach((function(n,o){var u,p,x;u=[].concat(e.chartData.yAxisData.ranges[n.index]),p=u.pop(),x=u.shift();var b=n.data;switch(c.type){case"group":var g=at(b,p,x,s,l,e,a,r),v=it(b,p,x,s,l,e,a,o,t,r);d.push(v),g=V(g,l,t.length,o,a,e);for(var y=0;yh&&yh&&k0&&(_-=D),i.moveTo(w,S.y),i.fillRect(w,S.y,S.width-2,_),i.closePath(),i.fill()}}break;case"meter":g=at(b,p,x,s,l,e,a,r);if(d.push(g),g=K(g,l,t.length,o,a,e,c.meter.border),0==o)for(var A=0;Ah&&A0&&(i.beginPath(),i.setStrokeStyle(n.color),i.setLineWidth(c.meter.border*e.pixelRatio),i.moveTo(w+.5*c.meter.border,T.y+_),i.lineTo(w+.5*c.meter.border,T.y+.5*c.meter.border),i.lineTo(w+T.width-.5*c.meter.border,T.y+.5*c.meter.border),i.lineTo(w+T.width-.5*c.meter.border,T.y+_),i.stroke())}}else for(var P=0;Ph&&P5&&void 0!==arguments[5]?arguments[5]:1,s=n({},{color:{},average:{}},a.extra.candle);s.color=n({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=n({},{show:!1,name:[],day:[],color:i.colors},s.average),a.extra.candle=s;var l=a.chartData.xAxisData,c=l.xAxisPoints,d=l.eachSpacing,h=[];r.save();var u=-2,p=c.length+2,x=0,b=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),u=Math.floor(-a._scrollDistance_/d)-2,p=u+a.xAxis.itemCount+4,x=-a._scrollDistance_-d+a.area[3],b=x+(a.xAxis.itemCount+4)*d),s.average.show&&e.forEach((function(t,e){var n,s,l;n=[].concat(a.chartData.yAxisData.ranges[t.index]),s=n.pop(),l=n.shift();for(var h=t.data,u=at(h,s,l,c,d,a,i,o),p=W(u),g=0;gx&&(r.moveTo(w.x,w.y),y=1),m>0&&w.x>x&&w.xu&&v0?(r.setStrokeStyle(s.color.upLine),r.setFillStyle(s.color.upFill),r.setLineWidth(1*a.pixelRatio),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(s.color.downLine),r.setFillStyle(s.color.downFill),r.setLineWidth(1*a.pixelRatio),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:c,calPoints:h,eachSpacing:d}}function _t(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),l=e.chartData.xAxisData,c=l.xAxisPoints,d=l.eachSpacing,h=e.height-e.area[2],u=[];i.save();var p=0,x=e.width+d;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-d+e.area[3],x=p+(e.xAxis.itemCount+4)*d),t.forEach((function(t,n){var l,b,g;l=[].concat(e.chartData.yAxisData.ranges[t.index]),b=l.pop(),g=l.shift();var v=t.data,y=at(v,b,g,c,d,e,a,r);u.push(y);for(var m=W(y),w=0;w1){var S=_[0],D=_[_.length-1];i.moveTo(S.x,S.y);var A=0;if("curve"===s.type)for(var T=0;T<_.length;T++){var P=_[T];if(0==A&&P.x>p&&(i.moveTo(P.x,P.y),A=1),T>0&&P.x>p&&P.xp&&(i.moveTo(L.x,L.y),A=1),C>0&&L.x>p&&L.xp&&(i.moveTo(E.x,E.y),I=1),z>0&&E.x>p&&E.xp&&(i.moveTo(N.x,N.y),I=1),B>0&&N.x>p&&N.x4&&void 0!==arguments[4]?arguments[4]:1,o=n({},{type:"straight",width:2},e.extra.line);o.width*=e.pixelRatio;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,d=[];i.save();var h=0,u=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-c+e.area[3],u=h+(e.xAxis.itemCount+4)*c),t.forEach((function(t,n){var s,p,x;s=[].concat(e.chartData.yAxisData.ranges[t.index]),p=s.pop(),x=s.shift();var b=t.data,g=at(b,p,x,l,c,e,a,r);d.push(g);var v=W(g);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pixelRatio,i.setLineDash([y,y])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(o.width),v.forEach((function(t,e){if(1===t.length)i.moveTo(t[0].x,t[0].y),i.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{i.moveTo(t[0].x,t[0].y);var a=0;if("curve"===o.type)for(var n=0;nh&&(i.moveTo(r.x,r.y),a=1),n>0&&r.x>h&&r.xh&&(i.moveTo(c.x,c.y),a=1),l>0&&c.x>h&&c.x4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,s=r.xAxisPoints,l=r.eachSpacing,c=e.height-e.area[2],d=[],h=0,u=0;t.forEach((function(t,e){"column"==t.type&&(u+=1)})),i.save();var p=-2,x=s.length+2,b=0,g=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/l)-2,x=p+e.xAxis.itemCount+4,b=-e._scrollDistance_-l+e.area[3],g=b+(e.xAxis.itemCount+4)*l),t.forEach((function(t,r){var v,y,m;v=[].concat(e.chartData.yAxisData.ranges[t.index]),y=v.pop(),m=v.shift();var w=t.data,_=at(w,y,m,s,l,e,a,n);if(d.push(_),"column"==t.type){_=V(_,l,u,h,a,e);for(var k=0;k<_.length;k++){var S=_[k];if(null!==S&&k>p&&k1){var M=P[0],C=P[P.length-1];i.moveTo(M.x,M.y);var L=0;if("curve"===t.style)for(var F=0;Fb&&(i.moveTo(R.x,R.y),L=1),F>0&&R.x>b&&R.xb&&(i.moveTo(E.x,E.y),L=1),z>0&&E.x>b&&E.xb&&(i.moveTo(l.x,l.y),o=1),s>0&&l.x>b&&l.xb&&(i.moveTo(h.x,h.y),o=1),d>0&&h.x>b&&h.x0&&(i.beginPath(),i.moveTo(t-l/2,d),i.lineTo(t-l/2,d+3*e.pixelRatio),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,r.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,d),i.lineTo(t,f),i.stroke())})),i.setLineDash([])),!0!==e.xAxis.disabled){var y=t.length;e.xAxis.labelCount&&(y=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,y-=1);for(var m=Math.ceil(t.length/y),w=[],_=t.length,k=0;k<_;k++)k%m!==0?w.push(""):w.push(t[k]);w[_-1]=t[_-1];var S=e.xAxis.fontSize||a.fontSize;0===a._xAxisTextAngle_?w.forEach((function(t,n){var o=-g(String(t),S)/2;"center"==c&&(o+=l/2);var s=0;e.xAxis.scrollShow&&(s=6*e.pixelRatio),i.beginPath(),i.setFontSize(S),i.setFillStyle(e.xAxis.fontColor||"#666666"),i.fillText(String(t),r[n]+o,d+S+(a.xAxisHeight-s-S)/2),i.closePath(),i.stroke()})):w.forEach((function(t,n){i.save(),i.beginPath(),i.setFontSize(S),i.setFillStyle(e.xAxis.fontColor||"#666666");var o=g(String(t),S),s=-o;"center"==c&&(s+=l/2);var f=h(r[n]+l/2,d+S/2+5,e.height),u=f.transX,p=f.transY;i.rotate(-1*a._xAxisTextAngle_),i.translate(u,p),i.fillText(String(t),r[n]+s,d+S+5),i.closePath(),i.stroke(),i.restore()}))}i.restore(),e.xAxis.axisLine&&(i.beginPath(),i.setStrokeStyle(e.xAxis.axisLineColor),i.setLineWidth(1*e.pixelRatio),i.moveTo(o,e.height-e.area[2]),i.lineTo(s,e.height-e.area[2]),i.stroke())}function Tt(t,e,a,i){if(!0!==e.yAxis.disableGrid){for(var n=e.height-e.area[0]-e.area[2],r=n/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),d=o+c,h=[],f=0;f4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=s.activeRadius);var c=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);t=G(t,c,r);var d=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(o(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_+d,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),"ring"===e.type){var h=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(h=Math.max(0,c-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(l.x,l.y),i.arc(l.x,l.y,h,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===r){for(var f=!1,u=0,p=t.length;u0){f=!0;break}f&&pt(t,e,a,i,c,l)}return 1===r&&"ring"===e.type&&dt(e,a,i,l),{center:l,radius:c,series:t}}function Lt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=s.activeRadius);var l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),d=s.minRadius||.5*c;t=X(t,s.type,d,c,r);var h=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(o(t.color,s.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,h+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),!1!==e.dataLabel&&1===r){for(var f=!1,u=0,p=t.length;u0){f=!0;break}f&&pt(t,e,a,i,c,l)}return{center:l,radius:c,series:t}}function Ft(t,e,a,i){var r,o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=n({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=Z(t,l,s),r=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?o=l.radius:(o=Math.min(r.x,r.y),o-=5*e.pixelRatio,o-=l.width/2);for(var c=0;c5&&void 0!==arguments[5]?arguments[5]:1,l=n({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=q(t,l.startAngle,l.endAngle);var c={x:a.width/2,y:a.height/2},d=Math.min(c.x,c.y);d-=5*a.pixelRatio,d-=l.width/2;var h=d-l.width,f=0;if("progress"==l.type){var u=d-3*l.width;r.beginPath();var p=r.createLinearGradient(c.x,c.y-u,c.x,c.y+u);p.addColorStop("0",o(e[0].color,.3)),p.addColorStop("1.0",o("#FFFFFF",.1)),r.setFillStyle(p),r.arc(c.x,c.y,u,0,2*Math.PI,!1),r.fill(),r.setLineWidth(l.width),r.setStrokeStyle(o(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(c.x,c.y,h,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),r.stroke(),f=l.startAngle-l.endAngle+1;l.splitLine.splitNumber;var x=f/l.splitLine.splitNumber/l.splitLine.childNumber,b=-d-.5*l.width-l.splitLine.fixRadius,g=-d-l.width-l.splitLine.fixRadius+l.splitLine.width;r.save(),r.translate(c.x,c.y),r.rotate((l.startAngle-1)*Math.PI);for(var v=l.splitLine.splitNumber*l.splitLine.childNumber+1,y=e[0].data*s,m=0;mm/v?r.setStrokeStyle(o(e[0].color,1)):r.setStrokeStyle(o(e[0].color,.3)),r.setLineWidth(3*a.pixelRatio),r.moveTo(b,0),r.lineTo(g,0),r.stroke(),r.rotate(x*Math.PI);r.restore(),e=Z(e,l,s),r.setLineWidth(l.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(c.x,c.y,h,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=d-2.5*l.width;r.save(),r.translate(c.x,c.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(l.width/3);var _=r.createLinearGradient(0,.6*-w,0,.6*w);_.addColorStop("0",o("#FFFFFF",0)),_.addColorStop("0.5",o(e[0].color,1)),_.addColorStop("1.0",o("#FFFFFF",0)),r.setStrokeStyle(_),r.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),r.stroke(),r.beginPath(),r.setLineWidth(1),r.setStrokeStyle(e[0].color),r.setFillStyle(e[0].color),r.moveTo(-w-l.width/3/2,-4),r.lineTo(-w-l.width/3/2-4,0),r.lineTo(-w-l.width/3/2,4),r.lineTo(-w-l.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(l.width),r.setLineCap("butt");for(var k=0;k4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),l=k(e.categories.length),c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},d=Math.min(c.x-(_(e.categories)+a.radarLabelTextMargin),c.y-a.radarLabelTextMargin);d-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(t){var e=u(d*Math.cos(t),d*Math.sin(t),c);i.moveTo(c.x,c.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var h=function(t){var a={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(e,n){var r=u(d/s.gridCount*t*Math.cos(e),d/s.gridCount*t*Math.sin(e),c);0===n?(a=r,i.moveTo(r.x,r.y)):i.lineTo(r.x,r.y)})),i.lineTo(a.x,a.y),i.stroke(),i.closePath()},f=1;f<=s.gridCount;f++)h(f);var p=H(l,c,d,t,e,r);return p.forEach((function(t,a){if(i.beginPath(),i.setFillStyle(o(t.color,s.opacity)),t.data.forEach((function(t,e){0===e?i.moveTo(t.position.x,t.position.y):i.lineTo(t.position.x,t.position.y)})),i.closePath(),i.fill(),!1!==e.dataPointShape){var n=t.data.map((function(t){return t.position}));ct(n,t.color,t.pointShape,i,e)}})),ut(l,d,c,e,a,i),{center:c,radius:d,angleList:l}}function zt(t,e,a){a=0==a?1:a;for(var i=[],n=0;ne[r].area[2]||t[1]>e[r].area[3]||t[2]a||t[3]>i){n=!0;break}n=!1}return n}function Ot(t){var e,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var i=0;ic.x?a.xMax:c.x,a.yMin=a.yMinc.y?a.yMax:c.y}}return a}function Wt(t,e,a,i,n,r){return{x:(e-a.xMin)*i+n,y:(a.yMax-t)*i+r}}function Bt(t,e,a,i,n,r){return{x:(e-n)/i+a.xMin,y:a.yMax-(t-r)/i}}function Nt(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0].7},u=0;u4&&void 0!==arguments[4]?arguments[4]:1;n({},{type:"normal",autoColors:!0},e.extra.word);i.beginPath(),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill(),i.save();var o=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var s=0;s0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(o[s].areav[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r):i.fillText(l,(o[s].areav[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r)):o[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(o[s].area[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r):i.fillText(l,(o[s].area[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r)),i.stroke(),i.restore()}i.restore()}function Yt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),l=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},d=s.activeWidth,h=Math.min((e.width-e.area[1]-e.area[3])/2-d,(e.height-e.area[0]-e.area[2])/2-d);t=Y(t,h,r),i.save(),i.translate(c.x,c.y);for(var f=0;f0?v[k].width+e.yAxis.padding:v[k].width,_+=1):(e.area[1]+=w>0?v[k].width+e.yAxis.padding:v[k].width,w+=1)}else a.yAxisWidth=v;if(e.chartData.yAxisData=g,e.categories&&e.categories.length){e.chartData.xAxisData=tt(e.categories,e,a);var S=N(e.categories,e,a,e.chartData.xAxisData.eachSpacing),D=S.xAxisHeight,A=S.angle;a.xAxisHeight=D,a._xAxisTextAngle_=A,e.area[2]+=D,e.chartData.categoriesData=S}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=$(o,e,a),s=e.chartData.xAxisData.rangesFormat;var P=N(s,e,a,e.chartData.xAxisData.eachSpacing),M=P.xAxisHeight,C=P.angle;a.xAxisHeight=M,a._xAxisTextAngle_=C,e.area[2]+=M,e.chartData.categoriesData=P}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var L=0,F=e.chartData.xAxisData.xAxisPoints,R=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,z=e.chartData.xAxisData.eachSpacing,E=z*(F.length-1),O=I-R;L=O-E,r.scrollOption={currentOffset:L,startTouchX:L,distance:0,lastMoveTime:0},e._scrollDistance_=L}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:J(d)),t){case"word":var W=n({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=Ht(e,W.type)),this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),Gt(o,e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),$t(o,e,a,i);break;case"funnel":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),e.chartData.funnelData=Yt(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=kt(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=St(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=mt(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=_t(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),e.chartData.pieData=Ct(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),e.chartData.pieData=Lt(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),e.chartData.radarData=It(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),e.chartData.arcbarData=Ft(o,e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),e.chartData.gaugeData=Rt(s,o,e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&<(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=wt(o,d,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(d||e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break}}function Vt(){this.events={}}Ut.prototype.stop=function(){this.isStop=!0},Vt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Vt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.opts=n({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=rt(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var r=0,o=tt(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,d=o.eachSpacing,h=d*(s.length-1),f=c-l;r=f-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}Jt.call(this,this.opts.type,this.opts,this.config,this.context)},Kt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var e=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=rt(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var n=0,r=tt(this.opts.categories,this.opts,this.config),o=r.xAxisPoints,s=r.startX,l=r.endX,c=r.eachSpacing,d=c*e,h=l-s,f=h-c*(o.length-1);n=h/2-d,n>0&&(n=0),n1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){m(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&(this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Jt.call(this,this.opts.type,this.opts,this.config,this.context))}},Kt.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=m(a,this.opts,t),r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){var l=w(this.opts.series,s);if(0!==l.length){var c=S(l,this.opts.chartData.calPoints,s,this.opts.categories,e),d=c.textList,h=c.offset;h.y=i.y,o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}if("mix"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=w(this.opts.series,s);if(0!==l.length){var f=D(l,this.opts.chartData.calPoints,s,this.opts.categories,e);d=f.textList,h=f.offset;h.y=i.y,o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}if("candle"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=w(this.opts.series,s);if(0!==l.length){c=A(this.opts.series[0].data,l,this.opts.chartData.calPoints,s,this.opts.categories,this.opts.extra.candle,e),d=c.textList,h=c.offset;h.y=i.y,o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=this.opts._series_[s],d=[{text:e.format?e.format(l):l.name+": "+l.data,color:l.color}],h={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}Jt.call(this,o.type,o,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=this.opts._series_[s],d=[{text:e.format?e.format(l):l.properties.name,color:l.color}],h={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}o.updateData=!1,Jt.call(this,o.type,o,this.config,this.context)}if("radar"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=w(this.opts.series,s);if(0!==l.length){d=l.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),h={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}},Kt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=n({},this.opts,{_scrollDistance_:t,animation:!1});Jt.call(this,this.opts.type,e,this.config,this.context)},Kt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=m(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},Kt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(ia[data-v-46ad4676]{color:#e93323}.yd-confirm-ft>a.primary[data-v-46ad4676]{border-left:%?1?% solid #eee;color:#e93323}.echarts[data-v-46ad4676]{width:100%;height:%?550?%}.calendar-wrapper[data-v-46ad4676]{position:fixed;bottom:0;left:0;width:100%;z-index:777;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);-webkit-transition:all .3s cubic-bezier(.25,.5,.5,.9);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.calendar-wrapper.on[data-v-46ad4676]{-webkit-transform:translateZ(0);transform:translateZ(0)}.statistical-page .wrapper .increase[data-v-46ad4676]{font-size:%?26?%}.statistical-page .wrapper .increase .iconfont[data-v-46ad4676]{margin-left:0}.public-wrapper .title[data-v-46ad4676]{font-size:%?30?%;color:#282828;padding:0 %?30?%;margin-bottom:%?20?%}.public-wrapper .title .iconfont[data-v-46ad4676]{color:#2291f8;font-size:%?40?%;margin-right:%?13?%;vertical-align:middle}.public-wrapper[data-v-46ad4676]{margin:%?18?% auto 0 auto;width:%?690?%;background-color:#fff;-webkit-border-radius:%?10?%;border-radius:%?10?%;padding-top:%?25?%}.public-wrapper .nav[data-v-46ad4676]{padding:0 %?30?%;height:%?70?%;line-height:%?70?%;font-size:%?24?%;color:#999}.public-wrapper .data[data-v-46ad4676]{width:%?210?%;text-align:left}.public-wrapper .browse[data-v-46ad4676]{width:%?192?%;text-align:right}.public-wrapper .turnover[data-v-46ad4676]{width:%?227?%;text-align:right}.public-wrapper .conter[data-v-46ad4676]{padding:0 %?30?%}.public-wrapper .conter .item[data-v-46ad4676]{border-bottom:1px solid #f7f7f7;height:%?70?%;font-size:%?24?%}.public-wrapper .conter .item .turnover[data-v-46ad4676]{color:#d84242}",""]),t.exports=e},af44:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-calendar",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.clean.apply(void 0,arguments)}}},[!t.insert&&t.show?a("v-uni-view",{staticClass:"uni-calendar__mask",class:{"uni-calendar--mask-show":t.aniMaskShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clean.apply(void 0,arguments)}}}):t._e(),t.insert||t.show?a("v-uni-view",{staticClass:"uni-calendar__content",class:{"uni-calendar--fixed":!t.insert,"uni-calendar--ani-show":t.aniMaskShow}},[t.insert?t._e():a("v-uni-view",{staticClass:"uni-calendar__header uni-calendar--fixed-top"},[a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-calendar__header-text uni-calendar--fixed-width"},[t._v("取消")])],1),a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-calendar__header-text uni-calendar--fixed-width"},[t._v("确定")])],1)],1),a("v-uni-view",{staticClass:"uni-calendar__header"},[a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.pre.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--left"})],1),a("v-uni-text",{staticClass:"uni-calendar__header-text"},[t._v(t._s((t.nowDate.year||"")+"年"+(t.nowDate.month||"")+"月"))]),a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.next.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--right"})],1),a("v-uni-text",{staticClass:"uni-calendar__backtoday",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.backtoday.apply(void 0,arguments)}}},[t._v("回到今天")])],1),a("v-uni-view",{staticClass:"uni-calendar__box"},[t.showMonth?a("v-uni-view",{staticClass:"uni-calendar__box-bg"},[a("v-uni-text",{staticClass:"uni-calendar__box-bg-text"},[t._v(t._s(t.nowDate.month))])],1):t._e(),a("v-uni-view",{staticClass:"uni-calendar__weeks"},[a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("日")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("一")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("二")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("三")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("四")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("五")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("六")])],1)],1),t._l(t.weeks,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-calendar__weeks"},t._l(e,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-calendar__weeks-item"},[a("uni-calendar-item",{attrs:{weeks:e,calendar:t.calendar,selected:t.selected,lunar:t.lunar},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.choiceDate.apply(void 0,arguments)}}})],1)})),1)}))],2)],1):t._e()],1)},r=[]},b71f:function(t,e,a){"use strict";a.r(e);var i=a("fe6e"),n=a("d75a");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("251b");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"46ad4676",null,!1,i["a"],o);e["default"]=l.exports},c38c:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getStatisticsInfo=r,e.getStatisticsMonth=o,e.getAdminOrderList=s,e.setAdminOrderPrice=l,e.setAdminOrderRemark=c,e.getAdminOrderDetail=d,e.getAdminOrderDelivery=h,e.setAdminOrderDelivery=f,e.getStatisticsTime=u,e.setOfflinePay=p,e.setOrderRefund=x,e.getLogistics=b,e.orderVerific=g,e.verifierOrder=v,e.orderStatistics=y,e.orderPrice=m,e.getOrderList=w,e.turnoverStatistics=_,e.orderNumberStatistics=k;var n=i(a("112d"));function r(){return n.default.get("admin/order/statistics",{},{login:!0})}function o(t){return n.default.get("admin/order/data",t,{login:!0})}function s(t){return n.default.get("admin/order/list",t,{login:!0})}function l(t,e){return n.default.post("admin/price/"+t,e,{login:!0})}function c(t,e){return n.default.post("admin/mark/"+t,e,{login:!0})}function d(t){return n.default.get("admin/order/"+t,{},{login:!0})}function h(t){return n.default.get("admin/order/delivery/gain/"+t,{},{login:!0})}function f(t,e){return n.default.post("admin/delivery/"+t,e,{login:!0})}function u(t){return n.default.get("admin/order/time",t,{login:!0})}function p(t){return n.default.post("admin/order/offline",t,{login:!0})}function x(t){return n.default.post("admin/order/refund",t,{login:!0})}function b(){return n.default.get("logistics",{},{login:!1})}function g(t){return n.default.post("verifier/"+t)}function v(t){return n.default.get("verifier/order/"+t)}function y(){return n.default.get("admin/statistics")}function m(t){return n.default.get("admin/order_price",t,{login:!0})}function w(t){return n.default.get("admin/order_list",t,{login:!0})}function _(t){return n.default.get("admin/pay_price",t,{login:!0})}function k(t){return n.default.get("admin/pay_number",t,{login:!0})}},cb29:function(t,e,a){var i=a("23e7"),n=a("81d5"),r=a("44d2");i({target:"Array",proto:!0},{fill:n}),r("fill")},d6f9:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-calendar[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.uni-calendar__mask[data-v-70ae6a96]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-duration:.3s;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-70ae6a96]{opacity:1}.uni-calendar--fixed[data-v-70ae6a96]{position:fixed;bottom:0;left:0;right:0;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:translateY(460px);transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-70ae6a96]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-calendar__content[data-v-70ae6a96]{background-color:#fff}.uni-calendar__header[data-v-70ae6a96]{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:50px;border-bottom-color:#c8c7cc;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar--fixed-top[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-top-color:#c8c7cc;border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-70ae6a96]{width:50px}.uni-calendar__backtoday[data-v-70ae6a96]{position:absolute;right:0;top:%?25?%;padding:0 5px;padding-left:10px;height:25px;line-height:25px;font-size:12px;-webkit-border-top-left-radius:25px;border-top-left-radius:25px;-webkit-border-bottom-left-radius:25px;border-bottom-left-radius:25px;color:#333;background-color:#f1f1f1}.uni-calendar__header-text[data-v-70ae6a96]{text-align:center;width:100px;font-size:%?28?%;color:#333}.uni-calendar__header-btn-box[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-70ae6a96]{width:10px;height:10px;border-left-color:grey;border-left-style:solid;border-left-width:2px;border-top-color:#555;border-top-style:solid;border-top-width:2px}.uni-calendar--left[data-v-70ae6a96]{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-calendar--right[data-v-70ae6a96]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.uni-calendar__weeks[data-v-70ae6a96]{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.uni-calendar__weeks-item[data-v-70ae6a96]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.uni-calendar__weeks-day[data-v-70ae6a96]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:45px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-70ae6a96]{font-size:14px}.uni-calendar__box[data-v-70ae6a96]{position:relative}.uni-calendar__box-bg[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-70ae6a96]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}',""]),t.exports=e},d75a:function(t,e,a){"use strict";a.r(e);var i=a("136c"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},ece9:function(t,e,a){"use strict";a.r(e);var i=a("4458"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},fb64:function(t,e,a){"use strict";a("d3b7"),a("e25e"),a("25f0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(t){var e,a=348;for(e=32768;e>8;e>>=1)a+=this.lunarInfo[t-1900]&e?1:0;return a+this.leapDays(t)},leapMonth:function(t){return 15&this.lunarInfo[t-1900]},leapDays:function(t){return this.leapMonth(t)?65536&this.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:this.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var a=e-1;return 1==a?t%4==0&&t%100!=0||t%400==0?29:28:this.solarMonth[a]},toGanZhiYear:function(t){var e=(t-3)%10,a=(t-3)%12;return 0==e&&(e=10),0==a&&(a=12),this.Gan[e-1]+this.Zhi[a-1]},toAstro:function(t,e){var a="魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯",i=[20,19,21,21,21,22,23,23,23,23,22,22];return a.substr(2*t-(e2100)return-1;if(e<1||e>24)return-1;var a=this.sTermInfo[t-1900],i=[parseInt("0x"+a.substr(0,5)).toString(),parseInt("0x"+a.substr(5,5)).toString(),parseInt("0x"+a.substr(10,5)).toString(),parseInt("0x"+a.substr(15,5)).toString(),parseInt("0x"+a.substr(20,5)).toString(),parseInt("0x"+a.substr(25,5)).toString()],n=[i[0].substr(0,1),i[0].substr(1,2),i[0].substr(3,1),i[0].substr(4,2),i[1].substr(0,1),i[1].substr(1,2),i[1].substr(3,1),i[1].substr(4,2),i[2].substr(0,1),i[2].substr(1,2),i[2].substr(3,1),i[2].substr(4,2),i[3].substr(0,1),i[3].substr(1,2),i[3].substr(3,1),i[3].substr(4,2),i[4].substr(0,1),i[4].substr(1,2),i[4].substr(3,1),i[4].substr(4,2),i[5].substr(0,1),i[5].substr(1,2),i[5].substr(3,1),i[5].substr(4,2)];return parseInt(n[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=this.nStr3[t-1];return e+="月",e},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=this.nStr2[Math.floor(t/10)],e+=this.nStr1[t%10]}return e},getAnimal:function(t){return this.Animals[(t-4)%12]},solar2lunar:function(t,e,a){if(t<1900||t>2100)return-1;if(1900==t&&1==e&&a<31)return-1;if(t)i=new Date(t,parseInt(e)-1,a);else var i=new Date;var n,r=0,o=0,s=(t=i.getFullYear(),e=i.getMonth()+1,a=i.getDate(),(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(1900,0,31))/864e5);for(n=1900;n<2101&&s>0;n++)o=this.lYearDays(n),s-=o;s<0&&(s+=o,n--);var l=new Date,c=!1;l.getFullYear()==t&&l.getMonth()+1==e&&l.getDate()==a&&(c=!0);var d=i.getDay(),h=this.nStr1[d];0==d&&(d=7);var f=n,u=(r=this.leapMonth(n),!1);for(n=1;n<13&&s>0;n++)r>0&&n==r+1&&0==u?(--n,u=!0,o=this.leapDays(f)):o=this.monthDays(f,n),1==u&&n==r+1&&(u=!1),s-=o;0==s&&r>0&&n==r+1&&(u?u=!1:(u=!0,--n)),s<0&&(s+=o,--n);var p=n,x=s+1,b=e-1,g=this.toGanZhiYear(f),v=this.getTerm(t,2*e-1),y=this.getTerm(t,2*e),m=this.toGanZhi(12*(t-1900)+e+11);a>=v&&(m=this.toGanZhi(12*(t-1900)+e+12));var w=!1,_=null;v==a&&(w=!0,_=this.solarTerm[2*e-2]),y==a&&(w=!0,_=this.solarTerm[2*e-1]);var k=Date.UTC(t,b,1,0,0,0,0)/864e5+25567+10,S=this.toGanZhi(k+a-1),D=this.toAstro(e,a);return{lYear:f,lMonth:p,lDay:x,Animal:this.getAnimal(f),IMonthCn:(u?"闰":"")+this.toChinaMonth(p),IDayCn:this.toChinaDay(x),cYear:t,cMonth:e,cDay:a,gzYear:g,gzMonth:m,gzDay:S,isToday:c,isLeap:u,nWeek:d,ncWeek:"星期"+h,isTerm:w,Term:_,astro:D}},lunar2solar:function(t,e,a,i){i=!!i;var n=this.leapMonth(t);this.leapDays(t);if(i&&n!=e)return-1;if(2100==t&&12==e&&a>1||1900==t&&1==e&&a<31)return-1;var r=this.monthDays(t,e),o=r;if(i&&(o=this.leapDays(t,e)),t<1900||t>2100||a>o)return-1;for(var s=0,l=1900;l0&&(s+=this.leapDays(t),d=!0),s+=this.monthDays(t,l);i&&(s+=r);var h=Date.UTC(1900,1,30,0,0,0),f=new Date(864e5*(s+a-31)+h),u=f.getUTCFullYear(),p=f.getUTCMonth()+1,x=f.getUTCDate();return this.solar2lunar(u,p,x)}},n=i;e.default=n},fe6e:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uniCalendar:a("94d4").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"container",staticClass:"statistical-page"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isShowBox,expression:"isShowBox"}]},[a("div",{staticClass:"navs"},[a("div",{staticClass:"list"},[a("div",{staticClass:"item",class:"today"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("today")}}},[t._v("今天")]),a("div",{staticClass:"item",class:"yesterday"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("yesterday")}}},[t._v("昨天")]),a("div",{staticClass:"item",class:"seven"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("seven")}}},[t._v("最近7天")]),a("div",{staticClass:"item",class:"month"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("month")}}},[t._v("本月")]),a("div",{staticClass:"item",class:"date"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTitle.apply(void 0,arguments)}}},[t._v("自定义")])])]),a("div",{staticClass:"wrapper"},[a("div",{staticClass:"title"},[t._v(t._s(t.title)+t._s(1==t.where.type?"营业额(元)":"订单量(份)"))]),(t.where.type,a("div",{staticClass:"money"},[t._v(t._s(t.time_price))])),a("div",{staticClass:"increase acea-row row-between-wrapper"},[a("div",[t._v(t._s(t.title)+"增长率:"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.growth_rate)+"%"),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])]),a("div",[t._v(t._s(t.title)+"增长:"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.increase_time)),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])])])]),a("div",{staticClass:"chart"},[a("div",{staticClass:"chart-title"},[t._v("单位("+t._s(1==t.where.type?"元":"份")+")")]),a("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasLineA",id:"canvasLineA","disable-scroll":"true"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchLineA.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.moveLineA.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEndLineA.apply(void 0,arguments)}}})],1),a("div",{staticClass:"public-wrapper"},[a("div",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-xiangxishuju"}),t._v("详细数据")]),a("div",{staticClass:"nav acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v("日期")]),a("div",{staticClass:"browse"},[t._v("订单量")]),a("div",{staticClass:"turnover"},[t._v("成交额")])]),a("div",{staticClass:"conter"},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"item acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v(t._s(e.day))]),a("div",{staticClass:"browse"},[t._v(t._s(e.total))]),a("div",{staticClass:"turnover"},[t._v(t._s(e.pay_price))])])})),0)])]),a("uni-calendar",{ref:"calendar",attrs:{date:t.info.date,insert:t.info.insert,lunar:t.info.lunar,startDate:t.info.startDate,endDate:t.info.endDate,range:t.info.range,showMonth:t.info.showMonth},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}),a("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.current,expression:"current === true"}],staticClass:"mask",on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},r=[]},feb3:function(t,e,a){var i=a("ae04");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("3fc9207e",i,!0,{sourceMap:!1,shadowMode:!1})},feb8:function(t,e,a){var i=a("d6f9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("52afcd14",i,!0,{sourceMap:!1,shadowMode:!1})}}]);