1234567 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2bc9ec1a"],{"0a49":function(t,e,o){var s=o("9b43"),i=o("626a"),n=o("4bf8"),a=o("9def"),r=o("cd1c");t.exports=function(t,e){var o=1==t,l=2==t,c=3==t,p=4==t,u=6==t,d=5==t||u,h=e||r;return function(e,r,v){for(var m,f,g=n(e),w=i(g),_=s(r,v,3),y=a(w.length),b=0,k=o?h(e,y):l?h(e,0):void 0;y>b;b++)if((d||b in w)&&(m=w[b],f=_(m,b,g),t))if(o)k[b]=f;else if(f)switch(t){case 3:return!0;case 5:return m;case 6:return b;case 2:k.push(m)}else if(p)return!1;return u?-1:c||p?p:k}}},1169:function(t,e,o){var s=o("2d95");t.exports=Array.isArray||function(t){return"Array"==s(t)}},"17cd":function(t,e,o){},"3ff5":function(t,e,o){"use strict";var s=o("17cd"),i=o.n(s);i.a},"456d":function(t,e,o){var s=o("4bf8"),i=o("0d58");o("5eda")("keys",function(){return function(t){return i(s(t))}})},"5eda":function(t,e,o){var s=o("5ca1"),i=o("8378"),n=o("79e5");t.exports=function(t,e){var o=(i.Object||{})[t]||Object[t],a={};a[t]=e(o),s(s.S+s.F*n(function(){o(1)}),"Object",a)}},7514:function(t,e,o){"use strict";var s=o("5ca1"),i=o("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)}}),o("9c6c")(n)},"8d6b":function(t,e,o){"use strict";var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"mescroll",staticClass:"mescroll"},[o("div",[t._t("default")],2)])},i=[],n=o("f868"),a=o.n(n),r=(o("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=o("2877"),p=Object(c["a"])(l,s,i,!1,null,null,null);e["a"]=p.exports},ac6a:function(t,e,o){for(var s=o("cadf"),i=o("0d58"),n=o("2aba"),a=o("7726"),r=o("32e9"),l=o("84f2"),c=o("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),m=0;m<v.length;m++){var f,g=v[m],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(f in s)y[f]||n(y,f,s[f],!0)}},c308:function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"manage"},[s("div",{staticClass:"areaIn"},[s("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tabType,expression:"tabType==0"}],staticClass:"area",on:{click:t.partArea}},[s("span",[t._v(t._s(t.areaname))]),s("i",{staticClass:"iconfont"},[t._v("")])])]),s("div",{staticClass:"manageIn"},[s("div",{staticClass:"tab flexA",class:{noTop:0!=this.tabType}},[s("p",{staticClass:"flexCC",on:{click:function(e){return t.choice(0)}}},[s("span",[t._v("全部管理")]),s("i",{directives:[{name:"show",rawName:"v-show",value:0==t.tabType,expression:"tabType == 0"}]})]),s("p",{staticClass:"flexCC",on:{click:function(e){return t.choice(1)}}},[s("span",[t._v("用户管理")]),s("i",{directives:[{name:"show",rawName:"v-show",value:1==t.tabType,expression:"tabType == 1"}]})]),s("p",{staticClass:"flexCC",on:{click:function(e){return t.choice(2)}}},[s("span",[t._v("车辆管理")]),s("i",{directives:[{name:"show",rawName:"v-show",value:2==t.tabType,expression:"tabType == 2"}]})]),s("p",{staticClass:"flexCC",on:{click:function(e){return t.choice(3)}}},[s("span",[t._v("订单管理")]),s("i",{directives:[{name:"show",rawName:"v-show",value:3==t.tabType,expression:"tabType == 3"}]})]),s("p",{staticClass:"flexCC",on:{click:function(e){return t.choice(4)}}},[s("span",[t._v("工单管理")]),s("i",{directives:[{name:"show",rawName:"v-show",value:4==t.tabType,expression:"tabType == 4"}]})])]),0==t.tabType?s("ul",{staticClass:"all",style:{height:t.app_height}},[s("li",{on:{click:function(e){return t.skipPage(1)}}},[t._m(0),s("ul",[s("li",[s("span",[t._v("总用户数:"+t._s(t.userCount.totalUser))]),s("span",[t._v("\n 今日新增:\n "),s("span",{staticClass:"teal"},[t._v(t._s(t.userCount.todayAddUser))])])]),s("li",[s("span",[t._v("有效户数:"+t._s(t.userCount.cardUser))]),s("span",[t._v("\n 今日活跃:\n "),s("span",{staticClass:"yellow"},[t._v(t._s(t.userCount.todayActiveUser))])])]),s("li",[s("span",[t._v("押金户数:"+t._s(t.userCount.depositUser))])])])]),s("li",{on:{click:function(e){return t.skipPage(2)}}},[t._m(1),s("ul",[s("li",[s("span",[t._v("总车辆数:"+t._s(t.bikeCount.total_bikes))]),s("span",[t._v("\n 今日使用:\n "),s("span",{staticClass:"teal"},[t._v(t._s(t.bikeCount.today_use_total_bikes))])])]),s("li",[s("span",[t._v("上线车辆:"+t._s(t.bikeCount.put_total_bikes))]),s("span",[t._v("\n 在线车辆:\n "),s("span",{staticClass:"yellow"},[t._v(t._s(t.bikeCount.line_total_bikes))])])]),s("li",[s("span",[t._v("故障车辆:"+t._s(t.bikeCount.trouble_total_bikes))]),s("span",[t._v("\n 低电量:\n "),s("span",{staticClass:"yellow"},[t._v(t._s(t.bikeCount.low_battery_total_bikes))])])])])]),s("li",{on:{click:function(e){return t.skipPage(3)}}},[t._m(2),s("ul",[s("li",[s("span",[t._v("订单总数:"+t._s(t.orderCount.order_total))]),s("span",[t._v("\n 今日新增:\n "),s("span",{staticClass:"yellow"},[t._v(t._s(t.orderCount.today_add_order))])])]),s("li",[s("span",[t._v("骑行中:"+t._s(t.orderCount.riding_order))])])])]),s("li",{on:{click:function(e){return t.skipPage(4)}}},[t._m(3),s("ul",[s("li",[s("span",[t._v("全部工单:"+t._s(t.statistics.planned_meet_num+t.statistics.planned_worked_num+t.statistics.planned_work_num+t.statistics.planned_over_num))]),s("span",[t._v("\n 待认领:\n "),s("span",{staticClass:"yellow"},[t._v(t._s(t.statistics.planned_meet_num))])])]),s("li",[s("span",[t._v("处理中:"+t._s(t.statistics.planned_work_num))]),s("span",[t._v("已完成:"+t._s(t.statistics.planned_over_num))])])])]),s("li",{directives:[{name:"show",rawName:"v-show",value:t.ProfitShow,expression:"ProfitShow"}]},[t._m(4),s("ul",[s("li",[s("span",[t._v("总收益:"+t._s(t.totalCount.totalProfit))]),s("span",[t._v("\n 今日收益:\n "),s("span",{staticClass:"teal"},[t._v(t._s(t.totalCount.todayProfit))])])]),s("li",[s("span",[t._v("总押金:"+t._s(t.totalCount.depositTotal))]),s("span",[t._v("\n 今日押金:\n "),s("span",{staticClass:"teal"},[t._v(t._s(t.totalCount.depositToday))])])]),s("li",[s("span",[t._v("本月收益:"+t._s(t.totalCount.monthProfit))])])])])]):t._e(),0!=t.tabType?s("div",{staticClass:"scroll",staticStyle:{"touch-action":"none","padding-top":"1.2rem","padding-bottom":"1rem","box-sizing":"border-box"},style:{height:t.app_height}},[s("mescroll-vue",{ref:"mescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[s("div",{attrs:{id:"demo"}},[1==t.tabType?s("div",{staticClass:"userCon"},[s("div",{staticClass:"commen"},[s("div",{staticClass:"flexA",on:{click:t.partArea}},[s("span",[t._v(t._s(t.userArea))]),s("i",{staticClass:"iconfont"},[t._v("")])]),s("div",{staticClass:"flexA"},[s("div",[s("p",[t._v(t._s(t.userCount.totalUser))]),s("p",[t._v("总用户数")])]),s("div",[s("p",[t._v(t._s(t.userCount.depositUser))]),s("p",[t._v("押金用户")])]),s("div",[s("p",[t._v(t._s(t.userCount.todayAddUser))]),s("p",[t._v("新增用户")])])])]),s("div",{staticClass:"search"},[s("i",{staticClass:"iconfont"},[t._v("")]),s("input",{attrs:{type:"text"}})]),s("ul",{staticClass:"commenList"},t._l(t.userList,function(e,o){return s("li",{key:o,on:{click:function(e){return t.skipUser(e,o)}}},[s("div",[s("p",[t._v("手机号:"+t._s(e.mobile))]),s("p",[s("span",[t._v("姓名:"+t._s(e.username))]),s("span",[t._v("余额:"+t._s(e.wallet_money)+"元")])]),s("p",[t._v("校区:"+t._s(e.area))])]),s("div",{staticClass:"state",class:[0==e.is_deposit?"state4":"state1"]},[t._v(t._s(0==e.is_deposit?"非押金用户":"押金用户"))])])}),0)]):t._e(),2==t.tabType?s("div",{staticClass:"carCon"},[s("div",[s("div",{staticClass:"car"},[s("div",{staticClass:"flexA",on:{click:t.partArea}},[s("span",[t._v(t._s(t.bikeArea))]),s("i",{staticClass:"iconfont"},[t._v("")])]),s("div",{staticClass:"flexA"},[s("div",{on:{click:t.carScreen}},[s("p",[t._v(t._s(t.bikeCount.total_bikes))]),s("p",[t._v("总车辆数")])]),s("div",{on:{click:function(e){return t.carScreen("put_status")}}},[s("p",[t._v(t._s(t.bikeCount.put_total_bikes))]),s("p",[t._v("上线车辆")])]),s("div",{on:{click:function(e){return t.carScreen("is_link")}}},[s("p",[t._v(t._s(t.bikeCount.line_total_bikes))]),s("p",[t._v("在线车辆")])])])]),s("div",{staticClass:"flexA second"},[s("div",{on:{click:function(e){return t.carScreen("is_trouble")}}},[s("p",[t._v(t._s(t.bikeCount.trouble_total_bikes))]),s("p",[t._v("故障车辆")])]),s("div",{on:{click:function(e){return t.carScreen("today_use")}}},[s("p",[t._v(t._s(t.bikeCount.today_use_total_bikes))]),s("p",[t._v("今日使用")])]),s("div",{on:{click:function(e){return t.carScreen("is_low_battery_power")}}},[s("p",[t._v(t._s(t.bikeCount.low_battery_total_bikes))]),s("p",[t._v("低电量")])]),s("div",{on:{click:function(e){return t.carScreen("is_riding")}}},[s("p",[t._v(t._s(t.bikeCount.riding_total_bikes))]),s("p",[t._v("骑行中")])]),s("div",{on:{click:function(e){return t.carScreen("is_riding1")}}},[s("p",[t._v(t._s(t.bikeCount.not_riding_total_bikes))]),s("p",[t._v("未使用")])])])]),s("div",{staticClass:"search"},[s("i",{staticClass:"iconfont"},[t._v("")]),s("input",{attrs:{type:"text"}})]),s("ul",{staticStyle:{"font-size":"42px"}},t._l(t.bikeList,function(e,o){return s("li",{key:o,staticClass:"flexB",on:{click:function(e){return t.skipBike(e,o)}}},[s("div",[s("p",[s("span",[t._v(t._s(e.not_use_time))]),s("span",{staticClass:"text"},[t._v(t._s(e.location))])]),s("p",[s("span",[t._v(t._s(e.bike_no))]),s("span",{staticClass:"orange"},[t._v("电量"+t._s(e.battery_power)+"%")]),s("span",{staticClass:"orange"},[t._v(t._s(0==e.is_riding?"未骑行":"骑行中"))])])]),s("div",[s("div",{staticClass:"fault",class:[0==e.is_link?"state4":"state1"]},[t._v(t._s(0==e.is_link?"故障下线":"上线"))]),s("i",{staticClass:"iconfont"},[t._v("")])])])}),0),""==t.bikeList?s("div",{staticClass:"wushuju"},[s("img",{staticStyle:{width:"1.28rem",height:"1.28rem"},attrs:{src:o("dd02"),alt:""}}),s("p",[t._v("无数据")])]):t._e()]):t._e(),3==t.tabType?s("div",{staticClass:"orderCon"},[s("div",{staticClass:"commen"},[s("div",{staticClass:"flexA",on:{click:t.partArea}},[s("span",[t._v(t._s(t.orderArea))]),s("i",{staticClass:"iconfont"},[t._v("")])]),s("div",{staticClass:"flexA"},[s("div",[s("p",[t._v(t._s(t.orderCount.today_add_order))]),s("p",[t._v("今日订单")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.ProfitShow,expression:"ProfitShow"}]},[s("p",[t._v(t._s(t.orderCount.today_add_money))]),s("p",[t._v("今日总收入")])]),s("div",[s("p",[t._v(t._s(t.orderCount.riding_order))]),s("p",[t._v("进行中订单")])])])]),s("div",{staticClass:"search"},[s("i",{staticClass:"iconfont"},[t._v("")]),s("input",{attrs:{type:"text"}})]),s("ul",{staticClass:"commenList"},t._l(t.orderList,function(e,o){return s("li",{key:o,on:{click:function(e){return t.orderDetails(e,o)}}},[s("div",[s("p",[t._v("车辆编号:"+t._s(e.bike_no))]),s("p",[t._v("用户:"+t._s(e.nickname))]),s("p",[s("span",[t._v("手机号:"+t._s(e.mobile))])]),s("p",[t._v("开始时间:"+t._s(e.start_use_bike_time))]),s("p",[t._v("结束时间:"+t._s(e.end_use_bike_time))])]),s("div",{directives:[{name:"show",rawName:"v-show",value:"骑行中"==e.orders_status,expression:"item.orders_status=='骑行中'"}],staticClass:"state state1"},[t._v(t._s(e.orders_status))]),s("div",{directives:[{name:"show",rawName:"v-show",value:"订单关闭"==e.orders_status,expression:"item.orders_status=='订单关闭'"}],staticClass:"state state2"},[t._v(t._s(e.orders_status))]),s("div",{directives:[{name:"show",rawName:"v-show",value:"已完成"==e.orders_status,expression:"item.orders_status=='已完成'"}],staticClass:"state state3"},[t._v(t._s(e.orders_status))]),s("div",{directives:[{name:"show",rawName:"v-show",value:"待支付"==e.orders_status,expression:"item.orders_status=='待支付'"}],staticClass:"state state4"},[t._v(t._s(e.orders_status))]),s("div",{directives:[{name:"show",rawName:"v-show",value:"临时停车"==e.orders_status,expression:"item.orders_status=='临时停车'"}],staticClass:"state state6"},[t._v(t._s(e.orders_status))])])}),0)]):t._e(),4==t.tabType?s("div",{staticClass:"workCon"},[s("div",[s("div",{staticClass:"car workOrder"},[s("div",{staticClass:"flexA",on:{click:t.partArea}},[s("span",[t._v(t._s(t.workArea))]),s("i",{staticClass:"iconfont"},[t._v("")])]),s("div",{staticClass:"flexA"},[s("div",{on:{click:function(e){return t.screen(7)}}},[s("p",[t._v(t._s(t.statistics.headman_num))]),s("p",[t._v("组长工单")])]),s("div",{on:{click:function(e){return t.screen1(2)}}},[s("p",[t._v(t._s(t.statistics.planned_work_num))]),s("p",[t._v("处理中工单")])]),s("div",{on:{click:function(e){return t.screen1(1)}}},[s("p",[t._v(t._s(t.statistics.planned_meet_num))]),s("p",[t._v("未认领工单")])])])]),s("div",{staticClass:"flexA second two"},[s("div",{on:{click:function(e){return t.screen(8)}}},[s("p",[t._v(t._s(t.statistics.trouble_num))]),s("p",[t._v("故障工单")])]),s("div",{on:{click:function(e){return t.screen(5)}}},[s("p",[t._v(t._s(t.statistics.alert_num))]),s("p",[t._v("警报工单")])]),s("div",{on:{click:function(e){return t.screen(6)}}},[s("p",[t._v(t._s(t.statistics.steal_num))]),s("p",[t._v("偷盗工单")])]),s("div",{on:{click:function(e){return t.screen(9)}}},[s("p",[t._v(t._s(t.statistics.help_num))]),s("p",[t._v("道路救援")])]),s("div",{on:{click:function(e){return t.screen(1)}}},[s("p",[t._v(t._s(t.statistics.charge_num))]),s("p",[t._v("换电工单")])])])]),s("div",{staticClass:"search"},[s("i",{staticClass:"iconfont"},[t._v("")]),s("input",{attrs:{type:"text"}})]),""==t.workList?s("div",{staticClass:"wushuju"},[s("img",{staticStyle:{width:"1.28rem",height:"1.28rem"},attrs:{src:o("dd02"),alt:""}}),s("p",[t._v("无数据")])]):t._e(),s("ul",{staticClass:"con",staticStyle:{"font-size":"42px"}},t._l(t.workList,function(e,o){return s("li",{key:o,on:{click:function(e){return t.skipWork(e,o)}}},[s("span",{directives:[{name:"show",rawName:"v-show",value:"充电工单"==e.type_name,expression:"item.type_name=='充电工单'"}],staticClass:"state1 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"断电工单"==e.type_name,expression:"item.type_name=='断电工单'"}],staticClass:"state2 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"组长工单"==e.type_name,expression:"item.type_name=='组长工单'"}],staticClass:"state3 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"偷盗工单"==e.type_name,expression:"item.type_name=='偷盗工单'"}],staticClass:"state4 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"离线工单"==e.type_name,expression:"item.type_name=='离线工单'"}],staticClass:"state5 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"救援工单"==e.type_name,expression:"item.type_name=='救援工单'"}],staticClass:"state6 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"断电工单"==e.type_name,expression:"item.type_name=='断电工单'"}],staticClass:"state7 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"警报工单"==e.type_name,expression:"item.type_name=='警报工单'"}],staticClass:"state8 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"故障工单"==e.type_name,expression:"item.type_name=='故障工单'"}],staticClass:"state9 status"},[t._v(t._s(e.type_name))]),s("span",{directives:[{name:"show",rawName:"v-show",value:"其他工单"==e.type_name,expression:"item.type_name=='其他工单'"}],staticClass:"state10 status"},[t._v(t._s(e.type_name))]),s("h4",{directives:[{name:"show",rawName:"v-show",value:e.reason,expression:"item.reason"}]},[t._v(t._s(e.reason))]),s("h4",{directives:[{name:"show",rawName:"v-show",value:!e.reason,expression:"!item.reason"}]},[t._v(t._s(e.type_name))]),s("div",[s("div",[s("P",[s("span",[t._v("当前负责人:")]),s("span",[t._v(t._s(e.worker))])]),s("P",[s("span",[t._v("车辆编号:")]),s("span",[t._v(t._s(e.bike_no))])]),s("P",[s("span",[t._v("创建时间:")]),s("span",[t._v(t._s(e.created_at))])])],1),s("div",[s("P",[s("span",[t._v("进度:")]),s("span",[t._v(t._s(e.planned))])]),s("P",[s("span",[t._v("来源:")]),s("span",[t._v(t._s(e.source))])])],1)])])}),0)]):t._e()])])],1):t._e(),s("mt-popup",{attrs:{position:"bottom"},model:{value:t.popupVisible,callback:function(e){t.popupVisible=e},expression:"popupVisible"}},[s("ul",{staticClass:"popList"},t._l(t.areaList,function(e,o){return s("li",{key:o,on:{click:function(e){return t.getZone(e,o)}}},[t._v(t._s(e))])}),0)])],1),s("Footer",{attrs:{isBgf:t.isBgf}})],1)},i=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("p",[t._v("用")]),o("p",[t._v("户")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("p",[t._v("车")]),o("p",[t._v("辆")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("p",[t._v("订")]),o("p",[t._v("单")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("p",[t._v("工")]),o("p",[t._v("单")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("p",[t._v("收")]),o("p",[t._v("益")])])}],n=(o("ac6a"),o("456d"),o("7514"),o("76a0")),a=o("8d6b"),r={data:function(){return{ProfitShow:!0,areaId:"",isBgf:!0,tabType:0,totalCount:[],bikeList:[],bikeCount:{},orderList:[],orderCount:{},workList:[],workCount:{},userList:[],userCount:{},mescroll:null,mescrollDown:{},mescrollUp:{callback:this.upCallback,use:!0,page:{num:0,size:4},lazyLoad:{use:!0}},areaList:[],areaname:"全部区域",userArea:"全部区域",bikeArea:"全部区域",orderArea:"全部区域",workArea:"全部区域",show:!1,columns:[],showLoading:!1,popupVisible:!1,app_height:"".concat(window.screen.availHeight,"px"),init_index:null,statistics:"",type:"",planned:"",suffix:""}},components:{MescrollVue:a["a"]},created:function(){this.getArea(),this.getInfo(),this.workOrderStatistics()},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}},workOrderStatistics:function(){var t=this;0!=this.areaId?this.axios.post(config.url.workOrderStatistics+"?put_area_id="+this.areaId).then(function(e){console.log(e),t.statistics=e.data}):this.axios.post(config.url.workOrderStatistics).then(function(e){console.log(e),t.statistics=e.data})},partArea:function(){this.popupVisible=!this.popupVisible},findKey:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t,e){return t===e};return Object.keys(t).find(function(s){return o(t[s],e)})},getZone:function(t,e){var o=this;n["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"}),this.popupVisible=!1,this.areaId=e,this.type="",this.planned="";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/"):4==this.tabType&&(this.workArea=t.target.innerHTML,s="/work_order/"),0!=this.tabType&&4!=this.tabType&&(this.workOrderStatistics(),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==o.tabType?o.userList=t.data.data:2==o.tabType?o.bikeList=t.data.data:3==o.tabType&&(o.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==o.tabType?o.userList=t.data.data:2==o.tabType?o.bikeList=t.data.data:3==o.tabType&&(o.orderList=t.data.data))}))),4==this.tabType&&(this.workOrderStatistics(),0==this.areaId?(this.workOrderStatistics(),console.log("全部"),this.axios.get(config.url.workList+"?page=1").then(function(t){200==t.status&&(n["Indicator"].close(),console.log(t.data.data,"工单"),o.workList=t.data.data)})):(this.workOrderStatistics(),this.getAreaInfo1(this.areaId),console.log("区域"),this.axios.get(config.url.workList+"?page=1&&put_area_id="+this.areaId).then(function(t){console.log(t),200==t.status&&(n["Indicator"].close(),o.workList=t.data.data)})))},mescrollInit:function(t){this.mescroll=t},upCallback:function(t,e){var o=this;if(console.log(1111111,t,e),0!=this.tabType){var s="";1==this.tabType?s="/user/":2==this.tabType?s="/bike/":3==this.tabType?s="/order/":4==this.tabType&&(s="/work_order/"),n["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"});var i="page="+t.num;""!=this.type&&(i="type="+this.type+"&&page="+t.num),""!=this.planned&&(i="planned="+this.planned+"&&page="+t.num),""==this.areaId||0==this.areaId?this.axios.get(config.url.list+s+"list/?"+i+this.suffix).then(function(s){if(200==s.status){if(o.getList1(),n["Indicator"].close(),1==o.tabType){console.log(s,"获取全部用户","回调");var i=s.data.data;1===t.num&&(o.userList=[]),o.userList=o.userList.concat(i),console.log(o.userList,1111),o.$nextTick(function(){e.endSuccess(i.length)})}else if(2==o.tabType){console.log(s,"获取全部车辆","回调");var a=s.data.data;1===t.num&&(o.bikeList=[]),o.bikeList=o.bikeList.concat(a),o.$nextTick(function(){e.endSuccess(a.length)})}else if(3==o.tabType){console.log(s,"获取全部订单","回调");var r=s.data.data;1===t.num&&(o.orderList=[]),o.orderList=o.orderList.concat(r),o.$nextTick(function(){e.endSuccess(r.length)})}else if(4==o.tabType){console.log("723行"),console.log(s,"获取全部工单","回调");var l=s.data.data;1===t.num&&(o.workList=[]),o.workList=o.workList.concat(l),o.$nextTick(function(){e.endSuccess(l.length)})}}else n["Indicator"].close()}).catch(function(t){n["Indicator"].close(),Object(n["Toast"])(t.response.data.message)}):""!=this.areaId&&0!=this.areaId&&(console.log("else"),this.axios.get(config.url.list+s+"list/?"+i+"&&put_area_id="+this.areaId).then(function(s){if(200==s.status){if(o.getAreaInfo(o.areaId),n["Indicator"].close(),1==o.tabType){console.log(s,"获取部分用户信息","回调");var i=s.data.data;1===t.num&&(o.userList=[]),o.userList=o.userList.concat(i),o.$nextTick(function(){e.endSuccess(i.length)})}else if(2==o.tabType){console.log(s,"获取部分车辆信息","回调");var a=s.data.data;1===t.num&&(o.bikeList=[]),o.bikeList=o.bikeList.concat(a),o.$nextTick(function(){e.endSuccess(a.length)})}else if(3==o.tabType){console.log(s,"获取部分订单信息","回调");var r=s.data.data;1===t.num&&(o.orderList=[]),o.orderList=o.orderList.concat(r),o.$nextTick(function(){e.endSuccess(r.length)})}else if(4==o.tabType){console.log(s,"获取部分工单信息","回调");var l=s.data.data;1===t.num&&(o.workList=[]),o.workList=o.workList.concat(l),o.$nextTick(function(){e.endSuccess(l.length)})}}else n["Indicator"].close()}).catch(function(t){n["Indicator"].close(),Object(n["Toast"])(t.response.data.message)}))}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="全部区域":4==t&&(this.workArea="全部区域"),this.mescroll},skipBike:function(t,e){sessionStorage.setItem("bike_id",this.bikeList[e].id),sessionStorage.setItem("bike_no",this.bikeList[e].bike_no),sessionStorage.setItem("area_name",this.bikeList[e].area_name),sessionStorage.setItem("is_riding",this.bikeList[e].is_riding),sessionStorage.setItem("is_link",this.bikeList[e].is_link),sessionStorage.setItem("battery_power",this.bikeList[e].battery_power),console.log(this.bikeList),this.$router.push({name:"cardetails",params:{bike_id:this.bikeList[e].id}})},skipUser:function(t,e){sessionStorage.setItem("user_id",this.userList[e].id),this.$router.push({name:"userdetails",params:{user_id:this.userList[e].id}})},orderDetails:function(t,e){sessionStorage.setItem("order_id",this.orderList[e].id),sessionStorage.setItem("uname",this.orderList[e].nickname),this.$router.push({name:"orderdetails",params:{order_id:this.orderList[e].id}})},skipWork:function(t,e){console.log(e),console.log(this.workList[e].id),this.$router.push({name:"workdetail",params:{work_order_id:this.workList[e].id}})},carScreen:function(t){var e=this;console.log(t);var o="";this.bikeList=[],"put_status"==t?(o="&&put_status=1",this.suffix=o):"is_link"==t?(o="&&is_link=1",this.suffix=o):"is_riding1"==t?(o="&&is_riding=0",this.suffix=o):"is_riding"==t?(o="&&is_riding=1",this.suffix=o):"is_low_battery_power"==t?(o="&&is_low_battery_power=0",this.suffix=o):"today_use"==t?(o="&&today_use=1",this.suffix=o):"is_trouble"==t&&(o="&&is_trouble=1",this.suffix=o),0!=this.areaId?this.axios.get(config.url.list+"/bike/list?page=1&&put_area_id="+this.areaId+o).then(function(t){console.log(t),e.bikeList=t.data.data}):this.axios.get(config.url.list+"/bike/list?page=1"+o).then(function(t){console.log(t),e.bikeList=t.data.data}).catch(function(t){Object(n["Toast"])(t.response.data.message)})},screen:function(t){var e=this;console.log(t),this.type=t,this.planned="",0!=this.areaId?this.axios.get(config.url.workList+"?page=1&&put_area_id="+this.areaId+"&&type="+t).then(function(t){console.log(t),e.workList=t.data.data}):this.axios.get(config.url.workList+"?page=1&&type="+t).then(function(t){console.log(t),e.workList=t.data.data}).catch(function(t){Object(n["Toast"])(t.response.data.message)})},screen1:function(t){var e=this;this.planned=t,this.type="",0!=this.areaId?this.axios.get(config.url.workList+"?page=1&&put_area_id="+this.areaId+"&&planned="+t).then(function(t){console.log(t),e.workList=t.data.data}):this.axios.get(config.url.workList+"?page=1&&planned="+t).then(function(t){console.log(t),e.workList=t.data.data}).catch(function(t){Object(n["Toast"])(t.response.data.message)})},getArea:function(){var t=this;this.axios.get(config.url.index).then(function(e){if(200==e.status){console.log(e,"获取区域");var o=e.data.area;o[0]="全部区域",t.areaList=o}})},getInfo:function(){var t=this;this.axios.get(config.url.orderProfitStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取总数据"),t.totalCount=e.data,0==e.data.depositToday&&0==e.data.depositTotal&&0==e.data.monthProfit&&0==e.data.todayProfit&&0==e.data.totalProfit&&(t.ProfitShow=!1))}),this.axios.get(config.url.userStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取用户总数"),t.userCount=e.data)}).catch(function(t){Object(n["Toast"])(t.response.data.message)}),this.axios.get(config.url.statistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取车辆统计信息"),t.bikeCount=e.data)}).catch(function(t){Object(n["Toast"])(t.response.data.message)}),this.axios.get(config.url.orderStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取订单总数"),t.orderCount=e.data)}).catch(function(t){Object(n["Toast"])(t.response.data.message)}),this.axios.post(config.url.workOrderStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取工单总数"),t.statistics=e.data)}).catch(function(t){Object(n["Toast"])(t.response.data.message)})},getList1:function(){var t=this;0==this.tabType?this.axios.get(config.url.orderProfitStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取总数据"),t.totalCount=e.data,0==e.data.depositToday&&0==e.data.depositTotal&&0==e.data.monthProfit&&0==e.data.todayProfit&&0==e.data.totalProfit&&(t.ProfitShow=!1))}):1==this.tabType?this.axios.get(config.url.userStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取用户总数"),t.userCount=e.data)}):2==this.tabType?this.axios.get(config.url.statistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取车辆统计信息"),t.bikeCount=e.data)}):3==this.tabType?this.axios.get(config.url.orderStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取订单总数"),t.orderCount=e.data)}):4==this.tabType&&this.axios.post(config.url.workOrderStatistics).then(function(e){200==e.status&&(n["Indicator"].close(),console.log(e,"获取工单总数"),t.workCount=e.data)})},getAreaInfo:function(t){var e=this;this.axios.get(config.url.orderProfitStatistics+"?put_area_id="+t).then(function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域总数据"),e.totalCount=t.data,0==t.data.depositToday&&0==t.data.depositTotal&&0==t.data.monthProfit&&0==t.data.todayProfit&&0==t.data.totalProfit&&(e.ProfitShow=!1))}),this.axios.get(config.url.userStatistics+"?put_area_id="+t).then(function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域用户总数"),e.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,"获取区域车辆统计信息"),e.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,"获取区域订单总数"),e.orderCount=t.data)}),this.axios.post(config.url.workOrderStatistics+"?put_area_id="+t).then(function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域工单总数"),e.statistics=t.data)})},getAreaInfo1:function(t){var e=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,"获取区域用户总数"),e.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,"获取区域车辆统计信息"),e.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,"获取区域订单总数"),e.orderCount=t.data)}):4==this.tabType&&this.axios.post(config.url.workOrderStatistics+"?put_area_id="+t).then(function(t){200==t.status&&(n["Indicator"].close(),console.log(t,"获取区域工单总数"),e.statistics=t.data)})}}},l=r,c=(o("3ff5"),o("2877")),p=Object(c["a"])(l,s,i,!1,null,"53a0cc3a",null);e["default"]=p.exports},cd1c:function(t,e,o){var s=o("e853");t.exports=function(t,e){return new(s(t))(e)}},dd02:function(t,e){t.exports="data:image/png;base64,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"},e853:function(t,e,o){var s=o("d3f4"),i=o("1169"),n=o("2b4c")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),s(e)&&(e=e[n],null===e&&(e=void 0))),void 0===e?Array:e}},f2fd:function(t,e,o){},f868:function(t,e,o){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(e,o,e,t):s,void 0===i||(t.exports=i)})(0,function(){var t=function(t,e){var o=this;if(o.version="1.4.0",o.isScrollBody=!t||"body"===t,o.scrollDom=o.isScrollBody?document.body:o.getDomById(t),o.scrollDom){o.options=e||{};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;o.os={ios:i,pc:n,android:a},o.isDownScrolling=!1,o.isUpScrolling=!1;var r=o.options.down&&o.options.down.callback;o.initDownScroll(),o.initUpScroll(),setTimeout(function(){o.optDown.use&&o.optDown.auto&&r&&(o.optDown.autoShowLoading?o.triggerDownScroll():o.optDown.callback&&o.optDown.callback(o)),o.optUp.use&&o.optUp.auto&&!o.isUpAutoLoad&&o.triggerUpScroll()},30)}};return t.prototype.extendDownScroll=function(e){t.extend(e,{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,e){t.downTipDom=e.getElementsByClassName("downwarp-tip")[0],t.downProgressDom=e.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,e,o){if(t.downProgressDom){var s=360*e;t.downProgressDom.style.webkitTransform="rotate("+s+"deg)",t.downProgressDom.style.transform="rotate("+s+"deg)"}},beforeLoading:function(t,e){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(e){var o=this.os.pc;t.extend(e,{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,e){},showLoading:function(t,e){e.innerHTML=t.optUp.htmlLoading},showNoMore:function(t,e){e.innerHTML=t.optUp.htmlNodata},onScroll:null,scrollbar:{use:o,barClass:"mescroll-bar"},lazyLoad:{use:!1,attr:"imgurl",showClass:"mescroll-lazy-in",delay:500,offset:200}})},t.extend=function(e,o){if(!e)return o;for(var s in o)null==e[s]?e[s]=o[s]:"object"===typeof e[s]&&t.extend(e[s],o[s]);return e},t.prototype.initDownScroll=function(){var t=this;if(t.optDown=t.options.down||{},t.extendDownScroll(t.optDown),t.touchstartEvent=function(e){t.isScrollTo&&t.preventDefault(e),t.startPoint=t.getPoint(e),t.lastPoint=t.startPoint,t.maxTouchmoveY=t.getBodyHeight()-t.optDown.bottomOffset,t.inTouchend=!1;var o=t.getScrollTop();t.isKeepTop=0===o,t.os.pc&&o<=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(e){if(t.startPoint){var o=t.getScrollTop();o>0&&(t.isKeepTop=!1);var s=t.getPoint(e),i=s.y-t.startPoint.y;if(i>0){if(o<=0&&(t.preventDefault(e),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-o;!t.optUp.isBounce&&h<=0&&t.preventDefault(e),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 e=t.optDown.warpId?t.getDomById(t.optDown.warpId):t.scrollDom;t.optDown.warpId&&e?e.appendChild(t.downwarp):(e||(e=t.scrollDom),e.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,e=function(){t.downHight=0,t.downwarp.style.height=0,t.isDownScrolling=!1,t.downProgressDom&&t.downProgressDom.classList.remove("mescroll-rotate")},o=t.optDown.afterLoading(t);"number"===typeof o&&o>0?setTimeout(e,o):e()},t.prototype.lockDownScroll=function(t){null==t&&(t=!0),this.optDown.isLock=t},t.prototype.initUpScroll=function(){var t,e=this;(e.optUp=e.options.up||{use:!1},e.extendUpScroll(e.optUp),e.optUp.scrollbar.use&&e.scrollDom.classList.add(e.optUp.scrollbar.barClass),e.optUp.isBounce||e.setBounce(!1),!1!==e.optUp.use)&&(e.optUp.hasNext=!0,e.upwarp=document.createElement("div"),e.upwarp.className=e.optUp.warpClass,e.optUp.warpId&&(t=e.getDomById(e.optUp.warpId)),t||(t=e.scrollDom),t.appendChild(e.upwarp),e.preScrollY=0,e.lazyStartTime=(new Date).getTime(),e.lazyTag="mescroll-lazying",e.scrollEvent=function(){var t=e.getScrollTop(),o=t-e.preScrollY>0;if(e.preScrollY=t,!e.isUpScrolling&&(!e.isDownScrolling||e.isDownScrolling&&e.optDown.isBoth)&&!e.optUp.isLock&&e.optUp.hasNext){var s=e.getScrollHeight()-e.getClientHeight()-t;s<=e.optUp.offset&&o&&e.triggerUpScroll()}var i=e.optUp.toTop;if((i.src||i.html)&&(t>=i.offset?e.showTopBtn():e.hideTopBtn()),e.optUp.lazyLoad.use){var n=(new Date).getTime();e.lazyTimer&&clearTimeout(e.lazyTimer),n-e.lazyStartTime>=e.optUp.lazyLoad.delay?(e.lazyStartTime=n,e.lazyLoad(0)):e.lazyTimer=e.lazyLoad()}e.optUp.onScroll&&e.optUp.onScroll(e,t,o)},e.isScrollBody?window.addEventListener("scroll",e.scrollEvent):e.scrollDom.addEventListener("scroll",e.scrollEvent),setTimeout(function(){e.optUp.inited(e,e.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 e=this,o=t.target,s=!0;while(o!==document.body&&o!==document){var i=o.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;e.preWinX||(e.preWinX=n),e.preWinY||(e.preWinY=a);var r=Math.abs(e.preWinX-n),l=Math.abs(e.preWinY-a),c=Math.sqrt(r*r+l*l);if(e.preWinX=n,e.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}}}}o=o.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 e=this.upwarp.getElementsByClassName("upwarp-progress")[0];e&&e.classList.remove("mescroll-rotate")},t.prototype.endUpScroll=function(t,e){null!=t&&(t?this.showNoMore():this.hideUpScroll(e)),this.isUpScrolling=!1},t.prototype.resetUpScroll=function(t){if(this.optUp&&this.optUp.use){var e=this.optUp.page;this.prePageNum=e.num,this.prePageTime=e.time,e.num=1,e.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(e,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 e=this.getDomById(t);e&&(e.innerHTML="")}},t.prototype.endByPage=function(t,e,o){var s;this.optUp.use&&null!=e&&(s=this.optUp.page.num<e),this.endSuccess(t,s,o)},t.prototype.endBySize=function(t,e,o){var s;if(this.optUp.use&&null!=e){var i=(this.optUp.page.num-1)*this.optUp.page.size+t;s=i<e}this.endSuccess(t,s,o)},t.prototype.endSuccess=function(t,e,o){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(),o&&(s.optUp.page.time=o)),t<a||!1===e)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,e=t.optUp.empty,o=e.warpId||t.optUp.clearEmptyId;if(null!=o){var s=t.getDomById(o);if(s){t.removeEmpty();var i="";if(e.icon&&(i+='<img class="empty-icon" src="'+e.icon+'"/>'),e.tip&&(i+='<p class="empty-tip">'+e.tip+"</p>"),e.btntext&&(i+='<p class="empty-btn">'+e.btntext+"</p>"),t.emptyDom=document.createElement("div"),t.emptyDom.className="mescroll-empty",t.emptyDom.innerHTML=i,s.appendChild(t.emptyDom),e.btnClick){var n=t.emptyDom.getElementsByClassName("empty-btn")[0];e.supportTap?n.addEventListener("tap",function(o){o.stopPropagation(),t.preventDefault(o),e.btnClick()}):n.onclick=function(){e.btnClick()}}}}},t.prototype.removeEmpty=function(){this.removeChild(this.emptyDom)},t.prototype.showTopBtn=function(t){if(!this.topBtnShow){this.topBtnShow=!0;var e,o=this,s=o.optUp.toTop;if(null==o.toTopBtn)s.html?(o.toTopBtn=document.createElement("div"),o.toTopBtn.innerHTML=s.html):(o.toTopBtn=document.createElement("img"),o.toTopBtn.src=s.src),o.toTopBtn.className=s.warpClass,s.supportTap?o.toTopBtn.addEventListener("tap",function(t){t.stopPropagation(),o.preventDefault(t);var e=s.btnClick&&s.btnClick();!0!==e&&o.scrollTo(0,o.optUp.toTop.duration)}):o.toTopBtn.onclick=function(){var t=s.btnClick&&s.btnClick();!0!==t&&o.scrollTo(0,o.optUp.toTop.duration)},s.warpId&&(e=o.getDomById(s.warpId)),e||(e=document.body),e.appendChild(o.toTopBtn);o.toTopBtn.classList.remove(s.hideClass),o.toTopBtn.classList.add(s.showClass),o.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 e=(null!=t?t:this.optUp.toTop.fadeDuration)+"s";this.toTopBtn.style.animationDuration=e,this.toTopBtn.style.webkitAnimationDuration=e}},t.prototype.scrollTo=function(t,e){var o=this,s=o.getScrollTop(),i=t;if(i>0){var n=o.getScrollHeight()-o.getClientHeight();i>n&&(i=n)}else i=0;o.isScrollTo=!0,o.scrollDom.style.webkitOverflowScrolling="auto",o.getStep(s,i,function(t){o.setScrollTop(t),t===i&&(o.scrollDom.style.webkitOverflowScrolling="touch",o.isScrollTo=!1)},e)},t.prototype.getStep=function(t,e,o,s,i){var n=e-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,o&&o(t,c),l++):(o&&o(e,c),window.clearInterval(c))},i)}else o&&o(e)},t.prototype.lazyLoad=function(t){var e=this,o=null!=t?t:e.optUp.lazyLoad.delay,s=setTimeout(function(){for(var t=e.scrollDom.querySelectorAll("["+e.optUp.lazyLoad.attr+"]"),o=t.length,s=0;s<o;s++){var i=t[s];if("true"!==i.getAttribute(e.lazyTag)&&e.isInSee(i,e.optUp.lazyLoad.offset)){var n=i.getAttribute(e.optUp.lazyLoad.attr),a=new Image;a.onload=function(){var t=this.src,o=this.dom,s=e.optUp.lazyLoad.showClass;s&&o.classList.add(s),"IMG"===o.tagName?o.src=t:o.style.backgroundImage="url("+t+")",o.removeAttribute(e.optUp.lazyLoad.attr),o.removeAttribute(e.lazyTag)},a.onerror=function(){this.dom.removeAttribute(e.lazyTag)},a.onabort=function(){this.dom.removeAttribute(e.lazyTag)},a.src=n,i.setAttribute(e.lazyTag,"true"),a.dom=i}}},o);return s},t.prototype.isInSee=function(t,e){e=e||0;var o=this.getOffsetTop(t),s=this.getScrollTop()-e,i=o+t.offsetHeight,n=s+e+this.getClientHeight()+e;return o<n&&o>=s||i<=n&&i>s},t.prototype.getOffsetTop=function(t){var e=t.offsetTop,o=t.offsetParent;while(null!=o&&o!==this.scrollDom)e+=o.offsetTop+o.clientTop,o=o.offsetParent;return e},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 e;return t&&("string"===typeof t?e=document.getElementById(t):t.nodeType&&(e=t)),e||console.error('the element with id as "'+t+'" can not be found: document.getElementById("'+t+'")==null'),e},t.prototype.removeChild=function(t){if(t){var e=t.parentNode;e&&e.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-2bc9ec1a.70c25f90.js.map
|