1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8331e5e6"],{"0c9b":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"el-fade-in"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.toTopShow,expression:"toTopShow"}],staticClass:"page-up",on:{click:t.scrollToTop}},[e("van-icon",{staticStyle:{margin:"10%"},attrs:{name:"back-top",color:"#f9fafb",size:"2rem"}})],1)])},r=[],a={name:"pageup",data:function(){return{toTopShow:!0}},created:function(){},mounted:function(){this.$nextTick((function(){window.addEventListener("scroll",this.handleScroll,!0)}))},destroyed:function(){window.removeEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){this.scrollTop=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,this.scrollTop>0?this.toTopShow=!0:this.toTopShow=!1},scrollToTop:function(){var t=null,e=this;cancelAnimationFrame(t),t=requestAnimationFrame((function n(){e.scrollTop>1e3||e.scrollTop>1e3&&e.scrollTop<=5e3||e.scrollTop>200&&e.scrollTop<=1e3||e.scrollTop>50&&e.scrollTop<=200||e.scrollTop>0&&e.scrollTop<=50?(e.scrollTop-=0,document.documentElement.scrollTop=0,window.pageYOffset=0,document.body.scrollTop=0,t=requestAnimationFrame(n)):(cancelAnimationFrame(t),e.toTopShow=!1)}))}}},s=a,o=(n("9d9b"),n("2877")),l=Object(o["a"])(s,i,r,!1,null,"03d30358",null);e["a"]=l.exports},3658:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s}));var i=n("be40");function r(){return Object(i["a"])({url:"statis/comment",method:"get"})}function a(){return Object(i["a"])({url:"statis/order",method:"get"})}function s(){return Object(i["a"])({url:"statis/repair",method:"get"})}},4662:function(t,e,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("09fe"),n("4d75"),n("e3b3"),n("8270"),n("786d"),n("504b")},"9d9b":function(t,e,n){"use strict";n("daa2")},b574:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"version",(function(){return f["cb"]})),n.d(i,"dependencies",(function(){return f["l"]})),n.d(i,"PRIORITY",(function(){return f["g"]})),n.d(i,"init",(function(){return f["B"]})),n.d(i,"connect",(function(){return f["j"]})),n.d(i,"disconnect",(function(){return f["n"]})),n.d(i,"disConnect",(function(){return f["m"]})),n.d(i,"dispose",(function(){return f["o"]})),n.d(i,"getInstanceByDom",(function(){return f["w"]})),n.d(i,"getInstanceById",(function(){return f["x"]})),n.d(i,"registerTheme",(function(){return f["R"]})),n.d(i,"registerPreprocessor",(function(){return f["P"]})),n.d(i,"registerProcessor",(function(){return f["Q"]})),n.d(i,"registerPostInit",(function(){return f["N"]})),n.d(i,"registerPostUpdate",(function(){return f["O"]})),n.d(i,"registerUpdateLifecycle",(function(){return f["T"]})),n.d(i,"registerAction",(function(){return f["H"]})),n.d(i,"registerCoordinateSystem",(function(){return f["I"]})),n.d(i,"getCoordinateSystemDimensions",(function(){return f["v"]})),n.d(i,"registerLocale",(function(){return f["L"]})),n.d(i,"registerLayout",(function(){return f["J"]})),n.d(i,"registerVisual",(function(){return f["U"]})),n.d(i,"registerLoading",(function(){return f["K"]})),n.d(i,"setCanvasCreator",(function(){return f["V"]})),n.d(i,"registerMap",(function(){return f["M"]})),n.d(i,"getMap",(function(){return f["y"]})),n.d(i,"registerTransform",(function(){return f["S"]})),n.d(i,"dataTool",(function(){return f["k"]})),n.d(i,"zrender",(function(){return f["eb"]})),n.d(i,"matrix",(function(){return f["D"]})),n.d(i,"vector",(function(){return f["bb"]})),n.d(i,"zrUtil",(function(){return f["db"]})),n.d(i,"color",(function(){return f["i"]})),n.d(i,"throttle",(function(){return f["X"]})),n.d(i,"helper",(function(){return f["A"]})),n.d(i,"use",(function(){return f["Z"]})),n.d(i,"setPlatformAPI",(function(){return f["W"]})),n.d(i,"parseGeoJSON",(function(){return f["F"]})),n.d(i,"parseGeoJson",(function(){return f["G"]})),n.d(i,"number",(function(){return f["E"]})),n.d(i,"time",(function(){return f["Y"]})),n.d(i,"graphic",(function(){return f["z"]})),n.d(i,"format",(function(){return f["u"]})),n.d(i,"util",(function(){return f["ab"]})),n.d(i,"env",(function(){return f["p"]})),n.d(i,"List",(function(){return f["e"]})),n.d(i,"Model",(function(){return f["f"]})),n.d(i,"Axis",(function(){return f["a"]})),n.d(i,"ComponentModel",(function(){return f["c"]})),n.d(i,"ComponentView",(function(){return f["d"]})),n.d(i,"SeriesModel",(function(){return f["h"]})),n.d(i,"ChartView",(function(){return f["b"]})),n.d(i,"innerDrawElementOnCanvas",(function(){return f["C"]})),n.d(i,"extendComponentModel",(function(){return f["r"]})),n.d(i,"extendComponentView",(function(){return f["s"]})),n.d(i,"extendSeriesModel",(function(){return f["t"]})),n.d(i,"extendChartView",(function(){return f["q"]}));var r=function(){var t=this,e=t._self._c;return e("div",[t._m(0),e("div",{staticClass:"bg-white w-11/12 px-4 py-6 mx-auto shadow rounded relative -top-20"},[e("div",{staticClass:"border-b pb-4 flex justify-between items-center"},[e("div",{staticClass:"flex items-center"},[e("van-icon",{attrs:{size:"20",name:"bar-chart-o"}}),e("span",{staticClass:"pl-1"},[t._v("工单数统计")])],1),e("div",[t._v("今日工单:"+t._s(t.statisOrder.day_num))])]),e("div",{staticStyle:{width:"100%",height:"17rem"},attrs:{id:"main"}}),e("div",{staticClass:"flex justify-between items-center"},[e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/orders",query:{tabIndex:0}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"rgb(84 112 198)"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisOrder.confirm,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs",staticStyle:{color:"rgb(84 112 198)"}},[t._v("待确认")])]),e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/orders",query:{tabIndex:1}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"rgb(159 224 128)"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisOrder.repairing,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs",staticStyle:{color:"rgb(159 224 128)"}},[t._v("处理中")])]),e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/orders",query:{tabIndex:2}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"rgb(250 200 88)"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisOrder.repaired,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs",staticStyle:{color:"rgb(250 200 88)"}},[t._v("已完成")])])],1),e("div",{staticClass:"flex items-center justify-between text-center border mt-4"},[e("router-link",{staticClass:"w-1/2 py-4 items-center flex justify-center",attrs:{to:{path:"/orders",query:{listType:1}}}},[e("span",[t._v("今日工单:")]),e("span",{staticClass:"font-bold text-xl"},[t._v(t._s(t.statisOrder.day_num))])]),e("router-link",{staticClass:"w-1/2 py-4 border-l items-center flex justify-center",attrs:{to:{path:"/orders",query:{listType:2}}}},[e("span",[t._v("今日回访:")]),e("span",{staticClass:"font-bold text-xl"},[t._v(t._s(t.statisOrder.visit_num))])])],1),e("div",{staticClass:"flex justify-between items-center mt-5"},[t._m(1),e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/repairs",query:{tabIndex:1}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"#1989fa"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisRepair.state0,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs"},[t._v("待审核")])]),e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/repairs",query:{tabIndex:2}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"#07c160"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisRepair.state1,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs"},[t._v("已通过")])]),e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/repairs",query:{tabIndex:3}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"#ee0a24"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisRepair.state2,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs"},[t._v("未通过")])])],1)]),e("van-empty",{directives:[{name:"show",rawName:"v-show",value:t.showEmpty,expression:"showEmpty"}],attrs:{description:"暂无订单"}}),e("van-list",{staticClass:"mt-4",attrs:{finished:t.finished,error:t.error,"error-text":"请求失败,点击重新加载","finished-text":""},on:{"update:error":function(e){t.error=e},load:t.loadOrderList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.orderList,(function(n,i){return e("div",{key:i,staticClass:"bg-white mb-4 w-11/12 p-4 mx-auto text-sm shadow rounded relative -top-16"},[e("div",{staticClass:"pb-2 flex items-center justify-between border-b mb-2"},[e("span",[e("span",{staticClass:"font-bold"},[t._v("工单编号:")]),t._v(t._s(n.order_no))]),e("span",{class:"text-"+n.state_color+" px-2 py-1 rounded-sm",staticStyle:{width:"3.8rem",height:"100%","text-align":"center",border:"1px solid","border-radius":"5%"}},[t._v(t._s(n.state_name))])]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修时间:")]),t._v(t._s(n.created_at))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修姓名:")]),t._v(t._s(n.link_name))]),e("div",{staticClass:"pb-1 flex items-center"},[e("span",{staticClass:"font-bold"},[t._v("联系电话:")]),e("span",{staticClass:"flex items-center"},[e("span",{staticClass:"pr-2"},[t._v(t._s(n.link_phone))]),e("a",{staticClass:"flex",attrs:{href:"tel:"+n.link_phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)])]),e("div",{staticClass:"pb-1 text-red-600"},[e("span",{staticClass:"font-bold"},[t._v("是否保修:")]),e("span",[t._v(t._s(n.warranty_period))])]),n.supervisor?e("div",{staticClass:"pb-1 text-yellow-600"},[e("span",{staticClass:"font-bold"},[t._v("项目监理:")]),t._v(t._s(n.supervisor))]):t._e(),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修地址:")]),t._v(t._s(n.address))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障类型:")]),t._v(t._s(n.type))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障描述:")]),t._v(t._s(n.content))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障图片:")])]),e("div",{staticClass:"pb-1"},[t._l(n.pics,(function(i,r){return["mp4"==i.split("/").pop().split(".").pop()?e("div",{key:r,staticClass:"overflow-hidden flex justify-center items-center",staticStyle:{width:"5rem",height:"5rem",display:"inline-block"}},[e("video",{staticClass:"min-w-full min-h-full",attrs:{src:i},on:{click:function(e){return t.videoPlay(i)}}},[t._v(" 您的浏览器不支持视频播放 ")])]):e("van-image",{key:r,staticClass:"mr-1 border border-gray-100",attrs:{src:i,width:"5rem",height:"5rem"},on:{click:function(e){return t.preview(n.pics,r)}}})]}))],2),e("div",{staticClass:"text-right"},[n.auth.sup_confirm?e("van-button",{staticClass:"ml-2",attrs:{loading:t.loadingConfirm,type:"primary",size:"small"},on:{click:function(e){return t.handleConfirm(n.id)}}},[t._v("立即确认")]):t._e(),n.auth.repairing?e("van-button",{staticClass:"ml-2",attrs:{type:"info",size:"small",to:"/orders/"+n.id+"/schedule"}},[t._v("提交上门时间")]):t._e(),n.auth.feedback?e("van-button",{staticClass:"ml-2",attrs:{type:"warning",size:"small",to:"/orders/"+n.id+"/repair"}},[t._v("维修反馈")]):t._e(),n.auth.repaired?e("van-button",{staticClass:"ml-2",attrs:{loading:t.loadingFinish,type:"danger",size:"small"},on:{click:function(e){return t.handleFinish(n.id)}}},[t._v("提交业主")]):t._e(),e("van-button",{staticClass:"ml-2",attrs:{plain:"",type:"info",to:"/orders/"+n.id+"/info",size:"small"}},[t._v("报修进度")])],1)])})),0),e("ScrollTop"),t.videoShow?e("van-overlay",{staticClass:"flex justify-center items-center",attrs:{show:t.videoShow,"z-index":"1000"}},[e("video",{staticClass:"max-w-full max-h-full",attrs:{src:t.videoUrl,controls:""}},[t._v(" 您的浏览器不支持视频播放 ")]),e("i",{staticClass:"van-icon van-icon-clear van-image-preview__close-icon van-image-preview__close-icon--top-right",attrs:{role:"button"},on:{click:function(e){t.videoShow=!1}}})]):t._e()],1)},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"h-48 bg-green-500",staticStyle:{background:"url(https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic145.nipic.com%2Ffile%2F20171031%2F25756751_095042580000_2.jpg&refer=http%3A%2F%2Fpic145.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1634278945&t=32707a611d1fd575816cc8bd218b1702) 100% no-repeat"}},[e("div",{staticClass:"text-white pt-12 w-11/12 mx-auto font-bold text-center"},[e("p",{staticClass:"text-xl"},[t._v("志远售后平台")]),e("p",[t._v("{ 工程队长端 }")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex flex-col text-center font-bold"},[e("div",{staticClass:"pl-1"},[t._v("维修")]),e("div",{staticClass:"pl-1"},[t._v("审核")])])}],s=(n("4662"),n("28a2")),o=(n("14d9"),n("e902")),l=n("3658"),c=n("ec1b"),u=n.n(c),d=n("22b4"),f=n("aa74"),p=n("1be7"),h=n("2da7"),m=n("ff32"),v=n("49bb"),b=n("ee29"),x=n("f95e"),g=n("0c9b");d["a"]([h["a"],m["a"],v["a"],x["a"],b["a"]]);var w={name:"Home",components:{countTo:u.a,echarts:i,ScrollTop:g["a"]},data:function(){return{showEmpty:!1,loadingFinish:!1,loadingConfirm:!1,loading:!1,startVal:0,duration:3e3,orderList:[],error:!1,page:1,statisOrder:{},finished:!1,videoShow:!1,videoUrl:"",statisRepair:{all:0,state0:0,state1:0,state2:0}}},created:function(){this.loadOrderStatis(),this.loadRepairStatis(),console.log("created")},activated:function(){console.log("activated")},deactivated:function(){console.log("deactivated")},beforeRouteEnter:function(t,e,n){n((function(t){t.$store.commit("keepAlive/add","Home"),console.log(t.$store.state.keepAlive.list)}))},beforeRouteLeave:function(t,e,n){console.log(t.name),n()},methods:{loadRepairStatis:function(){var t=this;Object(l["c"])().then((function(e){t.statisRepair=e.data}))},videoPlay:function(t){this.videoUrl=t,this.videoShow=!0},preview:function(t,e){Object(s["a"])({images:t,startPosition:e,closeable:!0})},loadOrderStatis:function(){var t=this;Object(l["b"])().then((function(e){t.statisOrder=e.data,t.getechart()}))},handleConfirm:function(t){var e=this;this.loadingConfirm=!0,Object(o["a"])(t).then((function(t){e.$toast("操作成功"),e.refresh(),e.loadingConfirm=!1})).catch((function(){e.loadingConfirm=!1}))},refresh:function(){return this.finished=!1,this.loading=!1,this.error=!1,this.page=1,this.orderList=[],this.loadOrderList(),!0},handleFinish:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认提交维修信息给业主?"}).then((function(){e.loadingFinish=!0,Object(o["b"])(t).then((function(t){e.$toast("操作成功"),e.refresh(),e.loadingFinish=!1})).catch((function(){e.loadingFinish=!1}))})).catch((function(t){console.log(t)}))},getechart:function(){var t,e=document.getElementById("main"),n=p["l"](e);t={title:{text:"",subtext:"",left:"center"},tooltip:{trigger:"item"},legend:{top:"5%",left:"center",padding:3,itemWidth:15,itemGap:12,itemHeight:12},series:[{name:"数据",type:"pie",radius:"50%",data:[{value:this.statisOrder.confirm,name:"待确认"},{value:this.statisOrder.repairing,name:"处理中"},{value:this.statisOrder.repaired,name:"已完成"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t&&n.setOption(t)},loadOrderList:function(){var t=this;this.loading=!0,Object(o["d"])({tab_index:-1,page:this.page++}).then((function(e){for(var n in t.loading=!1,e.data.length<t.$store.getters.setting.page_size&&(t.finished=!0),e.data)t.orderList.push(e.data[n]);0===t.orderList.length?t.showEmpty=!0:t.showEmpty=!1})).catch((function(){t.loading=!1,t.error=!0}))}}},y=w,_=n("2877"),C=Object(_["a"])(y,r,a,!1,null,null,null);e["default"]=C.exports},daa2:function(t,e,n){},e902:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"g",(function(){return o})),n.d(e,"f",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u}));var i=n("be40");function r(t){return Object(i["a"])({url:"orders",method:"get",params:t})}function a(t){return Object(i["a"])({url:"orders/".concat(t),method:"get"})}function s(t){return Object(i["a"])({url:"orders/".concat(t,"/confirm"),method:"post"})}function o(t,e){return Object(i["a"])({url:"orders/".concat(t,"/schedule"),method:"post",data:e})}function l(t,e){return Object(i["a"])({url:"orders/".concat(t,"/repair"),method:"post",data:e})}function c(t){return Object(i["a"])({url:"orders/".concat(t,"/finish"),method:"post"})}function u(t){return Object(i["a"])({url:"repairs",method:"get",params:t})}},ec1b:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,n){var i=n(4)(n(1),n(5),null,null);t.exports=i.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(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,n,i){return n*(1-Math.pow(2,-10*t/i))*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,i.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,i.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,i.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,i.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,i.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("."),n=e[0],i=e.length>1?this.decimal+e[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(n);)n=n.replace(r,"$1"+this.separator+"$2");return this.prefix+n+i+this.suffix}},destroyed:function(){(0,i.cancelAnimationFrame)(this.rAF)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",r.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=0,r="webkit moz ms o".split(" "),a=void 0,s=void 0;if("undefined"==typeof window)e.requestAnimationFrame=a=function(){},e.cancelAnimationFrame=s=function(){};else{e.requestAnimationFrame=a=window.requestAnimationFrame,e.cancelAnimationFrame=s=window.cancelAnimationFrame;for(var o=void 0,l=0;l<r.length&&(!a||!s);l++)o=r[l],e.requestAnimationFrame=a=a||window[o+"RequestAnimationFrame"],e.cancelAnimationFrame=s=s||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];a&&s||(e.requestAnimationFrame=a=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-i)),r=window.setTimeout((function(){t(e+n)}),n);return i=e+n,r},e.cancelAnimationFrame=s=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=a,e.cancelAnimationFrame=s},function(t,e){t.exports=function(t,e,n,i){var r,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(r=t,a=t.default);var o="function"==typeof a?a.options:a;if(e&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns),n&&(o._scopeId=n),i){var l=Object.create(o.computed||null);Object.keys(i).forEach((function(t){var e=i[t];l[t]=function(){return e}})),o.computed=l}return{esModule:r,exports:a,options:o}}},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:[]}}])}))}}]);
|