=e&&t.s<=e+n}},_findTargetItemIndex:function(n){var o,a,t=this.getContentGroup();return this._showController&&t.eachChild(function(t,e){var i=t.__legendDataIndex;null==a&&null!=i&&(a=e),i===n&&(o=e)}),null!=o?o:a}});gf("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})});WA.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});var zC=is,RC=kl,BC=Ol,VC=A,GC=E,FC="horizontal",WC="vertical",HC=["line","bar","candlestick","scatter"],ZC=UA.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){ZC.superApply(this,"render",arguments),Tc(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){ZC.superApply(this,"remove",arguments),Ac(this,"_dispatchZoomAction")},dispose:function(){ZC.superApply(this,"dispose",arguments),Ac(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new Ii;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),n={width:e.getWidth(),height:e.getHeight()},o=this._orient===FC?{right:n.width-i.x-i.width,top:n.height-30-7,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=_u(t.option);E(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var r=vu(a,n,t.padding);this._location={x:r.x,y:r.y},this._size=[r.width,r.height],this._orient===WC&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),a=this._displayables.barGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==FC||o?i===FC&&o?{scale:r?[-1,1]:[-1,-1]}:i!==WC||o?{scale:r?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:r?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:r?[1,1]:[1,-1]});var s=t.getBoundingRect([a]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.barGroup;i.add(new zC({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),i.add(new zC({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:A(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,n=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=o){var a=n.getDataExtent(o),r=.3*(a[1]-a[0]);a=[a[0]-r,a[1]+r];var s,l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],c=[],d=u[1]/(n.count()-1),f=0,p=Math.round(n.count()/e[0]);n.each([o],function(t,e){if(0e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,a=this._updateInterval("all",i[0]-o);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var i;if(GC(this.getTargetCoordInfo(),function(t){if(!i&&t.length){var e=t[0].model.coordinateSystem;i=e.getRect&&e.getRect()}}),!i){var t=this.api.getWidth(),e=this.api.getHeight();i={x:.2*t,y:.2*e,width:.6*t,height:.6*e}}return i}});function UC(t){return"vertical"===t?"ns-resize":"ew-resize"}WA.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var XC="\0_ec_dataZoom_roams";function YC(t,n){var e=qC(t),o=n.dataZoomId,a=n.coordId;E(e,function(t,e){var i=t.dataZoomInfos;i[o]&&_(n.allCoordIds,a)<0&&(delete i[o],t.count--)}),KC(e);var i=e[a];i||((i=e[a]={coordId:a,dataZoomInfos:{},count:0}).controller=function(t,r){var e=new Ly(t.getZr());return E(["pan","zoom","scrollMove"],function(a){e.on(a,function(n){var o=[];E(r.dataZoomInfos,function(t){if(n.isAvailableBehavior(t.dataZoomModel.option)){var e=(t.getRange||{})[a],i=e&&e(r.controller,n);!t.dataZoomModel.get("disabled",!0)&&i&&o.push({dataZoomId:t.dataZoomId,start:i[0],end:i[1]})}}),o.length&&r.dispatchAction(o)})}),e}(t,i),i.dispatchAction=T($C,t)),i.dataZoomInfos[o]||i.count++,i.dataZoomInfos[o]=n;var r=function(t){var n,o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return E(t,function(t){var e=t.dataZoomModel,i=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");o["type_"+n]"],k(t)&&(t=t.slice(),n=!0),o=e?t:n?[u(t[0]),u(t[1])]:u(t),z(l)?l.replace("{value}",n?o[0]:o).replace("{value2}",n?o[1]:o):O(l)?n?l(t[0],t[1]):l(t):n?t[0]===s[0]?i[0]+" "+o[1]:t[1]===s[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o;function u(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(r,20))}},resetExtent:function(){var t=this.option,e=pL([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,o=n.length-1;0<=o;o--){var a=n[o];if(!t.getDimensionInfo(a).isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),o=e.controller||(e.controller={});m(n,i),m(o,i);var u=this.isCategory();function a(n){dL(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")},fL(this.stateList,function(t){var e=n[t];if(z(e)){var i=lL(e,"active",u);i?(n[t]={},n[t][e]=i):delete n[t]}},this)}a.call(this,n),a.call(this,o),function(t,e,i){var n=t[e],o=t[i];n&&!o&&(o=t[i]={},fL(n,function(t,e){if(a_.isValidType(e)){var i=lL(e,"inactive",u);null!=i&&(o[e]=i,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}.call(this,n,"inRange","outOfRange"),function(a){var r=(a.inRange||{}).symbol||(a.outOfRange||{}).symbol,s=(a.inRange||{}).symbolSize||(a.outOfRange||{}).symbolSize,l=this.get("inactiveColor");fL(this.stateList,function(t){var e=this.itemSize,i=a[t];null==(i=i||(a[t]={color:u?l:[l]})).symbol&&(i.symbol=r&&D(r)||(u?"roundRect":["roundRect"])),null==i.symbolSize&&(i.symbolSize=s&&D(s)||(u?e[0]:[e[0],e[0]])),i.symbol=hL(i.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var n=i.symbolSize;if(null!=n){var o=-1/0;cL(n,function(t){oe[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){mL.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Ol((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(n){var o=[];return this.eachTargetSeries(function(t){var i=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){n[0]<=t&&t<=n[1]&&i.push(e)},this),o.push({seriesId:t.id,dataIndex:i})},this),o},getVisualMeta:function(i){var t=xL(this,"outOfRange",this.getExtent()),e=xL(this,"inRange",this.option.range.slice()),n=[];function o(t,e){n.push({value:t,color:i(t,e)})}for(var a=0,r=0,s=e.length,l=t.length;rt[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new Ii("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(n,o){if(this._useHandle){var a=this._shapes,r=this.visualMapModel,s=a.handleThumbs,l=a.handleLabels;ML([0,1],function(t){var e=s[t];e.setStyle("fill",o.handlesColor[t]),e.position[1]=n[t];var i=hl(a.handleLabelPoints[t],ul(e,this.group));l[t].setStyle({x:i[0],y:i[1],text:r.formatValueText(this._dataInterval[t]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===t?"bottom":"top":"left",a.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r[1]],l=SL(t,a,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",function(t,e,i,n){return t?[[0,-IL(e,TL(i,0))],[6,0],[0,IL(e,TL(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,l,r[1]));var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",c);var d=hl(u.indicatorLabelPoint,ul(h,this.group)),f=u.indicatorLabel;f.attr("invisible",!1);var p=this._applyTransform("left",u.barGroup),g=this._orient;f.setStyle({text:(i||"")+o.formatValueText(e),textVerticalAlign:"horizontal"===g?p:"middle",textAlign:"horizontal"===g?"center":p,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var n=this;this._shapes.barGroup.on("mousemove",function(t){if(n._hovering=!0,!n._dragging){var e=n.visualMapModel.itemSize,i=n._applyTransform([t.offsetX,t.offsetY],n._shapes.barGroup,!0,!0);i[1]=IL(TL(0,i[1]),e[1]),n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=e[0])}}).on("mouseout",function(){n._hovering=!1,n._dragging||n._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o=[0,n[1]],a=i.getExtent();t=IL(TL(o[0],t),o[1]);var r=function(t,e,i){var n=6,o=t.get("hoverLinkDataSize");o&&(n=SL(o,e,i,!0)/2);return n}(i,a,o),s=[t-r,t+r],l=SL(t,o,a,!0),u=[SL(s[0],o,a,!0),SL(s[1],o,a,!0)];s[0] ",r):this._showIndicator(l,l,"≈ ",r));var h=this._hoverLinkDataIndices,c=[];(e||CL(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=function(t,e){var i={},n={};return o(t||[],i),o(e||[],n,i),[a(i),a(n)];function o(t,e,i){for(var n=0,o=t.length;ni&&n([i,e[0]],"outOfRange"),n(e.slice()),i=e[1])},this),{stops:a,outerColors:r}}function n(t,e){var i=s.getRepresentValue({interval:t});e=e||s.getValueState(i);var n=o(i,e);t[0]===-1/0?r[0]=n:t[1]===1/0?r[1]=n:a.push({value:t[0],color:n},{value:t[1],color:n})}}}),PL={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var a=(n[1]-n[0])/o;+a.toFixed(i)!==a&&i<5;)i++;t.precision=i,a=+a.toFixed(i);var r=0;t.minOpen&&e.push({index:r++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=r+o;r","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}};function NL(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}_L.extend({type:"visualMap.piecewise",doRender:function(){var a=this.group;a.removeAll();var r=this.visualMapModel,s=r.get("textGap"),t=r.textStyleModel,l=t.getFont(),u=t.getTextColor(),h=this._getItemAlign(),c=r.itemSize,e=this._getViewData(),i=e.endsText,d=W(r.get("showLabel",!0),!i);i&&this._renderEndsText(a,i[0],c,d,h),E(e.viewPieceList,function(t){var e=t.piece,i=new Ii;i.onclick=A(this._onItemClick,this,e),this._enableHoverLink(i,t.indexInModelPieceList);var n=r.getRepresentValue(e);if(this._createItemSymbol(i,n,[0,0,c[0],c[1]]),d){var o=this.visualMapModel.getValueState(n);i.add(new Fr({style:{x:"right"===h?-s:c[0]+s,y:c[1]/2,text:e.text,textVerticalAlign:"middle",textAlign:h,textFont:l,textFill:u,opacity:"outOfRange"===o?.5:1}}))}a.add(i)},this),i&&this._renderEndsText(a,i[1],c,d,h),mu(r.get("orient"),a,r.get("itemGap")),this.renderBackground(a),this.positionGroup(a)},_enableHoverLink:function(t,i){function e(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:bL(e.findTargetDataIndices(i),e)})}t.on("mouseover",A(e,this,"highlight")).on("mouseout",A(e,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return wL(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,o){if(e){var a=new Ii,r=this.visualMapModel.textStyleModel;a.add(new Fr({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?o:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=N(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return("horizontal"===n?o:!o)?e.reverse():i=i&&i.slice().reverse(),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(mg(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,n=D(i.selected),o=e.getSelectedMapKey(t);"single"===i.selectedMode?(n[o]=!0,E(n,function(t,e){n[e]=e===o})):n[o]=!n[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}});ff(iL);var OL,EL="urn:schemas-microsoft-com:vml",zL="undefined"==typeof window?null:window,RL=!1,BL=zL&&zL.document;function VL(t){return OL(t)}if(BL&&!v.canvasSupported)try{BL.namespaces.zrvml||BL.namespaces.add("zrvml",EL),OL=function(t){return BL.createElement("')}}catch(t){OL=function(t){return BL.createElement("<"+t+' xmlns="'+EL+'" class="zrvml">')}}var GL,FL=ir.CMD,WL=Math.round,HL=Math.sqrt,ZL=Math.abs,UL=Math.cos,XL=Math.sin,YL=Math.max;if(!v.canvasSupported){var jL=",",qL="progid:DXImageTransform.Microsoft",KL=21600,$L=KL/2,JL=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=KL+","+KL,t.coordorigin="0,0"},QL=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},tk=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},ek=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},ik=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},nk=Hn,ok=function(t,e,i){var n=Re(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=QL(n[0],n[1],n[2]),t.opacity=i*n[3])},ak=function(t,e,i,n){var o="fill"===e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(o||!o&&i.lineWidth)?(t[o?"filled":"stroked"]="true",i[e]instanceof ss&&ek(t,a),a=a||VL(e),o?function(t,e,i){var n,o,a=e.fill;if(null!=a)if(a instanceof ss){var r,s=0,l=[0,0],u=0,h=1,c=i.getBoundingRect(),d=c.width,f=c.height;if("linear"===a.type){r="gradient";var p=i.transform,g=[a.x*d,a.y*f],m=[a.x2*d,a.y2*f];p&&(bt(g,g,p),bt(m,m,p));var v=m[0]-g[0],y=m[1]-g[1];(s=180*Math.atan2(v,y)/Math.PI)<0&&(s+=360),s<1e-6&&(s=0)}else{r="gradientradial";g=[a.x*d,a.y*f],p=i.transform;var x=i.scale,_=d,w=f;l=[(g[0]-c.x)/_,(g[1]-c.y)/w],p&&bt(g,g,p),_/=x[0]*KL,w/=x[1]*KL;var b=YL(_,w);u=0/b,h=2*a.r/b-u}var S=a.colorStops.slice();S.sort(function(t,e){return t.offset-e.offset});for(var M=S.length,I=[],T=[],A=0;A=c&&d<=i+1){for(var n=[],o=0;o=c&&d<=o+1)return jk(h,e.components,u,l);p[t]=e}else p[t]=void 0}var s;f++}for(;f<=e;){var r=a();if(r)return r}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var o=e.length,a=i.length,r=t.newPos,s=r-n,l=0;r+1 {
+ Object.defineProperty(ctx, style, {
+ set: value => {
+ if (style !== 'fillStyle' && style !== 'strokeStyle'
+ || value !== 'none' && value !== null
+ ) {
+ ctx['set' + style.charAt(0).toUpperCase() + style.slice(1)](value);
+ }
+ }
+ });
+ });
+
+ ctx.createRadialGradient = () => {
+ return ctx.createCircularGradient(arguments);
+ };
+ }
+
+ _initEvent() {
+ this.event = {};
+ const eventNames = [{
+ wxName: 'touchStart',
+ ecName: 'mousedown'
+ }, {
+ wxName: 'touchMove',
+ ecName: 'mousemove'
+ }, {
+ wxName: 'touchEnd',
+ ecName: 'mouseup'
+ }, {
+ wxName: 'touchEnd',
+ ecName: 'click'
+ }];
+
+ eventNames.forEach(name => {
+ this.event[name.wxName] = e => {
+ const touch = e.touches[0];
+ this.chart.getZr().handler.dispatch(name.ecName, {
+ zrX: name.wxName === 'tap' ? touch.clientX : touch.x,
+ zrY: name.wxName === 'tap' ? touch.clientY : touch.y
+ });
+ };
+ });
+ }
+
+ set width(w) {
+ if (this.canvasNode) this.canvasNode.width = w
+ }
+ set height(h) {
+ if (this.canvasNode) this.canvasNode.height = h
+ }
+
+ get width() {
+ if (this.canvasNode)
+ return this.canvasNode.width
+ return 0
+ }
+ get height() {
+ if (this.canvasNode)
+ return this.canvasNode.height
+ return 0
+ }
+}
diff --git a/pages/meterList/index.js b/pages/billDetail/index.js
similarity index 63%
rename from pages/meterList/index.js
rename to pages/billDetail/index.js
index 0b4acb9..b86f799 100644
--- a/pages/meterList/index.js
+++ b/pages/billDetail/index.js
@@ -1,35 +1,20 @@
-import { getMeterList } from "../../service/meter";
-
-// pages/meterList/index.js
+// pages/billDetail/index.js
Page({
/**
* 页面的初始数据
*/
data: {
- list: [
- ]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
- this.getList();
- },
- async getList() {
- const { code, message, data = [] } = await getMeterList()
- this.setData({
- list: data
- })
- },
- jumpToRecharge(e) {
- const { code, tenement } = e.currentTarget.dataset;
- wx.navigateTo({
- url: `/pages/recharge/index?code=${code}&tenement=${tenement}`,
- })
+
},
+
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/billDetail/index.json b/pages/billDetail/index.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/billDetail/index.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/billDetail/index.wxml b/pages/billDetail/index.wxml
new file mode 100644
index 0000000..2a4992e
--- /dev/null
+++ b/pages/billDetail/index.wxml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/pages/billDetail/index.wxss b/pages/billDetail/index.wxss
new file mode 100644
index 0000000..ae6f84d
--- /dev/null
+++ b/pages/billDetail/index.wxss
@@ -0,0 +1 @@
+/* pages/billDetail/index.wxss */
\ No newline at end of file
diff --git a/pages/billList/index.js b/pages/billList/index.js
new file mode 100644
index 0000000..cb0d4d4
--- /dev/null
+++ b/pages/billList/index.js
@@ -0,0 +1,87 @@
+import { getBillList } from "../../service/accounting"
+import { alertInfo } from "../../utils/index";
+import request from '../../utils/request'
+const { OK } = request;
+// pages/billList/index.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ page: 1,
+ list: []
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.init();
+ },
+ async init() {
+ const { page, list } = this.data;
+ const { code, data, message } = await getBillList(page)
+ if (!data?.length) {
+ alertInfo("没用更多了")
+ return;
+ }
+ this.setData({
+ list: [...list, ...data],
+ page: page + 1,
+ })
+ },
+ jumpToDetail() {
+ wx.navigateTo({
+ url: '/pages/billDetail/index',
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/billList/index.json b/pages/billList/index.json
new file mode 100644
index 0000000..64646d1
--- /dev/null
+++ b/pages/billList/index.json
@@ -0,0 +1,7 @@
+{
+ "usingComponents": {
+ "navigator": "/components/navigator/index",
+ "van-icon": "@vant/weapp/icon/index"
+ },
+ "navigationStyle": "custom"
+}
\ No newline at end of file
diff --git a/pages/billList/index.wxml b/pages/billList/index.wxml
new file mode 100644
index 0000000..794a8f9
--- /dev/null
+++ b/pages/billList/index.wxml
@@ -0,0 +1,8 @@
+
+
+
+
+
+ {{ item.time }}
+ 查看详细
+
\ No newline at end of file
diff --git a/pages/billList/index.wxss b/pages/billList/index.wxss
new file mode 100644
index 0000000..c31c7a1
--- /dev/null
+++ b/pages/billList/index.wxss
@@ -0,0 +1,23 @@
+/* pages/billList/index.wxss */
+page {
+ background-color: var(--transparent-green);
+}
+
+.itemWrapper {
+ margin: 20rpx 30rpx 20rpx 30rpx;
+ background-color: #fff;
+ border-radius: 20rpx;
+ box-sizing: border-box;
+ padding: 30rpx;
+ display: flex;
+ align-items: center;
+}
+
+.time {
+ flex: 1;
+ text-indent: 40rpx;
+}
+
+.operate {
+
+}
\ No newline at end of file
diff --git a/pages/editInvoice/index.js b/pages/editInvoice/index.js
index a86949f..5d2f97a 100644
--- a/pages/editInvoice/index.js
+++ b/pages/editInvoice/index.js
@@ -1,28 +1,20 @@
-import { getInvoiceInfoDetail } from "../../service/invoice";
-
-// pages/invoiceInfo/index.js
+// pages/editInvoice/index.js
Page({
/**
* 页面的初始数据
*/
data: {
- detail: {}
+
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
- const { id } = options;
- if (id !== "-1") {
- this.init(id);
- }
- },
- async init(id) {
- const { code, message, data } = await getInvoiceInfoDetail(id)
- this.setData({ detail: data });
+
},
+
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/editInvoice/index.json b/pages/editInvoice/index.json
deleted file mode 100644
index da07a9a..0000000
--- a/pages/editInvoice/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "usingComponents": {
- "van-field": "@vant/weapp/field/index",
- "van-button": "@vant/weapp/button/index"
- }
-}
\ No newline at end of file
diff --git a/pages/editInvoice/index.wxml b/pages/editInvoice/index.wxml
index 723d20b..385878f 100644
--- a/pages/editInvoice/index.wxml
+++ b/pages/editInvoice/index.wxml
@@ -1,50 +1,2 @@
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
\ No newline at end of file
+
+pages/editInvoice/index.wxml
\ No newline at end of file
diff --git a/pages/editInvoice/index.wxss b/pages/editInvoice/index.wxss
deleted file mode 100644
index a707d47..0000000
--- a/pages/editInvoice/index.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-/* pages/editInvoice/index.wxss */
-.operate {
- display: flex;
- align-items: center;
- margin-top: 50rpx;
-}
\ No newline at end of file
diff --git a/pages/electricQuery/index.js b/pages/electricQuery/index.js
new file mode 100644
index 0000000..2548883
--- /dev/null
+++ b/pages/electricQuery/index.js
@@ -0,0 +1,150 @@
+// pages/electricQuery/index.js
+import { getElectricityList } from "../../service/accounting";
+import { getTenementMeterList } from "../../service/meter";
+import dayjs from "../../utils/dayjs";
+import request from '../../utils/request';
+import * as echarts from '../..//components/echarts/echarts';
+const { OK } = request;
+const piedata = [1,2,3,4,5]
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ queryType: 0,
+ timeType: 0,
+ show: false,
+ columns: [],
+ meterList: [],
+ meterCode: "",
+ meterId: "",
+ year: dayjs().format('YYYY'),
+ yearMonth: dayjs().format("YYYY-MM"),
+ yearMonthDay: dayjs().format("YYYY-MM-DD"),
+ header: [
+ { key: 'address', title: '电表地址', renderBody: (item) => item.meter?.address },
+ { title: '时间',renderBody: (item) => { return item.time } },
+ { key: 'number', title: '耗量' },
+ ],
+ list: []
+ },
+ changeQueryType(e) {
+ const { type } = e.currentTarget.dataset
+ this.setData({ queryType: type },() => {
+ this.init()
+ })
+ },
+ changeTimeType(e) {
+ const { type } = e.currentTarget.dataset
+ this.setData({ timeType: type }, () => {
+ this.init()
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.init()
+ },
+ async init() {
+ const { queryType, timeType, meterId } = this.data;
+ const { code, message, data } = await getElectricityList({ type: queryType, meter: meterId, time: timeType })
+ console.log('data', data)
+ this.setData({ list: data })
+ },
+ async getMeters() {
+ const { id } = wx.getStorageSync('tenement')
+ const { code, message, data } = await getTenementMeterList(id);
+ // if (code !== OK) {
+ // alertInfo(message)
+ // return;
+ // }
+
+ this.setData({
+ meterList: data || [],
+ })
+ },
+ clickMeter() {
+ this.setData({
+ type: "meter",
+ columns: [{ id: "", name: "全部", code: "" }, ...this.data.meterList.map(item => ({ id: item.id, name: `${item.code}-${item.address}`, code: item.code }))],
+ show: true,
+ title: "表计"
+ })
+ },
+ onCancel() {
+ this.setData({
+ type: "meter",
+ columns: [],
+ show: false,
+ title: "",
+ })
+ },
+ onOk(e) {
+ const { type, value = {} } = e.detail;
+ const { id, code } = e;
+ console.log('e', e)
+ const { year } = this.data;
+ // const currentYear = years[Number(e)]
+ this.setData({
+ // year: currentYear,
+ codeId: id,
+ meterCode: code,
+ type: "",
+ show: false,
+ title: ""
+ }, () => {
+ this.init();
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ this.getMeters()
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/electricQuery/index.json b/pages/electricQuery/index.json
new file mode 100644
index 0000000..d342677
--- /dev/null
+++ b/pages/electricQuery/index.json
@@ -0,0 +1,13 @@
+{
+ "usingComponents": {
+ "navigator": "/components/navigator/index",
+ "van-icon": "@vant/weapp/icon/index",
+ "custom-picker": "/components/picker/index",
+ "van-row": "@vant/weapp/row/index",
+ "van-col": "@vant/weapp/col/index",
+ "van-button": "@vant/weapp/button/index",
+ "table": "/components/table/table",
+ "empty": "/components/empty/index"
+ },
+ "navigationStyle": "custom"
+}
\ No newline at end of file
diff --git a/pages/electricQuery/index.wxml b/pages/electricQuery/index.wxml
new file mode 100644
index 0000000..ca98753
--- /dev/null
+++ b/pages/electricQuery/index.wxml
@@ -0,0 +1,81 @@
+
+
+
+
+
+ 选择电表
+
+
+
+ {{ meterCode === "" ? '全部' : meterCode }}
+
+
+
+
+
+
+
+
+
+ 电量查询
+
+
+ 抄表记录
+
+
+ 账务余额
+
+
+
+
+
+
+ 日耗量
+
+
+ 月耗量
+
+
+ 年耗量
+
+
+
+
+
+ 不包括线损电量,显示为电表实际消耗电量。仅供参考,实际能耗电量以电费账单为主。如有疑问,请联系客服。
+
+
+ 选择时间
+
+ {{yearMonthDay}}
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+ 合计:表计数量:10,耗电量100
+
+
+
\ No newline at end of file
diff --git a/pages/electricQuery/index.wxss b/pages/electricQuery/index.wxss
new file mode 100644
index 0000000..d69df50
--- /dev/null
+++ b/pages/electricQuery/index.wxss
@@ -0,0 +1,89 @@
+/* pages/electricQuery/index.wxss */
+page {
+ background-color: var(--transparent-green);
+}
+
+.queryWrapper {
+ margin: 20rpx 0rpx;
+ background-color: #fff;
+ padding: 30rpx;
+ box-sizing: border-box;
+ border-radius: 20rpx;
+ display: flex;
+ align-items: center;
+
+}
+
+.label {
+ width: 180rpx;
+ font-size: 34rpx;
+}
+
+.sum {
+ margin-bottom: 30rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+}
+
+.query {
+ margin: 20rpx 0rpx;
+}
+
+.typeQueryText {
+ text-align: center;
+ padding: 30rpx;
+ background-color: var(--light-green);
+ font-size: 34rpx;
+}
+
+.select {
+ border: 1rpx solid #ccc;
+ padding: 12rpx;
+ border-radius: 12rpx;
+ flex: 1;
+ display: flex;
+ justify-content: space-between;
+}
+
+.timeQueryText {
+ text-align: center;
+ padding: 30rpx;
+ background-color: rgb(242,248,246);
+ font-size: 34rpx;
+}
+
+.wrapper {
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ padding: 0;
+}
+
+.tooltip {
+ margin: 20rpx 0;
+ font-size: 32rpx;
+}
+.timeChooseWrapper {
+ display: flex;
+ align-items: center;
+}
+
+.time {
+ flex: 1;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ display: flex;
+ padding: 10rpx 20rpx;
+ border-radius: 12rpx;
+ border: 1rpx solid #ccc;
+ background-color: #fff;
+}
+
+.timeText {
+ flex: 1;
+}
+
+.mychart-bar::after{
+ content:"";
+ display:block;
+ clear:both
+}
\ No newline at end of file
diff --git a/pages/home/index.js b/pages/home/index.js
index 82bddd9..c772215 100644
--- a/pages/home/index.js
+++ b/pages/home/index.js
@@ -314,7 +314,10 @@ Page({
})
},
jumpToOrder() {
- alertInfo("尚未完成")
+ // alertInfo("尚未完成")
+ wx.navigateTo({
+ url: '/pages/billList/index',
+ })
},
/**
* 生命周期函数--监听页面隐藏
diff --git a/pages/meterList/index.json b/pages/meterList/index.json
deleted file mode 100644
index f4c5ccd..0000000
--- a/pages/meterList/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "usingComponents": {
- "navigator": "/components/navigator/index",
- "scrollPageWrapper": "/components/scrollPageWrapper/index"
- },
- "navigationBarTitleText": "表计列表"
-}
\ No newline at end of file
diff --git a/pages/meterList/index.wxml b/pages/meterList/index.wxml
deleted file mode 100644
index 36d7487..0000000
--- a/pages/meterList/index.wxml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- {{ item.tenement.name }} :
-
-
- 表{{ ele.code }}:余额为
- {{ ele.money }}
- 充值
-
-
- 表计地址: {{ ele.address }}
-
-
-
-
-
-
-
diff --git a/pages/meterList/index.wxss b/pages/meterList/index.wxss
deleted file mode 100644
index 3cfcde7..0000000
--- a/pages/meterList/index.wxss
+++ /dev/null
@@ -1,40 +0,0 @@
-/* pages/meterList/index.wxss */
-/* .content {
- flex: 1;
- padding: 16rpx 24rpx 20rpx;
- box-sizing: border-box;
- display: flex;
- overflow: hidden;
-} */
-
-.listItem {
- /* display: flex;
- align-items: center;
- justify-content: space-between; */
- margin: 12rpx 0;
-}
-
-.money {
- font-size: 36rpx;
- font-weight: 600;
- margin-left: 20rpx;
- flex: 1;
-}
-
-.content {
- display: flex;
- align-items: center;
- margin-left: 30rpx;
- margin-right: 20rpx;
-}
-
-.address {
- margin-left: 30rpx;
- margin-right: 20rpx;
-}
-
-.tenementName {
- font-size: 42rpx;
- font-weight: 600;
- margin-bottom: 20rpx;
-}
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
index 6958653..b18837a 100644
--- a/project.config.json
+++ b/project.config.json
@@ -46,7 +46,6 @@
"tabIndent": "insertSpaces",
"tabSize": 2
},
- "libVersion": "2.12.3",
"packOptions": {
"ignore": [],
"include": []
diff --git a/service/accounting.js b/service/accounting.js
new file mode 100644
index 0000000..de240b8
--- /dev/null
+++ b/service/accounting.js
@@ -0,0 +1,14 @@
+import apis from '../utils/request';
+const { GET, POST, PUT, DELETE } = apis
+
+// 获取电费账单列表
+export const getBillList = async function(page) {
+ const tenement = wx.getStorageSync('tenement')?.id || ""
+ return await GET(`/wx/getBillList?tenement=${tenement}&page=${page}`);
+}
+
+// 电量查询
+export const getElectricityList = async function({ meter, type, time }) {
+ const tenement = wx.getStorageSync('tenement')?.id || ""
+ return await GET(`/wx/getElectricityList?tenement=${tenement}&meter=${meter}&type=${type}&time=${time}`);
+}
\ No newline at end of file
diff --git a/utils/dayjs.js b/utils/dayjs.js
new file mode 100644
index 0000000..ae93b6c
--- /dev/null
+++ b/utils/dayjs.js
@@ -0,0 +1,120 @@
+!(function (t, e) {
+ 'object' === typeof exports && 'undefined' !== typeof module ? module.exports = e() : 'function' === typeof define && define.amd ? define(e) : (t = 'undefined' !== typeof globalThis ? globalThis : t || self).dayjs = e();
+}(this, (() => {
+ 'use strict';const t = 1e3; const e = 6e4; const n = 36e5; const r = 'millisecond'; const i = 'second'; const s = 'minute'; const u = 'hour'; const a = 'day'; const o = 'week'; const f = 'month'; const h = 'quarter'; const c = 'year'; const d = 'date'; const $ = 'Invalid Date'; const l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/; const y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g; const M = { name: 'en', weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_') }; const m = function (t, e, n) {
+ const r = String(t);return !r || r.length >= e ? t : `${Array(e + 1 - r.length).join(n)}${t}`;
+ }; const g = { s: m, z(t) {
+ const e = -t.utcOffset(); const n = Math.abs(e); const r = Math.floor(n / 60); const i = n % 60;return `${(e <= 0 ? '+' : '-') + m(r, 2, '0')}:${m(i, 2, '0')}`;
+ }, m: function t(e, n) {
+ if (e.date() < n.date()) return -t(n, e);const r = 12 * (n.year() - e.year()) + (n.month() - e.month()); const i = e.clone().add(r, f); const s = n - i < 0; const u = e.clone().add(r + (s ? -1 : 1), f);return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
+ }, a(t) {
+ return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
+ }, p(t) {
+ return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t] || String(t || '').toLowerCase()
+ .replace(/s$/, '');
+ }, u(t) {
+ return void 0 === t;
+ } }; let D = 'en'; const v = {};v[D] = M;const p = function (t) {
+ return t instanceof _;
+ }; const S = function (t, e, n) {
+ let r;if (!t) return D;if ('string' === typeof t)v[t] && (r = t), e && (v[t] = e, r = t);else {
+ const i = t.name;v[i] = t, r = i;
+ } return !n && r && (D = r), r || !n && D;
+ }; const w = function (t, e) {
+ if (p(t)) return t.clone();const n = 'object' === typeof e ? e : {};return n.date = t, n.args = arguments, new _(n);
+ }; const O = g;O.l = S, O.i = p, O.w = function (t, e) {
+ return w(t, { locale: e.$L, utc: e.$u, x: e.$x, $offset: e.$offset });
+ };
+ var _ = (function () {
+ function M(t) {
+ this.$L = S(t.locale, null, !0), this.parse(t);
+ } const m = M.prototype;return m.parse = function (t) {
+ this.$d = (function (t) {
+ const e = t.date; const n = t.utc;if (null === e) return new Date(NaN);if (O.u(e)) return new Date;if (e instanceof Date) return new Date(e);if ('string' === typeof e && !/Z$/i.test(e)) {
+ const r = e.match(l);if (r) {
+ const i = r[2] - 1 || 0; const s = (r[7] || '0').substring(0, 3);return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
+ }
+ } return new Date(e);
+ }(t)), this.$x = t.x || {}, this.init();
+ }, m.init = function () {
+ const t = this.$d;this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
+ }, m.$utils = function () {
+ return O;
+ }, m.isValid = function () {
+ return !(this.$d.toString() === $);
+ }, m.isSame = function (t, e) {
+ const n = w(t);return this.startOf(e) <= n && n <= this.endOf(e);
+ }, m.isAfter = function (t, e) {
+ return w(t) < this.startOf(e);
+ }, m.isBefore = function (t, e) {
+ return this.endOf(e) < w(t);
+ }, m.$g = function (t, e, n) {
+ return O.u(t) ? this[e] : this.set(n, t);
+ }, m.unix = function () {
+ return Math.floor(this.valueOf() / 1e3);
+ }, m.valueOf = function () {
+ return this.$d.getTime();
+ }, m.startOf = function (t, e) {
+ const n = this; const r = !!O.u(e) || e; const h = O.p(t); const $ = function (t, e) {
+ const i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);return r ? i : i.endOf(a);
+ }; const l = function (t, e) {
+ return O.w(n.toDate()[t].apply(n.toDate('s'), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
+ }; const y = this.$W; const M = this.$M; const m = this.$D; const g = `set${this.$u ? 'UTC' : ''}`;switch (h) {
+ // eslint-disable-next-line no-var
+ case c:return r ? $(1, 0) : $(31, 11);case f:return r ? $(1, M) : $(0, M + 1);case o:var D = this.$locale().weekStart || 0; var v = (y < D ? y + 7 : y) - D;return $(r ? m - v : m + (6 - v), M);case a:case d:return l(`${g}Hours`, 0);case u:return l(`${g}Minutes`, 1);case s:return l(`${g}Seconds`, 2);case i:return l(`${g}Milliseconds`, 3);default:return this.clone();
+ }
+ }, m.endOf = function (t) {
+ return this.startOf(t, !1);
+ }, m.$set = function (t, e) {
+ let n; const o = O.p(t); const h = `set${this.$u ? 'UTC' : ''}`; const $ = (n = {}, n[a] = `${h}Date`, n[d] = `${h}Date`, n[f] = `${h}Month`, n[c] = `${h}FullYear`, n[u] = `${h}Hours`, n[s] = `${h}Minutes`, n[i] = `${h}Seconds`, n[r] = `${h}Milliseconds`, n)[o]; const l = o === a ? this.$D + (e - this.$W) : e;if (o === f || o === c) {
+ const y = this.clone().set(d, 1);y.$d[$](l), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
+ } else $ && this.$d[$](l);return this.init(), this;
+ }, m.set = function (t, e) {
+ return this.clone().$set(t, e);
+ }, m.get = function (t) {
+ return this[O.p(t)]();
+ }, m.add = function (r, h) {
+ let d; const $ = this;r = Number(r);const l = O.p(h); const y = function (t) {
+ const e = w($);return O.w(e.date(e.date() + Math.round(t * r)), $);
+ };if (l === f) return this.set(f, this.$M + r);if (l === c) return this.set(c, this.$y + r);if (l === a) return y(1);if (l === o) return y(7);const M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[l] || 1; const m = this.$d.getTime() + r * M;return O.w(m, this);
+ }, m.subtract = function (t, e) {
+ return this.add(-1 * t, e);
+ }, m.format = function (t) {
+ const e = this; const n = this.$locale();if (!this.isValid()) return n.invalidDate || $;const r = t || 'YYYY-MM-DDTHH:mm:ssZ'; const i = O.z(this); const s = this.$H; const u = this.$m; const a = this.$M; const o = n.weekdays; const f = n.months; const h = function (t, n, i, s) {
+ return t && (t[n] || t(e, r)) || i[n].substr(0, s);
+ }; const c = function (t) {
+ return O.s(s % 12 || 12, t, '0');
+ }; const d = n.meridiem || function (t, _e, n) {
+ const r = t < 12 ? 'AM' : 'PM';return n ? r.toLowerCase() : r;
+ }; const l = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a + 1, MM: O.s(a + 1, 2, '0'), MMM: h(n.monthsShort, a, f, 3), MMMM: h(f, a), D: this.$D, DD: O.s(this.$D, 2, '0'), d: String(this.$W), dd: h(n.weekdaysMin, this.$W, o, 2), ddd: h(n.weekdaysShort, this.$W, o, 3), dddd: o[this.$W], H: String(s), HH: O.s(s, 2, '0'), h: c(1), hh: c(2), a: d(s, u, !0), A: d(s, u, !1), m: String(u), mm: O.s(u, 2, '0'), s: String(this.$s), ss: O.s(this.$s, 2, '0'), SSS: O.s(this.$ms, 3, '0'), Z: i };return r.replace(y, ((t, e) => e || l[t] || i.replace(':', '')));
+ }, m.utcOffset = function () {
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
+ }, m.diff = function (r, d, $) {
+ let l; const y = O.p(d); const M = w(r); const m = (M.utcOffset() - this.utcOffset()) * e; const g = this - M; let D = O.m(this, M);return D = (l = {}, l[c] = D / 12, l[f] = D, l[h] = D / 3, l[o] = (g - m) / 6048e5, l[a] = (g - m) / 864e5, l[u] = g / n, l[s] = g / e, l[i] = g / t, l)[y] || g, $ ? D : O.a(D);
+ }, m.daysInMonth = function () {
+ return this.endOf(f).$D;
+ }, m.$locale = function () {
+ return v[this.$L];
+ }, m.locale = function (t, e) {
+ if (!t) return this.$L;const n = this.clone(); const r = S(t, e, !0);return r && (n.$L = r), n;
+ }, m.clone = function () {
+ return O.w(this.$d, this);
+ }, m.toDate = function () {
+ return new Date(this.valueOf());
+ }, m.toJSON = function () {
+ return this.isValid() ? this.toISOString() : null;
+ }, m.toISOString = function () {
+ return this.$d.toISOString();
+ }, m.toString = function () {
+ return this.$d.toUTCString();
+ }, M;
+ }()); const b = _.prototype;return w.prototype = b, [['$ms', r], ['$s', i], ['$m', s], ['$H', u], ['$W', a], ['$M', f], ['$y', c], ['$D', d]].forEach(((t) => {
+ b[t[1]] = function (e) {
+ return this.$g(e, t[0], t[1]);
+ };
+ })), w.extend = function (t, e) {
+ return t.$i || (t(e, _, w), t.$i = !0), w;
+ }, w.locale = S, w.isDayjs = p, w.unix = function (t) {
+ return w(1e3 * t);
+ }, w.en = v[D], w.Ls = v, w.p = {}, w;
+})));
diff --git a/utils/index.js b/utils/index.js
index 1d32357..e492a39 100644
--- a/utils/index.js
+++ b/utils/index.js
@@ -45,8 +45,8 @@ export function getConfigByEnv() {
switch (envVersion) {
// 开发版
case 'develop':
- api = "http://localhost:8000"
- // api = "http://127.0.0.1:4523/m1/4143821-0-default"
+ // api = "http://localhost:8000"
+ api = "http://127.0.0.1:4523/m1/4143821-0-default"
break;
// 体验版
case 'trial':