1234567 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41c55dfb"],{"0a49":function(t,o,e){var s=e("9b43"),i=e("626a"),n=e("4bf8"),a=e("9def"),r=e("cd1c");t.exports=function(t,o){var e=1==t,l=2==t,c=3==t,p=4==t,u=6==t,d=5==t||u,h=o||r;return function(o,r,v){for(var f,m,g=n(o),w=i(g),_=s(r,v,3),y=a(w.length),b=0,T=e?h(o,y):l?h(o,0):void 0;y>b;b++)if((d||b in w)&&(f=w[b],m=_(f,b,g),t))if(e)T[b]=m;else if(m)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:T.push(f)}else if(p)return!1;return u?-1:c||p?p:T}}},1169:function(t,o,e){var s=e("2d95");t.exports=Array.isArray||function(t){return"Array"==s(t)}},"456d":function(t,o,e){var s=e("4bf8"),i=e("0d58");e("5eda")("keys",(function(){return function(t){return i(s(t))}}))},5727:function(t,o,e){"use strict";var s=e("cce9"),i=e.n(s);i.a},"5eda":function(t,o,e){var s=e("5ca1"),i=e("8378"),n=e("79e5");t.exports=function(t,o){var e=(i.Object||{})[t]||Object[t],a={};a[t]=o(e),s(s.S+s.F*n((function(){e(1)})),"Object",a)}},7514:function(t,o,e){"use strict";var s=e("5ca1"),i=e("0a49")(5),n="find",a=!0;n in[]&&Array(1)[n]((function(){a=!1})),s(s.P+s.F*a,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e("9c6c")(n)},"8d6b":function(t,o,e){"use strict";var s=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{ref:"mescroll",staticClass:"mescroll"},[e("div",[t._t("default")],2)])},i=[],n=e("f868"),a=e.n(n),r=(e("f2fd"),{name:"MeScrollVue",data:function(){return{mescroll:null,lastScrollTop:0,lastBounce:null}},props:{up:Object,down:Object},mounted:function(){this.mescroll=new a.a(this.$refs.mescroll,{up:this.up,down:this.down}),this.$emit("init",this.mescroll)},methods:{beforeRouteEnter:function(){var t=this;this.mescroll&&(this.lastScrollTop&&(this.mescroll.setScrollTop(this.lastScrollTop),setTimeout((function(){t.mescroll.setTopBtnFadeDuration(0)}),16)),null!=this.lastBounce&&this.mescroll.setBounce(this.lastBounce))},beforeRouteLeave:function(){this.mescroll&&(this.lastScrollTop=this.mescroll.getScrollTop(),this.mescroll.hideTopBtn(0),this.lastBounce=this.mescroll.optUp.isBounce,this.mescroll.setBounce(!0))}}}),l=r,c=e("2877"),p=Object(c["a"])(l,s,i,!1,null,null,null);o["a"]=p.exports},ac6a:function(t,o,e){for(var s=e("cadf"),i=e("0d58"),n=e("2aba"),a=e("7726"),r=e("32e9"),l=e("84f2"),c=e("2b4c"),p=c("iterator"),u=c("toStringTag"),d=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(h),f=0;f<v.length;f++){var m,g=v[f],w=h[g],_=a[g],y=_&&_.prototype;if(y&&(y[p]||r(y,p,d),y[u]||r(y,u,g),l[g]=d,w))for(m in s)y[m]||n(y,m,s[m],!0)}},c308:function(t,o,e){"use strict";e.r(o);var s=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"manage"},[e("div",{staticClass:"areaIn"},[e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tabType,expression:"tabType==0"}],staticClass:"area",on:{click:t.partArea}},[e("span",[t._v(t._s(t.areaname))]),e("i",{staticClass:"iconfont"},[t._v("")])])]),e("div",{staticClass:"manageIn"},[e("div",{staticClass:"tab flexA",class:{noTop:0!=this.tabType}},[e("p",{staticClass:"flexCC",on:{click:function(o){return t.choice(0)}}},[e("span",[t._v("全部管理")]),e("i",{directives:[{name:"show",rawName:"v-show",value:0==t.tabType,expression:"tabType == 0"}]})]),e("p",{staticClass:"flexCC",on:{click:function(o){return t.choice(1)}}},[e("span",[t._v("用户管理")]),e("i",{directives:[{name:"show",rawName:"v-show",value:1==t.tabType,expression:"tabType == 1"}]})]),e("p",{staticClass:"flexCC",on:{click:function(o){return t.choice(2)}}},[e("span",[t._v("车辆管理")]),e("i",{directives:[{name:"show",rawName:"v-show",value:2==t.tabType,expression:"tabType == 2"}]})]),e("p",{staticClass:"flexCC",on:{click:function(o){return t.choice(3)}}},[e("span",[t._v("订单管理")]),e("i",{directives:[{name:"show",rawName:"v-show",value:3==t.tabType,expression:"tabType == 3"}]})])]),0==t.tabType?e("ul",{staticClass:"all",style:{height:t.app_height}},[e("li",{on:{click:function(o){return t.skipPage(1)}}},[t._m(0),e("ul",[e("li",[e("span",[t._v("总用户数:"+t._s(t.userCount.totalUser))]),e("span",[t._v("\n 今日新增:\n "),e("span",{staticClass:"teal"},[t._v(t._s(t.userCount.todayAddUser))])])]),e("li",[e("span",[t._v("有效户数:"+t._s(t.userCount.cardUser))]),e("span",[t._v("\n 今日活跃:\n "),e("span",{staticClass:"yellow"},[t._v(t._s(t.userCount.todayActiveUser))])])]),e("li",[e("span",[t._v("押金户数:"+t._s(t.userCount.depositUser))])])])]),e("li",{on:{click:function(o){return t.skipPage(2)}}},[t._m(1),e("ul",[e("li",[e("span",[t._v("总车辆数:"+t._s(t.bikeCount.total_bikes))]),e("span",[t._v("\n 今日使用:\n "),e("span",{staticClass:"teal"},[t._v(t._s(t.bikeCount.today_use_total_bikes))])])]),e("li",[e("span",[t._v("上线车辆:"+t._s(t.bikeCount.put_total_bikes))]),e("span",[t._v("\n 在线车辆:\n "),e("span",{staticClass:"yellow"},[t._v(t._s(t.bikeCount.line_total_bikes))])])]),e("li",[e("span",[t._v("故障车辆:"+t._s(t.bikeCount.trouble_total_bikes))]),e("span",[t._v("\n 低电量:\n "),e("span",{staticClass:"yellow"},[t._v(t._s(t.bikeCount.low_battery_total_bikes))])])])])]),e("li",{on:{click:function(o){return t.skipPage(3)}}},[t._m(2),e("ul",[e("li",[e("span",[t._v("订单总数:"+t._s(t.orderCount.order_total))]),e("span",[t._v("\n 今日新增:\n "),e("span",{staticClass:"yellow"},[t._v(t._s(t.orderCount.today_add_order))])])]),e("li",[e("span",[t._v("骑行中:"+t._s(t.orderCount.riding_order))])])])]),e("li",[t._m(3),e("ul",[e("li",[e("span",[t._v("总收益:"+t._s(t.totalCount.totalProfit))]),e("span",[t._v("\n 今日收益:\n "),e("span",{staticClass:"teal"},[t._v(t._s(t.totalCount.todayProfit))])])]),e("li",[e("span",[t._v("总押金:"+t._s(t.totalCount.depositTotal))]),e("span",[t._v("\n 今日押金:\n "),e("span",{staticClass:"teal"},[t._v(t._s(t.totalCount.depositToday))])])]),e("li",[e("span",[t._v("本月收益:"+t._s(t.totalCount.monthProfit))])])])])]):t._e(),0!=t.tabType?e("div",{staticClass:"scroll",staticStyle:{"touch-action":"none","padding-top":"1.2rem","padding-bottom":"1rem","box-sizing":"border-box"},style:{height:t.app_height}},[e("mescroll-vue",{ref:"mescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[e("div",{attrs:{id:"demo"}},[1==t.tabType?e("div",{staticClass:"userCon"},[e("div",{staticClass:"commen"},[e("div",{staticClass:"flexA",on:{click:t.partArea}},[e("span",[t._v(t._s(t.userArea))]),e("i",{staticClass:"iconfont"},[t._v("")])]),e("div",{staticClass:"flexA"},[e("div",[e("p",[t._v(t._s(t.userCount.totalUser))]),e("p",[t._v("总用户数")])]),e("div",[e("p",[t._v(t._s(t.userCount.depositUser))]),e("p",[t._v("押金用户")])]),e("div",[e("p",[t._v(t._s(t.userCount.todayAddUser))]),e("p",[t._v("新增用户")])])])]),e("div",{staticClass:"search"},[e("i",{staticClass:"iconfont"},[t._v("")]),e("input",{attrs:{type:"text"}})]),e("ul",{staticClass:"commenList"},t._l(t.userList,(function(o,s){return e("li",{key:s,on:{click:function(o){return t.skipUser(o,s)}}},[e("div",[e("p",[t._v("手机号:"+t._s(o.mobile))]),e("p",[e("span",[t._v("姓名:"+t._s(o.username))]),e("span",[t._v("余额:"+t._s(o.wallet_money)+"元")])]),e("p",[t._v("校区:"+t._s(o.area))])]),e("div",{staticClass:"state",class:[0==o.is_deposit?"unpaid":"riding"]},[t._v(t._s(0==o.is_deposit?"非押金用户":"押金用户"))])])})),0)]):t._e(),2==t.tabType?e("div",{staticClass:"carCon"},[e("div",[e("div",{staticClass:"car"},[e("div",{staticClass:"flexA",on:{click:t.partArea}},[e("span",[t._v(t._s(t.bikeArea))]),e("i",{staticClass:"iconfont"},[t._v("")])]),e("div",{staticClass:"flexA"},[e("div",[e("p",[t._v(t._s(t.bikeCount.total_bikes))]),e("p",[t._v("总车辆数")])]),e("div",[e("p",[t._v(t._s(t.bikeCount.put_total_bikes))]),e("p",[t._v("上线车辆")])]),e("div",[e("p",[t._v(t._s(t.bikeCount.line_total_bikes))]),e("p",[t._v("在线车辆")])])])]),e("div",{staticClass:"flexA second"},[e("div",[e("p",[t._v(t._s(t.bikeCount.trouble_total_bikes))]),e("p",[t._v("故障车辆")])]),e("div",[e("p",[t._v(t._s(t.bikeCount.today_use_total_bikes))]),e("p",[t._v("今日使用")])]),e("div",[e("p",[t._v(t._s(t.bikeCount.low_battery_total_bikes))]),e("p",[t._v("低电量")])]),e("div",[e("p",[t._v(t._s(t.bikeCount.riding_total_bikes))]),e("p",[t._v("骑行中")])]),e("div",[e("p",[t._v(t._s(t.bikeCount.not_riding_total_bikes))]),e("p",[t._v("未使用")])])])]),e("div",{staticClass:"search"},[e("i",{staticClass:"iconfont"},[t._v("")]),e("input",{attrs:{type:"text"}})]),e("ul",{staticStyle:{"font-size":"42px"}},t._l(t.bikeList,(function(o,s){return e("li",{key:s,staticClass:"flexB",on:{click:function(o){return t.skipBike(o,s)}}},[e("div",[e("p",[e("span",[t._v(t._s(o.not_use_time))]),e("span",{staticClass:"text"},[t._v(t._s(o.location))])]),e("p",[e("span",[t._v(t._s(o.bike_no))]),e("span",{staticClass:"orange"},[t._v("电量"+t._s(o.battery_power)+"%")]),e("span",{staticClass:"orange"},[t._v(t._s(0==o.is_riding?"未骑行":"骑行中"))])])]),e("div",[e("div",{staticClass:"fault",class:[0==o.is_link?"unpaid":"riding"]},[t._v(t._s(0==o.is_link?"故障下线":"上线"))]),e("i",{staticClass:"iconfont"},[t._v("")])])])})),0)]):t._e(),3==t.tabType?e("div",{staticClass:"orderCon"},[e("div",{staticClass:"commen"},[e("div",{staticClass:"flexA",on:{click:t.partArea}},[e("span",[t._v(t._s(t.orderArea))]),e("i",{staticClass:"iconfont"},[t._v("")])]),e("div",{staticClass:"flexA"},[e("div",[e("p",[t._v(t._s(t.orderCount.today_add_order))]),e("p",[t._v("今日订单")])]),e("div",[e("p",[t._v(t._s(t.totalCount.todayProfit))]),e("p",[t._v("今日总收入")])]),e("div",[e("p",[t._v(t._s(t.orderCount.riding_order))]),e("p",[t._v("进行中订单")])])])]),e("div",{staticClass:"search"},[e("i",{staticClass:"iconfont"},[t._v("")]),e("input",{attrs:{type:"text"}})]),e("ul",{staticClass:"commenList"},t._l(t.orderList,(function(o,s){return e("li",{key:s,on:{click:function(o){return t.orderDetails(o,s)}}},[e("div",[e("p",[t._v("车辆编号:"+t._s(o.bike_no))]),e("p",[t._v("用户:"+t._s(o.nickname))]),e("p",[e("span",[t._v("手机号:"+t._s(o.mobile))])]),e("p",[t._v("时间:"+t._s(o.start_use_bike_time))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:"骑行中"==o.orders_status,expression:"item.orders_status=='骑行中'"}],staticClass:"state riding"},[t._v(t._s(o.orders_status))]),e("div",{directives:[{name:"show",rawName:"v-show",value:"订单关闭"==o.orders_status,expression:"item.orders_status=='订单关闭'"}],staticClass:"state close"},[t._v(t._s(o.orders_status))]),e("div",{directives:[{name:"show",rawName:"v-show",value:"已完成"==o.orders_status,expression:"item.orders_status=='已完成'"}],staticClass:"state finish"},[t._v(t._s(o.orders_status))]),e("div",{directives:[{name:"show",rawName:"v-show",value:"待支付"==o.orders_status,expression:"item.orders_status=='待支付'"}],staticClass:"state unpaid"},[t._v(t._s(o.orders_status))]),e("div",{directives:[{name:"show",rawName:"v-show",value:"临时停车"==o.orders_status,expression:"item.orders_status=='临时停车'"}],staticClass:"state temporary"},[t._v(t._s(o.orders_status))])])})),0)]):t._e()])])],1):t._e(),e("mt-popup",{attrs:{position:"bottom"},model:{value:t.popupVisible,callback:function(o){t.popupVisible=o},expression:"popupVisible"}},[e("ul",{staticClass:"popList"},t._l(t.areaList,(function(o,s){return e("li",{key:s,on:{click:function(o){return t.getZone(o,s)}}},[t._v(t._s(o))])})),0)])],1),e("Footer",{attrs:{isBgf:t.isBgf}})],1)},i=[function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",[e("p",[t._v("用")]),e("p",[t._v("户")])])},function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",[e("p",[t._v("车")]),e("p",[t._v("辆")])])},function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",[e("p",[t._v("订")]),e("p",[t._v("单")])])},function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",[e("p",[t._v("收")]),e("p",[t._v("益")])])}],n=(e("ac6a"),e("456d"),e("7514"),e("76a0")),a=e("8d6b"),r={data:function(){return{areaId:"",isBgf:!0,tabType:0,totalCount:[],bikeList:[],bikeCount:{},orderList:[],orderCount:{},userList:[],userCount:{},mescroll:null,mescrollDown:{},mescrollUp:{callback:this.upCallback,use:!0,page:{num:0,size:4},lazyLoad:{use:!0}},areaList:[],areaname:"全部区域",userArea:"全部区域",bikeArea:"全部区域",orderArea:"全部区域",show:!1,columns:[],showLoading:!1,popupVisible:!1,app_height:"".concat(window.screen.availHeight,"px"),init_index:null}},components:{MescrollVue:a["a"]},created:function(){this.getArea(),this.getInfo()},methods:{skipPage:function(t){switch(t){case 1:this.tabType=1;break;case 2:this.tabType=2;break;case 3:this.tabType=3;break;default:this.tabType=0}},partArea:function(){this.popupVisible=!this.popupVisible},findKey:function(t,o){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t,o){return t===o};return Object.keys(t).find((function(s){return e(t[s],o)}))},getZone:function(t,o){var e=this;n["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"}),this.popupVisible=!1,this.areaId=o;var s="";0==this.tabType?(this.areaname=t.target.innerHTML,0==this.areaId?this.getInfo():(this.getAreaInfo(this.areaId),console.log(this.areaId))):1==this.tabType?(this.userArea=t.target.innerHTML,s="/user/"):2==this.tabType?(this.bikeArea=t.target.innerHTML,s="/bike/"):3==this.tabType&&(this.orderArea=t.target.innerHTML,s="/order/"),0!=this.tabType&&(0==this.areaId?(this.getList1(),console.log("全部"),this.axios.get(config.url.list+s+"list/?page=1").then((function(t){200==t.status&&(n["Indicator"].close(),1==e.tabType?(console.log("选择用户全部区域"),e.userList=t.data.data):2==e.tabType?e.bikeList=t.data.data:3==e.tabType&&(e.orderList=t.data.data))}))):(this.getAreaInfo1(this.areaId),console.log("区域"),this.axios.get(config.url.list+s+"list/?page=1&&put_area_id="+this.areaId).then((function(t){console.log(t),200==t.status&&(n["Indicator"].close(),1==e.tabType?e.userList=t.data.data:2==e.tabType?e.bikeList=t.data.data:3==e.tabType&&(e.orderList=t.data.data))}))))},mescrollInit:function(t){this.mescroll=t},upCallback:function(t,o){var e=this;if(console.log(1111111,t,o),0!=this.tabType){var s="";1==this.tabType?s="/user/":2==this.tabType?s="/bike/":3==this.tabType&&(s="/order/"),n["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"}),""==this.areaId||0==this.areaId?(console.log(t.num),this.axios.get(config.url.list+s+"list/?page="+t.num).then((function(s){if(200==s.status){if(e.getList1(),n["Indicator"].close(),1==e.tabType){console.log(s,"获取全部用户","回调");var i=s.data.data;1===t.num&&(e.userList=[]),e.userList=e.userList.concat(i),console.log(e.userList,1111),e.$nextTick((function(){o.endSuccess(i.length)}))}else if(2==e.tabType){console.log(s,"获取全部车辆","回调");var a=s.data.data;1===t.num&&(e.bikeList=[]),e.bikeList=e.bikeList.concat(a),e.$nextTick((function(){o.endSuccess(a.length)}))}else if(3==e.tabType){console.log(s,"获取全部订单","回调");var r=s.data.data;1===t.num&&(e.orderList=[]),e.orderList=e.orderList.concat(r),e.$nextTick((function(){o.endSuccess(r.length)}))}}else n["Indicator"].close()})).catch((function(t){n["Indicator"].close()}))):(console.log("else"),this.axios.get(config.url.list+s+"list/?page="+t.num+"&&put_area_id="+this.areaId).then((function(s){if(200==s.status){if(e.getAreaInfo(e.areaId),n["Indicator"].close(),1==e.tabType){console.log(s,"获取部分用户信息","回调");var i=s.data.data;1===t.num&&(e.userList=[]),e.userList=e.userList.concat(i),e.$nextTick((function(){o.endSuccess(i.length)}))}else if(2==e.tabType){console.log(s,"获取部分车辆信息","回调");var a=s.data.data;1===t.num&&(e.bikeList=[]),e.bikeList=e.bikeList.concat(a),e.$nextTick((function(){o.endSuccess(a.length)}))}else if(3==e.tabType){console.log(s,"获取部分订单信息","回调");var r=s.data.data;1===t.num&&(e.orderList=[]),e.orderList=e.orderList.concat(r),e.$nextTick((function(){o.endSuccess(r.length)}))}}else n["Indicator"].close()})).catch((function(t){n["Indicator"].close()})))}return!0},choice:function(t){this.tabType=t,this.areaId="",0==this.tabType?this.getInfo():console.log(this.mescroll),null===this.init_index&&(this.init_index=t),this.mescroll&&this.init_index!=t&&(this.userList=this.orderList=this.bikeList=[],this.upCallback(1,this.mescroll)),this.init_index==t&&this.upCallback(1,this.mescroll),0==t?this.areaname="全部区域":1==t?this.userArea="全部区域":2==t?this.bikeArea="全部区域":3==t&&(this.orderArea="全部区域"),this.mescroll},skipBike:function(t,o){sessionStorage.setItem("bike_id",this.bikeList[o].id),sessionStorage.setItem("bike_no",this.bikeList[o].bike_no),sessionStorage.setItem("area_name",this.bikeList[o].area_name),sessionStorage.setItem("is_riding",this.bikeList[o].is_riding),sessionStorage.setItem("is_link",this.bikeList[o].is_link),sessionStorage.setItem("battery_power",this.bikeList[o].battery_power),console.log(this.bikeList),this.$router.push({name:"cardetails",params:{bike_id:this.bikeList[o].id}})},skipUser:function(t,o){sessionStorage.setItem("user_id",this.userList[o].id),this.$router.push({name:"userdetails",params:{user_id:this.userList[o].id}})},orderDetails:function(t,o){sessionStorage.setItem("order_id",this.orderList[o].id),sessionStorage.setItem("uname",this.orderList[o].nickname),this.$router.push({name:"orderdetails",params:{order_id:this.orderList[o].id}})},getArea:function(){var t=this;this.axios.get(config.url.index).then((function(o){if(200==o.status){console.log(o,"获取区域");var e=o.data.area;e[0]="全部区域",t.areaList=e}}))},getInfo:function(){var t=this;this.axios.get(config.url.orderProfitStatistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取总数据"),t.totalCount=o.data)})),this.axios.get(config.url.userStatistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取用户总数"),t.userCount=o.data)})),this.axios.get(config.url.statistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取车辆统计信息"),t.bikeCount=o.data)})),this.axios.get(config.url.orderStatistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取订单总数"),t.orderCount=o.data)}))},getList1:function(){var t=this;0==this.tabType?this.axios.get(config.url.orderProfitStatistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取总数据"),t.totalCount=o.data)})):1==this.tabType?this.axios.get(config.url.userStatistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取用户总数"),t.userCount=o.data)})):2==this.tabType?this.axios.get(config.url.statistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取车辆统计信息"),t.bikeCount=o.data)})):3==this.tabType&&this.axios.get(config.url.orderStatistics).then((function(o){200==o.status&&(n["Indicator"].close(),console.log(o,"获取订单总数"),t.orderCount=o.data)}))},getAreaInfo:function(t){var o=this;this.axios.get(config.url.orderProfitStatistics+"?put_area_id="+t).then((function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域总数据"),o.totalCount=t.data)})),this.axios.get(config.url.userStatistics+"?put_area_id="+t).then((function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域用户总数"),o.userCount=t.data)})),this.axios.get(config.url.statistics+"?put_area_id="+t).then((function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域车辆统计信息"),o.bikeCount=t.data)})),this.axios.get(config.url.orderStatistics+"?put_area_id="+t).then((function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域订单总数"),o.orderCount=t.data)}))},getAreaInfo1:function(t){var o=this;console.log(this.tabType),1==this.tabType?this.axios.get(config.url.userStatistics+"?put_area_id="+t).then((function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域用户总数"),o.userCount=t.data)})):2==this.tabType?this.axios.get(config.url.statistics+"?put_area_id="+t).then((function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域车辆统计信息"),o.bikeCount=t.data)})):3==this.tabType&&this.axios.get(config.url.orderStatistics+"?put_area_id="+t).then((function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域订单总数"),o.orderCount=t.data)}))}}},l=r,c=(e("5727"),e("2877")),p=Object(c["a"])(l,s,i,!1,null,"68db1cb0",null);o["default"]=p.exports},cce9:function(t,o,e){},cd1c:function(t,o,e){var s=e("e853");t.exports=function(t,o){return new(s(t))(o)}},e853:function(t,o,e){var s=e("d3f4"),i=e("1169"),n=e("2b4c")("species");t.exports=function(t){var o;return i(t)&&(o=t.constructor,"function"!=typeof o||o!==Array&&!i(o.prototype)||(o=void 0),s(o)&&(o=o[n],null===o&&(o=void 0))),void 0===o?Array:o}},f2fd:function(t,o,e){},f868:function(t,o,e){var s,i;
- /*!
- * version 1.4.1 MIT
- * 2019-2-1 wenju
- * http://www.mescroll.com
- */(function(n,a){s=a,i="function"===typeof s?s.call(o,e,o,t):s,void 0===i||(t.exports=i)})(0,(function(){var t=function(t,o){var e=this;if(e.version="1.4.0",e.isScrollBody=!t||"body"===t,e.scrollDom=e.isScrollBody?document.body:e.getDomById(t),e.scrollDom){e.options=o||{};var s=navigator.userAgent,i=!!s.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),n="undefined"===typeof window.orientation,a=s.indexOf("Android")>-1||s.indexOf("Adr")>-1;e.os={ios:i,pc:n,android:a},e.isDownScrolling=!1,e.isUpScrolling=!1;var r=e.options.down&&e.options.down.callback;e.initDownScroll(),e.initUpScroll(),setTimeout((function(){e.optDown.use&&e.optDown.auto&&r&&(e.optDown.autoShowLoading?e.triggerDownScroll():e.optDown.callback&&e.optDown.callback(e)),e.optUp.use&&e.optUp.auto&&!e.isUpAutoLoad&&e.triggerUpScroll()}),30)}};return t.prototype.extendDownScroll=function(o){t.extend(o,{use:!0,auto:!0,autoShowLoading:!1,isLock:!1,isBoth:!1,offset:80,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,hardwareClass:"mescroll-hardware",mustToTop:!1,warpId:null,warpClass:"mescroll-downwarp",resetClass:"mescroll-downwarp-reset",textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",htmlContent:'<p class="downwarp-progress"></p><p class="downwarp-tip"></p>',inited:function(t,o){t.downTipDom=o.getElementsByClassName("downwarp-tip")[0],t.downProgressDom=o.getElementsByClassName("downwarp-progress")[0]},inOffset:function(t){t.downTipDom&&(t.downTipDom.innerHTML=t.optDown.textInOffset),t.downProgressDom&&t.downProgressDom.classList.remove("mescroll-rotate")},outOffset:function(t){t.downTipDom&&(t.downTipDom.innerHTML=t.optDown.textOutOffset)},onMoving:function(t,o,e){if(t.downProgressDom){var s=360*o;t.downProgressDom.style.webkitTransform="rotate("+s+"deg)",t.downProgressDom.style.transform="rotate("+s+"deg)"}},beforeLoading:function(t,o){return!1},showLoading:function(t){t.downTipDom&&(t.downTipDom.innerHTML=t.optDown.textLoading),t.downProgressDom&&t.downProgressDom.classList.add("mescroll-rotate")},afterLoading:function(t){return 0},callback:function(t){t.resetUpScroll()}})},t.prototype.extendUpScroll=function(o){var e=this.os.pc;t.extend(o,{use:!0,auto:!0,isLock:!1,isBoth:!1,isBounce:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:100,toTop:{warpId:null,src:null,html:null,offset:1e3,warpClass:"mescroll-totop",showClass:"mescroll-fade-in",hideClass:"mescroll-fade-out",fadeDuration:.5,duration:300,supportTap:!1,btnClick:null},loadFull:{use:!1,delay:500},empty:{warpId:null,icon:null,tip:"暂无相关数据~",btntext:"",btnClick:null,supportTap:!1},clearId:null,clearEmptyId:null,hardwareClass:"mescroll-hardware",warpId:null,warpClass:"mescroll-upwarp",htmlLoading:'<p class="upwarp-progress mescroll-rotate"></p><p class="upwarp-tip">加载中..</p>',htmlNodata:'<p class="upwarp-nodata">-- END --</p>',inited:function(t,o){},showLoading:function(t,o){o.innerHTML=t.optUp.htmlLoading},showNoMore:function(t,o){o.innerHTML=t.optUp.htmlNodata},onScroll:null,scrollbar:{use:e,barClass:"mescroll-bar"},lazyLoad:{use:!1,attr:"imgurl",showClass:"mescroll-lazy-in",delay:500,offset:200}})},t.extend=function(o,e){if(!o)return e;for(var s in e)null==o[s]?o[s]=e[s]:"object"===typeof o[s]&&t.extend(o[s],e[s]);return o},t.prototype.initDownScroll=function(){var t=this;if(t.optDown=t.options.down||{},t.extendDownScroll(t.optDown),t.touchstartEvent=function(o){t.isScrollTo&&t.preventDefault(o),t.startPoint=t.getPoint(o),t.lastPoint=t.startPoint,t.maxTouchmoveY=t.getBodyHeight()-t.optDown.bottomOffset,t.inTouchend=!1;var e=t.getScrollTop();t.isKeepTop=0===e,t.os.pc&&e<=0&&(t.scrollDom.addEventListener("mousemove",t.touchmoveEvent,{passive:!1}),document.ondragstart=function(){return!1})},t.scrollDom.addEventListener("mousedown",t.touchstartEvent),t.scrollDom.addEventListener("touchstart",t.touchstartEvent),t.touchmoveEvent=function(o){if(t.startPoint){var e=t.getScrollTop();e>0&&(t.isKeepTop=!1);var s=t.getPoint(o),i=s.y-t.startPoint.y;if(i>0){if(e<=0&&(t.preventDefault(o),t.optDown.use&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth))){if(t.optDown.mustToTop&&!t.isKeepTop)return;var n=Math.abs(t.lastPoint.x-s.x),a=Math.abs(t.lastPoint.y-s.y),r=Math.sqrt(n*n+a*a);if(0!==r){var l=Math.asin(a/r)/Math.PI*180;if(l<t.optDown.minAngle)return}if(t.maxTouchmoveY>0&&s.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();var c=s.y-t.lastPoint.y;t.downHight||(t.downHight=0),t.downHight<t.optDown.offset?(1!==t.movetype&&(t.movetype=1,t.optDown.inOffset(t),t.downwarp.classList.remove(t.optDown.resetClass),t.isMoveDown=!0,t.os.ios&&!t.isKeepTop&&(t.scrollDom.classList.add(t.optDown.hardwareClass),t.scrollDom.style.webkitOverflowScrolling="auto",t.isSetScrollAuto=!0)),t.downHight+=c*t.optDown.inOffsetRate):(2!==t.movetype&&(t.movetype=2,t.optDown.outOffset(t),t.downwarp.classList.remove(t.optDown.resetClass),t.isMoveDown=!0,t.os.ios&&!t.isKeepTop&&(t.scrollDom.classList.add(t.optDown.hardwareClass),t.scrollDom.style.webkitOverflowScrolling="auto",t.isSetScrollAuto=!0)),t.downHight+=c>0?c*t.optDown.outOffsetRate:c),t.downwarp.style.height=t.downHight+"px";var p=t.downHight/t.optDown.offset;t.optDown.onMoving(t,p,t.downHight)}}else if(i<0){var u=t.getScrollHeight(),d=t.getClientHeight(),h=u-d-e;!t.optUp.isBounce&&h<=0&&t.preventDefault(o),t.optUp.use&&!t.optUp.isLock&&t.optUp.hasNext&&!t.isUpScrolling&&(!t.isDownScrolling||t.isDownScrolling&&t.optDown.isBoth)&&(d+t.optUp.offset>=u||h<=0)&&t.triggerUpScroll()}t.lastPoint=s}},t.scrollDom.addEventListener("touchmove",t.touchmoveEvent,{passive:!1}),t.touchendEvent=function(){t.optDown.use&&t.isMoveDown&&(t.downHight>=t.optDown.offset?t.triggerDownScroll():(t.downwarp.classList.add(t.optDown.resetClass),t.downHight=0,t.downwarp.style.height=0),t.isSetScrollAuto&&(t.scrollDom.style.webkitOverflowScrolling="touch",t.scrollDom.classList.remove(t.optDown.hardwareClass),t.isSetScrollAuto=!1),t.movetype=0,t.isMoveDown=!1),t.os.pc&&(t.scrollDom.removeEventListener("mousemove",t.touchmoveEvent),document.ondragstart=function(){return!0})},t.scrollDom.addEventListener("mouseup",t.touchendEvent),t.scrollDom.addEventListener("mouseleave",t.touchendEvent),t.scrollDom.addEventListener("touchend",t.touchendEvent),t.scrollDom.addEventListener("touchcancel",t.touchendEvent),t.optDown.use){t.downwarp=document.createElement("div"),t.downwarp.className=t.optDown.warpClass,t.downwarp.innerHTML='<div class="downwarp-content">'+t.optDown.htmlContent+"</div>";var o=t.optDown.warpId?t.getDomById(t.optDown.warpId):t.scrollDom;t.optDown.warpId&&o?o.appendChild(t.downwarp):(o||(o=t.scrollDom),o.insertBefore(t.downwarp,t.scrollDom.firstChild)),setTimeout((function(){t.optDown.inited(t,t.downwarp)}),0)}},t.prototype.preventDefault=function(t){t&&t.cancelable&&!t.defaultPrevented&&t.preventDefault()},t.prototype.getPoint=function(t){return{x:t.touches?t.touches[0].pageX:t.clientX,y:t.touches?t.touches[0].pageY:t.clientY}},t.prototype.triggerDownScroll=function(){this.optDown.beforeLoading(this,this.downwarp)||(this.showDownScroll(),this.optDown.callback&&this.optDown.callback(this))},t.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.showLoading(this),this.downHight=this.optDown.offset,this.downwarp.classList.add(this.optDown.resetClass),this.downwarp.style.height=this.optDown.offset+"px"},t.prototype.endDownScroll=function(){var t=this,o=function(){t.downHight=0,t.downwarp.style.height=0,t.isDownScrolling=!1,t.downProgressDom&&t.downProgressDom.classList.remove("mescroll-rotate")},e=t.optDown.afterLoading(t);"number"===typeof e&&e>0?setTimeout(o,e):o()},t.prototype.lockDownScroll=function(t){null==t&&(t=!0),this.optDown.isLock=t},t.prototype.initUpScroll=function(){var t,o=this;(o.optUp=o.options.up||{use:!1},o.extendUpScroll(o.optUp),o.optUp.scrollbar.use&&o.scrollDom.classList.add(o.optUp.scrollbar.barClass),o.optUp.isBounce||o.setBounce(!1),!1!==o.optUp.use)&&(o.optUp.hasNext=!0,o.upwarp=document.createElement("div"),o.upwarp.className=o.optUp.warpClass,o.optUp.warpId&&(t=o.getDomById(o.optUp.warpId)),t||(t=o.scrollDom),t.appendChild(o.upwarp),o.preScrollY=0,o.lazyStartTime=(new Date).getTime(),o.lazyTag="mescroll-lazying",o.scrollEvent=function(){var t=o.getScrollTop(),e=t-o.preScrollY>0;if(o.preScrollY=t,!o.isUpScrolling&&(!o.isDownScrolling||o.isDownScrolling&&o.optDown.isBoth)&&!o.optUp.isLock&&o.optUp.hasNext){var s=o.getScrollHeight()-o.getClientHeight()-t;s<=o.optUp.offset&&e&&o.triggerUpScroll()}var i=o.optUp.toTop;if((i.src||i.html)&&(t>=i.offset?o.showTopBtn():o.hideTopBtn()),o.optUp.lazyLoad.use){var n=(new Date).getTime();o.lazyTimer&&clearTimeout(o.lazyTimer),n-o.lazyStartTime>=o.optUp.lazyLoad.delay?(o.lazyStartTime=n,o.lazyLoad(0)):o.lazyTimer=o.lazyLoad()}o.optUp.onScroll&&o.optUp.onScroll(o,t,e)},o.isScrollBody?window.addEventListener("scroll",o.scrollEvent):o.scrollDom.addEventListener("scroll",o.scrollEvent),setTimeout((function(){o.optUp.inited(o,o.upwarp)}),0))},t.prototype.setBounce=function(t){!this.isScrollBody&&this.os.ios&&(!1===t?(this.optUp.isBounce=!1,window.addEventListener("touchmove",this.bounceTouchmove,{passive:!1})):(this.optUp.isBounce=!0,window.removeEventListener("touchmove",this.bounceTouchmove)))},t.prototype.bounceTouchmove=function(t){var o=this,e=t.target,s=!0;while(e!==document.body&&e!==document){var i=e.classList;if(i){if(i.contains("mescroll")||i.contains("mescroll-touch")){s=!1;break}if(i.contains("mescroll-touch-x")||i.contains("mescroll-touch-y")){var n=t.touches?t.touches[0].pageX:t.clientX,a=t.touches?t.touches[0].pageY:t.clientY;o.preWinX||(o.preWinX=n),o.preWinY||(o.preWinY=a);var r=Math.abs(o.preWinX-n),l=Math.abs(o.preWinY-a),c=Math.sqrt(r*r+l*l);if(o.preWinX=n,o.preWinY=a,0!==c){var p=Math.asin(l/c)/Math.PI*180;if(p<=45&&i.contains("mescroll-touch-x")||p>45&&i.contains("mescroll-touch-y")){s=!1;break}}}}e=e.parentNode}s&&t.cancelable&&!t.defaultPrevented&&"function"===typeof t.preventDefault&&t.preventDefault()},t.prototype.triggerUpScroll=function(){this.optUp.callback&&!this.isUpScrolling&&(this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.optUp.callback(this.optUp.page,this))},t.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.upwarp.classList.add(this.optUp.hardwareClass),this.upwarp.style.visibility="visible",this.upwarp.style.display="block",this.optUp.showLoading(this,this.upwarp)},t.prototype.showNoMore=function(){this.upwarp.style.visibility="visible",this.upwarp.style.display="block",this.optUp.hasNext=!1,this.optUp.showNoMore(this,this.upwarp)},t.prototype.hideUpScroll=function(t){t?this.upwarp.style.display="none":this.upwarp.style.visibility="hidden",this.upwarp.classList.remove(this.optUp.hardwareClass);var o=this.upwarp.getElementsByClassName("upwarp-progress")[0];o&&o.classList.remove("mescroll-rotate")},t.prototype.endUpScroll=function(t,o){null!=t&&(t?this.showNoMore():this.hideUpScroll(o)),this.isUpScrolling=!1},t.prototype.resetUpScroll=function(t){if(this.optUp&&this.optUp.use){var o=this.optUp.page;this.prePageNum=o.num,this.prePageTime=o.time,o.num=1,o.time=null,this.isDownScrolling||!1===t||(null==t?(this.removeEmpty(),this.clearDataList(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.optUp.callback&&this.optUp.callback(o,this)}},t.prototype.setPageNum=function(t){this.optUp.page.num=t-1},t.prototype.setPageSize=function(t){this.optUp.page.size=t},t.prototype.clearDataList=function(){var t=this.optUp.clearId||this.optUp.clearEmptyId;if(t){var o=this.getDomById(t);o&&(o.innerHTML="")}},t.prototype.endByPage=function(t,o,e){var s;this.optUp.use&&null!=o&&(s=this.optUp.page.num<o),this.endSuccess(t,s,e)},t.prototype.endBySize=function(t,o,e){var s;if(this.optUp.use&&null!=o){var i=(this.optUp.page.num-1)*this.optUp.page.size+t;s=i<o}this.endSuccess(t,s,e)},t.prototype.endSuccess=function(t,o,e){var s=this;if(s.isDownScrolling&&s.endDownScroll(),s.optUp.use){var i;if(null!=t){var n=s.optUp.page.num,a=s.optUp.page.size;if(1===n&&(s.clearDataList(),e&&(s.optUp.page.time=e)),t<a||!1===o)if(s.optUp.hasNext=!1,0===t&&1===n)i=!1,s.showEmpty();else{var r=(n-1)*a+t;i=!(r<s.optUp.noMoreSize),s.removeEmpty()}else i=!1,s.optUp.hasNext=!0,s.removeEmpty()}var l=!s.optUp.hasNext;s.endUpScroll(i,l),s.loadFull(),s.optUp.lazyLoad.use&&s.lazyLoad(16)}},t.prototype.endErr=function(){if(this.isDownScrolling){var t=this.optUp.page;t&&this.prePageNum&&(t.num=this.prePageNum,t.time=this.prePageTime),this.endDownScroll()}this.isUpScrolling&&(this.optUp.page.num--,this.endUpScroll(!1))},t.prototype.loadFull=function(){var t=this;t.optUp.loadFull.use&&!t.optUp.isLock&&t.optUp.hasNext&&t.optUp.callback&&t.getScrollHeight()<=t.getClientHeight()&&setTimeout((function(){t.getScrollHeight()<=t.getClientHeight()&&t.triggerUpScroll()}),t.optUp.loadFull.delay)},t.prototype.lockUpScroll=function(t){null==t&&(t=!0),this.optUp.isLock=t},t.prototype.showEmpty=function(){var t=this,o=t.optUp.empty,e=o.warpId||t.optUp.clearEmptyId;if(null!=e){var s=t.getDomById(e);if(s){t.removeEmpty();var i="";if(o.icon&&(i+='<img class="empty-icon" src="'+o.icon+'"/>'),o.tip&&(i+='<p class="empty-tip">'+o.tip+"</p>"),o.btntext&&(i+='<p class="empty-btn">'+o.btntext+"</p>"),t.emptyDom=document.createElement("div"),t.emptyDom.className="mescroll-empty",t.emptyDom.innerHTML=i,s.appendChild(t.emptyDom),o.btnClick){var n=t.emptyDom.getElementsByClassName("empty-btn")[0];o.supportTap?n.addEventListener("tap",(function(e){e.stopPropagation(),t.preventDefault(e),o.btnClick()})):n.onclick=function(){o.btnClick()}}}}},t.prototype.removeEmpty=function(){this.removeChild(this.emptyDom)},t.prototype.showTopBtn=function(t){if(!this.topBtnShow){this.topBtnShow=!0;var o,e=this,s=e.optUp.toTop;if(null==e.toTopBtn)s.html?(e.toTopBtn=document.createElement("div"),e.toTopBtn.innerHTML=s.html):(e.toTopBtn=document.createElement("img"),e.toTopBtn.src=s.src),e.toTopBtn.className=s.warpClass,s.supportTap?e.toTopBtn.addEventListener("tap",(function(t){t.stopPropagation(),e.preventDefault(t);var o=s.btnClick&&s.btnClick();!0!==o&&e.scrollTo(0,e.optUp.toTop.duration)})):e.toTopBtn.onclick=function(){var t=s.btnClick&&s.btnClick();!0!==t&&e.scrollTo(0,e.optUp.toTop.duration)},s.warpId&&(o=e.getDomById(s.warpId)),o||(o=document.body),o.appendChild(e.toTopBtn);e.toTopBtn.classList.remove(s.hideClass),e.toTopBtn.classList.add(s.showClass),e.setTopBtnFadeDuration(t)}},t.prototype.hideTopBtn=function(t){this.topBtnShow&&this.toTopBtn&&(this.topBtnShow=!1,this.toTopBtn.classList.remove(this.optUp.toTop.showClass),this.toTopBtn.classList.add(this.optUp.toTop.hideClass),this.setTopBtnFadeDuration(t))},t.prototype.setTopBtnFadeDuration=function(t){if(this.toTopBtn){var o=(null!=t?t:this.optUp.toTop.fadeDuration)+"s";this.toTopBtn.style.animationDuration=o,this.toTopBtn.style.webkitAnimationDuration=o}},t.prototype.scrollTo=function(t,o){var e=this,s=e.getScrollTop(),i=t;if(i>0){var n=e.getScrollHeight()-e.getClientHeight();i>n&&(i=n)}else i=0;e.isScrollTo=!0,e.scrollDom.style.webkitOverflowScrolling="auto",e.getStep(s,i,(function(t){e.setScrollTop(t),t===i&&(e.scrollDom.style.webkitOverflowScrolling="touch",e.isScrollTo=!1)}),o)},t.prototype.getStep=function(t,o,e,s,i){var n=o-t;if(0!==s&&0!==n){s=s||300,i=i||30;var a=s/i,r=n/a,l=0,c=window.setInterval((function(){l<a-1?(t+=r,e&&e(t,c),l++):(e&&e(o,c),window.clearInterval(c))}),i)}else e&&e(o)},t.prototype.lazyLoad=function(t){var o=this,e=null!=t?t:o.optUp.lazyLoad.delay,s=setTimeout((function(){for(var t=o.scrollDom.querySelectorAll("["+o.optUp.lazyLoad.attr+"]"),e=t.length,s=0;s<e;s++){var i=t[s];if("true"!==i.getAttribute(o.lazyTag)&&o.isInSee(i,o.optUp.lazyLoad.offset)){var n=i.getAttribute(o.optUp.lazyLoad.attr),a=new Image;a.onload=function(){var t=this.src,e=this.dom,s=o.optUp.lazyLoad.showClass;s&&e.classList.add(s),"IMG"===e.tagName?e.src=t:e.style.backgroundImage="url("+t+")",e.removeAttribute(o.optUp.lazyLoad.attr),e.removeAttribute(o.lazyTag)},a.onerror=function(){this.dom.removeAttribute(o.lazyTag)},a.onabort=function(){this.dom.removeAttribute(o.lazyTag)},a.src=n,i.setAttribute(o.lazyTag,"true"),a.dom=i}}}),e);return s},t.prototype.isInSee=function(t,o){o=o||0;var e=this.getOffsetTop(t),s=this.getScrollTop()-o,i=e+t.offsetHeight,n=s+o+this.getClientHeight()+o;return e<n&&e>=s||i<=n&&i>s},t.prototype.getOffsetTop=function(t){var o=t.offsetTop,e=t.offsetParent;while(null!=e&&e!==this.scrollDom)o+=e.offsetTop+e.clientTop,e=e.offsetParent;return o},t.prototype.getScrollHeight=function(){return this.scrollDom.scrollHeight},t.prototype.getClientHeight=function(){return this.isScrollBody&&"CSS1Compat"===document.compatMode?document.documentElement.clientHeight:this.scrollDom.clientHeight},t.prototype.getBodyHeight=function(){return document.body.clientHeight||document.documentElement.clientHeight},t.prototype.getScrollTop=function(){return this.isScrollBody?document.documentElement.scrollTop||document.body.scrollTop:this.scrollDom.scrollTop},t.prototype.getToBottom=function(){return this.getScrollHeight()-this.getClientHeight()-this.getScrollTop()},t.prototype.setScrollTop=function(t){"number"===typeof t&&(this.isScrollBody?(document.documentElement.scrollTop=t,document.body.scrollTop=t):this.scrollDom.scrollTop=t)},t.prototype.getDomById=function(t){var o;return t&&("string"===typeof t?o=document.getElementById(t):t.nodeType&&(o=t)),o||console.error('the element with id as "'+t+'" can not be found: document.getElementById("'+t+'")==null'),o},t.prototype.removeChild=function(t){if(t){var o=t.parentNode;o&&o.removeChild(t),t=null}},t.prototype.destroy=function(){var t=this;t.scrollDom.removeEventListener("touchstart",t.touchstartEvent),t.scrollDom.removeEventListener("touchmove",t.touchmoveEvent),t.scrollDom.removeEventListener("touchend",t.touchendEvent),t.scrollDom.removeEventListener("touchcancel",t.touchendEvent),t.scrollDom.removeEventListener("mousedown",t.touchstartEvent),t.scrollDom.removeEventListener("mousemove",t.touchmoveEvent),t.scrollDom.removeEventListener("mouseup",t.touchendEvent),t.scrollDom.removeEventListener("mouseleave",t.touchendEvent),t.removeChild(t.downwarp),t.isScrollBody?window.removeEventListener("scroll",t.scrollEvent):t.scrollDom.removeEventListener("scroll",t.scrollEvent),t.removeChild(t.upwarp),t.removeChild(t.toTopBtn),t.setBounce(!0)},t}))}}]);
- //# sourceMappingURL=chunk-41c55dfb.291dc6b6.js.map
|