1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01bfc955"],{a00a:function(t,e,a){"use strict";a.r(e),a.d(e,"version",(function(){return d}));var n,i=a("313e");function r(t,e){this._bmap=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=e,this._projection=new BMap.MercatorProjection}function o(t,e){return e=e||[0,0],i["util"].map([0,1],(function(a){var n=e[a],i=t[a]/2,r=[],o=[];return r[a]=n-i,o[a]=n+i,r[1-a]=o[1-a]=e[1-a],Math.abs(this.dataToPoint(r)[a]-this.dataToPoint(o)[a])}),this)}function s(){function t(t){this._root=t}return t.prototype=new BMap.Overlay,t.prototype.initialize=function(t){return t.getPanes().labelPane.appendChild(this._root),this._root},t.prototype.draw=function(){},t}r.prototype.type="bmap",r.prototype.dimensions=["lng","lat"],r.prototype.setZoom=function(t){this._zoom=t},r.prototype.setCenter=function(t){this._center=this._projection.lngLatToPoint(new BMap.Point(t[0],t[1]))},r.prototype.setMapOffset=function(t){this._mapOffset=t},r.prototype.getBMap=function(){return this._bmap},r.prototype.dataToPoint=function(t){var e=new BMap.Point(t[0],t[1]),a=this._bmap.pointToOverlayPixel(e),n=this._mapOffset;return[a.x-n[0],a.y-n[1]]},r.prototype.pointToData=function(t){var e=this._mapOffset;return t=this._bmap.overlayPixelToPoint({x:t[0]+e[0],y:t[1]+e[1]}),[t.lng,t.lat]},r.prototype.getViewRect=function(){var t=this._api;return new i["graphic"].BoundingRect(0,0,t.getWidth(),t.getHeight())},r.prototype.getRoamTransform=function(){return i["matrix"].create()},r.prototype.prepareCustoms=function(){var t=this.getViewRect();return{coordSys:{type:"bmap",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:i["util"].bind(this.dataToPoint,this),size:i["util"].bind(o,this)}}},r.prototype.convertToPixel=function(t,e,a){return this.dataToPoint(a)},r.prototype.convertFromPixel=function(t,e,a){return this.pointToData(a)},r.dimensions=r.prototype.dimensions,r.create=function(t,e){var a,o=e.getDom();return t.eachComponent("bmap",(function(t){var l,u=e.getZr().painter,p=u.getViewportRoot();if("undefined"===typeof BMap)throw new Error("BMap api is not loaded");if(n=n||s(),a)throw new Error("Only one bmap component can exist");if(!t.__bmap){var d=o.querySelector(".ec-extension-bmap");d&&(p.style.left="0px",p.style.top="0px",o.removeChild(d)),d=document.createElement("div"),d.className="ec-extension-bmap",d.style.cssText="position:absolute;width:100%;height:100%",o.appendChild(d);var h=t.get("mapOptions");h&&(h=i["util"].clone(h),delete h.mapType),l=t.__bmap=new BMap.Map(d,h);var c=new n(p);l.addOverlay(c),u.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}}}l=t.__bmap;var m=t.get("center"),f=t.get("zoom");if(m&&f){var v=l.getCenter(),g=l.getZoom(),y=t.centerOrZoomChanged([v.lng,v.lat],g);if(y){var w=new BMap.Point(m[0],m[1]);l.centerAndZoom(w,f)}}a=new r(l,e),a.setMapOffset(t.__mapOffset||[0,0]),a.setZoom(f),a.setCenter(m),t.coordinateSystem=a})),t.eachSeries((function(t){"bmap"===t.get("coordinateSystem")&&(t.coordinateSystem=a)})),a&&[a]};var l=r;function u(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}i["extendComponentModel"]({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged:function(t,e){var a=this.option;return!(u(t,a.center)&&e===a.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},mapOptions:{},roam:!1}});function p(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}i["extendComponentView"]({type:"bmap",render:function(t,e,a){var n=!0,r=t.getBMap(),o=a.getZr().painter.getViewportRoot(),s=t.coordinateSystem,l=function(e,i){if(!n){var r=o.parentNode.parentNode.parentNode,l=[-parseInt(r.style.left,10)||0,-parseInt(r.style.top,10)||0],u=o.style,p=l[0]+"px",d=l[1]+"px";u.left!==p&&(u.left=p),u.top!==d&&(u.top=d),s.setMapOffset(l),t.__mapOffset=l,a.dispatchAction({type:"bmapRoam",animation:{duration:0}})}};function u(){n||a.dispatchAction({type:"bmapRoam",animation:{duration:0}})}r.removeEventListener("moving",this._oldMoveHandler),r.removeEventListener("moveend",this._oldMoveHandler),r.removeEventListener("zoomend",this._oldZoomEndHandler),r.addEventListener("moving",l),r.addEventListener("moveend",l),r.addEventListener("zoomend",u),this._oldMoveHandler=l,this._oldZoomEndHandler=u;var d=t.get("roam");d&&"scale"!==d?r.enableDragging():r.disableDragging(),d&&"move"!==d?(r.enableScrollWheelZoom(),r.enableDoubleClickZoom(),r.enablePinchToZoom()):(r.disableScrollWheelZoom(),r.disableDoubleClickZoom(),r.disablePinchToZoom());var h=t.__mapStyle,c=t.get("mapStyle")||{},m=JSON.stringify(c);JSON.stringify(h)!==m&&(p(c)||r.setMapStyle(i["util"].clone(c)),t.__mapStyle=JSON.parse(m));var f=t.__mapStyle2,v=t.get("mapStyleV2")||{},g=JSON.stringify(v);JSON.stringify(f)!==g&&(p(v)||r.setMapStyleV2(i["util"].clone(v)),t.__mapStyle2=JSON.parse(g)),n=!1}});i["registerCoordinateSystem"]("bmap",l),i["registerAction"]({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},(function(t,e){e.eachComponent("bmap",(function(t){var e=t.getBMap(),a=e.getCenter();t.setCenterAndZoom([a.lng,a.lat],e.getZoom())}))}));var d="1.0.0"},d015:function(t,e,a){"use strict";var n=a("aa74"),i=a("22b4"),r=(a("1be7"),a("f95e")),o=a("5e81"),s=a("ee29");Object(i["a"])([r["a"],o["a"]]);Object(i["a"])(s["a"]),n["t"]({type:"series.liquidFill",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var a=n["A"].createDimensions(t.data,{coordDimensions:["value"]}),i=new n["e"](a,this);return i.initData(t.data),i},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});var l=a("3842"),u=n["z"].extendShape({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(t,e){null==e.radiusY&&(e.radiusY=e.radius);var a=Math.max(2*Math.ceil(2*e.radius/e.waveLength*4),8);while(e.phase<2*-Math.PI)e.phase+=2*Math.PI;while(e.phase>0)e.phase-=2*Math.PI;var n=e.phase/Math.PI/2*e.waveLength,i=e.cx-e.radius+n-2*e.radius;t.moveTo(i,e.waterLevel);for(var r=0,o=0;o<a;++o){var s=o%4,l=p(o*e.waveLength/4,s,e.waveLength,e.amplitude);t.bezierCurveTo(l[0][0]+i,-l[0][1]+e.waterLevel,l[1][0]+i,-l[1][1]+e.waterLevel,l[2][0]+i,-l[2][1]+e.waterLevel),o===a-1&&(r=l[2][0])}e.inverse?(t.lineTo(r+i,e.cy-e.radiusY),t.lineTo(i,e.cy-e.radiusY),t.lineTo(i,e.waterLevel)):(t.lineTo(r+i,e.cy+e.radiusY),t.lineTo(i,e.cy+e.radiusY),t.lineTo(i,e.waterLevel)),t.closePath()}});function p(t,e,a,n){return 0===e?[[t+.5*a/Math.PI/2,n/2],[t+.5*a/Math.PI,n],[t+a/4,n]]:1===e?[[t+.5*a/Math.PI/2*(Math.PI-2),n],[t+.5*a/Math.PI/2*(Math.PI-1),n/2],[t+a/4,0]]:2===e?[[t+.5*a/Math.PI/2,-n/2],[t+.5*a/Math.PI,-n],[t+a/4,-n]]:[[t+.5*a/Math.PI/2*(Math.PI-2),-n],[t+.5*a/Math.PI/2*(Math.PI-1),-n/2],[t+a/4,0]]}var d=l["q"];function h(t){return t&&0===t.indexOf("path://")}n["q"]({type:"liquidFill",render:function(t,e,a){var i=this,r=this.group;r.removeAll();var o=t.getData(),s=o.getItemModel(0),l=s.get("center"),p=s.get("radius"),c=a.getWidth(),m=a.getHeight(),f=Math.min(c,m),v=0,g=0,y=t.get("outline.show");y&&(v=t.get("outline.borderDistance"),g=d(t.get("outline.itemStyle.borderWidth"),f));var w,b,M,S=d(l[0],c),x=d(l[1],m),P=!1,_=t.get("shape");if("container"===_?(P=!0,w=[c/2,m/2],b=[w[0]-g/2,w[1]-g/2],M=[d(v,c),d(v,m)],p=[Math.max(b[0]-M[0],0),Math.max(b[1]-M[1],0)]):(w=d(p,f)/2,b=w-g/2,M=d(v,f),p=Math.max(b-M,0)),y){var V=D();V.style.lineWidth=g,r.add(D())}var F=P?0:S-p,A=P?0:x-p,C=null;r.add(L());var T=this._data,O=[];function I(t,e){if(_){if(h(_)){var a=n["z"].makePath(_.slice(7),{}),i=a.getBoundingRect(),r=i.width,o=i.height;r>o?(o*=2*t/r,r=2*t):(r*=2*t/o,o=2*t);var s=e?0:S-r/2,l=e?0:x-o/2;return a=n["z"].makePath(_.slice(7),{},new n["z"].BoundingRect(s,l,r,o)),e&&(a.x=-r/2,a.y=-o/2),a}if(P){var u=e?-t[0]:S-t[0],p=e?-t[1]:x-t[1];return n["A"].createSymbol("rect",u,p,2*t[0],2*t[1])}u=e?-t:S-t,p=e?-t:x-t;return"pin"===_?p+=t:"arrow"===_&&(p-=t),n["A"].createSymbol(_,u,p,2*t,2*t)}return new n["z"].Circle({shape:{cx:e?0:S,cy:e?0:x,r:t}})}function D(){var e=I(w);return e.style.fill=null,e.setStyle(t.getModel("outline.itemStyle").getItemStyle()),e}function L(){var e=I(p);e.setStyle(t.getModel("backgroundStyle").getItemStyle()),e.style.fill=null,e.z2=5;var a=I(p);a.setStyle(t.getModel("backgroundStyle").getItemStyle()),a.style.stroke=null;var i=new n["z"].Group;return i.add(e),i.add(a),i}function z(e,a,i){var r=P?p[0]:p,s=P?m/2:p,l=o.getItemModel(e),h=l.getModel("itemStyle"),c=l.get("phase"),f=d(l.get("amplitude"),2*s),v=d(l.get("waveLength"),2*r),g=o.get("value",e),y=s-g*s*2;c=i?i.shape.phase:"auto"===c?e*Math.PI/4:c;var w=h.getItemStyle();if(!w.fill){var b=t.get("color"),M=e%b.length;w.fill=b[M]}var _=2*r,V=new u({shape:{waveLength:v,radius:r,radiusY:s,cx:_,cy:0,waterLevel:y,amplitude:f,phase:c,inverse:a},style:w,x:S,y:x});V.shape._waterLevel=y;var F=l.getModel("emphasis.itemStyle").getItemStyle();F.lineWidth=0,V.ensureState("emphasis").style=F,n["A"].enableHoverEmphasis(V);var A=I(p,!0);return A.setStyle({fill:"white"}),V.setClipPath(A),V}function q(t,e,a){var n=o.getItemModel(t),i=n.get("period"),r=n.get("direction"),s=o.get("value",t),l=n.get("phase");l=a?a.shape.phase:"auto"===l?t*Math.PI/4:l;var u=function(e){var a=o.count();return 0===a?e:e*(.2+(a-t)/a*.8)},p=0;p="auto"===i?u(5e3):"function"===typeof i?i(s,t):i;var d=0;"right"===r||null==r?d=Math.PI:"left"===r?d=-Math.PI:"none"===r?d=0:console.error("Illegal direction value for liquid fill."),"none"!==r&&n.get("waveAnimation")&&e.animate("shape",!0).when(0,{phase:l}).when(p/2,{phase:d+l}).when(p,{phase:2*d+l}).during((function(){C&&C.dirty(!0)})).start()}function E(e){var a=s.getModel("label");function i(){var e=t.getFormattedLabel(0,"normal"),a=100*o.get("value",0),n=o.getName(0)||t.name;return isNaN(a)||(n=a.toFixed(0)+"%"),null==e?n:e}var r={z2:10,shape:{x:F,y:A,width:2*(P?p[0]:p),height:2*(P?p[1]:p)},style:{fill:"transparent"},textConfig:{position:a.get("position")||"inside"},silent:!0},l={style:{text:i(),textAlign:a.get("align"),textVerticalAlign:a.get("baseline")}};Object.assign(l.style,n["A"].createTextStyle(a));var u=new n["z"].Rect(r),d=new n["z"].Rect(r);d.disableLabelAnimation=!0,u.disableLabelAnimation=!0;var h=new n["z"].Text(l),c=new n["z"].Text(l);u.setTextContent(h),d.setTextContent(c);var m=a.get("insideColor");c.style.fill=m;var f=new n["z"].Group;f.add(u),f.add(d);var v=I(p,!0);return C=new n["z"].CompoundPath({shape:{paths:e},x:S,y:x}),C.setClipPath(v),d.setClipPath(C),f}o.diff(T).add((function(e){var a=z(e,!1),i=a.shape.waterLevel;a.shape.waterLevel=P?m/2:p,n["z"].initProps(a,{shape:{waterLevel:i}},t),a.z2=2,q(e,a,null),r.add(a),o.setItemGraphicEl(e,a),O.push(a)})).update((function(e,a){for(var s=T.getItemGraphicEl(a),l=z(e,!1,s),u={},p=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],d=0;d<p.length;++d){var c=p[d];l.shape.hasOwnProperty(c)&&(u[c]=l.shape[c])}var f={},v=["fill","opacity","shadowBlur","shadowColor"];for(d=0;d<v.length;++d){c=v[d];l.style.hasOwnProperty(c)&&(f[c]=l.style[c])}P&&(u.radiusY=m/2),n["z"].updateProps(s,{shape:u,x:l.x,y:l.y},t),t.isUniversalTransitionEnabled&&t.isUniversalTransitionEnabled()?n["z"].updateProps(s,{style:f},t):s.useStyle(f);var g=s.getClipPath(),y=l.getClipPath();s.setClipPath(l.getClipPath()),s.shape.inverse=l.inverse,g&&y&&i._shape===_&&!h(_)&&n["z"].updateProps(y,{shape:g.shape},t,{isFrom:!0}),q(e,s,s),r.add(s),o.setItemGraphicEl(e,s),O.push(s)})).remove((function(t){var e=T.getItemGraphicEl(t);r.remove(e)})).execute(),s.get("label.show")&&r.add(E(O)),this._shape=_,this._data=o},dispose:function(){}})},ec1b:function(t,e,a){!function(e,a){t.exports=a()}(0,(function(){return function(t){function e(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){var n=a(4)(a(1),a(5),null,null);t.exports=n.exports},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(3);e.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,e,a,n){return a*(1-Math.pow(2,-10*t/n))*1024/1023+e}}},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 e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/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),e<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 e=t.split("."),a=e[0],n=e.length>1?this.decimal+e[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(a);)a=a.replace(i,"$1"+this.separator+"$2");return this.prefix+a+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=0,i="webkit moz ms o".split(" "),r=void 0,o=void 0;if("undefined"==typeof window)e.requestAnimationFrame=r=function(){},e.cancelAnimationFrame=o=function(){};else{e.requestAnimationFrame=r=window.requestAnimationFrame,e.cancelAnimationFrame=o=window.cancelAnimationFrame;for(var s=void 0,l=0;l<i.length&&(!r||!o);l++)s=i[l],e.requestAnimationFrame=r=r||window[s+"RequestAnimationFrame"],e.cancelAnimationFrame=o=o||window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"];r&&o||(e.requestAnimationFrame=r=function(t){var e=(new Date).getTime(),a=Math.max(0,16-(e-n)),i=window.setTimeout((function(){t(e+a)}),a);return n=e+a,i},e.cancelAnimationFrame=o=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=r,e.cancelAnimationFrame=o},function(t,e){t.exports=function(t,e,a,n){var i,r=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(i=t,r=t.default);var s="function"==typeof r?r.options:r;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),a&&(s._scopeId=a),n){var l=Object.create(s.computed||null);Object.keys(n).forEach((function(t){var e=n[t];l[t]=function(){return e}})),s.computed=l}return{esModule:i,exports:r,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",[t._v("\n "+t._s(t.displayValue)+"\n")])},staticRenderFns:[]}}])}))}}]); |