chunk-375c643e.9c9e59b6.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-375c643e"],{"0afc":function(t,o,e){t.exports=e.p+"img/noneData.919a3c84.png"},1043:function(t,o){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAAGXcA1uAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAADsUlEQVRIDZ1VTWxUVRQ+5977QGVBXEDSVAOaeVMb0wZXJSEmLnRFSyEBjAm10+7YmIAQcMdOYxMwLlzOT0kFq7JAEjYkbIkxTSHWn+kk/IML0ZWpmXfvO55zZ+7re+2ADTeZOed+5zvn3Z/vnQfQHaVqQipMxKq4ar8WBwEviPVDaOD/AtLTxtVkkfO/kiDbhxDXbCvPLNfshMxR/nw9jYfAwRgAfdiajtAHJCiDsytEVBPfLzJu2NFSzT5uVnQDER/6gJTRoJ+0pkxfuW5/0ajHJbBuvWH9hf16ZvfPKITPeN3tSOm32qn9WVYkscKq8hniD83Ry0kbXhHfkrvBW3kpSwjPlGBhIP6NBCvL06bfcwbq9rA4b56nUoHYnZSq1uWLKUdQl9jSBBaOuMsHhXp38MWqrUN6qzhc6Y7Y/JA9pGR/5J0uBzzbg5w6OfohBDoW77amzc48liXkweDn1x4wE5xe1qAZFtyBi1kE34ufPeGd62Qe3HFVxkYR6D4qPN2cNFcHaxQnZJs8P0gpfecT4lryORGclArFgSlflorQlAngBUv2lhqo2nFPRrwn1x9+KjK7hMyLSH+dwuyUvMpEM8XKnVm5kbwrGy/X6O0Q76hPwQcByNvmZHRN5inYLwLuEyLQvwWgl0XCVwPuE9rkTgWglyWE+YArfpduA9GEyCCAwfI7vSD+kYr+KGD+WFdvFGcjo2cc8UU5+IaAIr6ps62p6ONCgkxYfHx0RYlrheO/V8zlQBab3XQe3Iif7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UKBYIrkZe+5cGulKV/YJD2K1hbL1e9WzAy1XzvV/1f3JN+mzrUuMMusRyRkyiqTe6c/Je6Jy+uSudBuHwLAWJ5LQH0AoIgMA5NwV+1Ev2uBdJ3AKEblS9CvFY9FD/zxq/8ZwKPAu+ldd6w4BPJc+HtJzop8XVwTvih5MhpVRL6JYL5AEHSAzuEPqNIa2+yzfO3IBDZ52vymaSK1Ecah1BzJJvO+W4+hsdef3HD5Z2NvTXYk/JzOQ1cUKhR7h7sFT/Tc82Q8VmOJ9Unhc/UyS8PBsRtiuWe0QptrI3NLVmUBGMo6nF4N95obk+aQ6FHw6s8bIZvBsU79mgri8+GokD1LkxjT8Y1KvI1Wvzs5+z2/o4uKSDpeV7rMsrkQkfsR3J45MCxJudaSiVN7xN8xzN57/AyU5JW5vCJPrAAAAAElFTkSuQmCC"},"271f":function(t,o,e){},3258:function(t,o,e){"use strict";e.r(o);var s=function(){var t=this,o=t.$createElement,s=t._self._c||o;return s("div",{staticClass:"crmnotice"},[s("div",{staticClass:"topsearchbox clearfix"},[s("div",{staticClass:"inputbox relative pull-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticClass:"fontfpr font24 color384855",attrs:{placeholder:"请输入客户姓名/业务员/部门/设计师"},domProps:{value:t.keyword},on:{keyup:function(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"enter",13,o.key,"Enter")?null:t.searchtap.apply(null,arguments)},input:function(o){o.target.composing||(t.keyword=o.target.value)}}}),s("img",{staticClass:"searchimg",attrs:{src:e("1e5e")},on:{click:t.searchtap}})]),s("div",{staticClass:"timeseletbox pull-right lh68",on:{click:t.setimetap}},[s("img",{staticClass:"pull-right",attrs:{src:e("c83f")}}),s("span",{staticClass:"pull-right colorfff font28"},[t._v(t._s(t.nowtime))])])]),s("mescroll-vue",{ref:"wordListBox",staticClass:"customerBox",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[t._l(t.customerlist,(function(o){return s("div",{key:o.id,staticClass:"everyvisitbox relative"},[s("div",{staticClass:"clearfix lh40 fontfpr color384855"},[s("div",{staticClass:"pull-left width60"},[s("img",{directives:[{name:"show",rawName:"v-show",value:2!=o.customer.sex,expression:"item.customer.sex != 2"}],staticClass:"pull-left seximg",attrs:{src:e("1043")}}),s("img",{directives:[{name:"show",rawName:"v-show",value:2==o.customer.sex,expression:"item.customer.sex == 2"}],staticClass:"pull-left seximg",attrs:{src:e("ac84")}}),s("div",{staticClass:"pull-left namebox"},[t._v(" "+t._s(o.customer.name?o.customer.name:"未知")+" ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:o.customer.level,expression:"item.customer.level"}],staticClass:"pull-left levelbox"},[t._v(" "+t._s(o.customer.level)+" ")]),s("div",{staticClass:"pull-left comnitybox relative"},[t._v(" "+t._s(o.customer.community_name?o.customer.community_name:"未知小区")+" ")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:o.employee,expression:"item.employee"}],staticClass:"pull-right",class:{nodesign:!o.designer}},[s("div",{staticClass:"pull-left lh32 center font20 colorfff salebox"},[t._v(" 销 ")]),s("div",{staticClass:"pull-left color000 font24 lh32 designernamebox ellipsis"},[t._v(" "+t._s(o.employee?o.employee.name:"")+" ")])])]),s("div",{staticClass:"clearfix mgt12 color9DB6CF lh34 fontfpr font24"},[s("div",{staticClass:"pull-left"},[s("div",{staticClass:"pull-left"},[t._v(" 录入时间:"+t._s(o.addtime.split(" ")[0])+" ")]),s("div",{staticClass:"pull-left statebtn"},[t._v(t._s(o.state))]),s("div",{staticClass:"pull-left orgname ellipsis"},[t._v(t._s(o.org&&o.org.name?o.org.name:""))])]),s("div",{directives:[{name:"show",rawName:"v-show",value:o.designer,expression:"item.designer"}],staticClass:"pull-right color384855"},[s("div",{staticClass:"pull-left lh32 center font20 colorfff designerbox"},[t._v(" 设 ")]),s("div",{staticClass:"pull-left color000 font24 lh32 designernamebox ellipsis"},[t._v(" "+t._s(o.designer?o.designer.name:"")+" ")])])])])})),s("nonedata",{attrs:{datashow:t.datashow,len:t.customerlist.length}})],2),s("van-calendar",{staticClass:"visitdatebox",attrs:{"show-confirm":!1,"min-date":t.minDate,"max-date":t.maxDate,color:"#249EFB"},on:{confirm:t.onConfirm},model:{value:t.timeshow,callback:function(o){t.timeshow=o},expression:"timeshow"}})],1)},n=[],l=(e("99af"),e("8d6b")),i=e("a92e"),r=e("2d8e"),a={name:"crmnotice",data:function(){return{keyword:"",timeshow:!1,nowtime:"",minDate:new Date(2021,0,31),maxDate:new Date(2050,0,31),customerlist:[],datashow:!1,mescroll:null,mescrollDown:{},mescrollUp:{auto:!1,callback:this.crmlistfun,page:{num:0,size:30},htmlLoading:"",htmlNodata:"",noMoreSize:0}}},components:{MescrollVue:l["a"],nonedata:i["a"]},created:function(){var t=new Date;this.maxDate=new Date(t.getFullYear(),t.getMonth(),t.getDate());var o=this.utils.getQueryStringArgs();this.nowtime=o.time,document.title=this.nowtime+"未回访提醒"},methods:{setimetap:function(){this.timeshow=!0},onConfirm:function(t){this.timeshow=!1,this.nowtime=this.formatDate(t),document.title=this.nowtime+"未回访提醒",this.mescroll.resetUpScroll()},formatDate:function(t){return"".concat(t.getFullYear(),"-").concat(t.getMonth()+1,"-").concat(t.getDate())},searchtap:function(){this.mescroll.resetUpScroll()},mescrollInit:function(t){this.mescroll=t},crmlistfun:function(t,o){var e=this,s={page:t.num,keyword:this.keyword,date:this.nowtime};Object(r["e"])(s).then((function(s){e.datashow=!0,e.loadFlag=!1,0==s.data.code&&(1===t.num&&(e.customerlist=[]),e.datashow=!0,e.customerlist=e.customerlist.concat(s.data.data),e.$nextTick((function(){o.endSuccess(s.data.data.length)})))}))}},mounted:function(){this.mescroll.resetUpScroll()}},c=a,p=(e("3c5a"),e("2877")),u=Object(p["a"])(c,s,n,!1,null,"085f5396",null);o["default"]=u.exports},"3c5a":function(t,o,e){"use strict";e("271f")},"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)])},n=[],l=e("f868"),i=e.n(l),r=(e("f2fd"),{name:"MeScrollVue",data:function(){return{mescroll:null,lastScrollTop:0,lastBounce:null}},props:{up:Object,down:Object},mounted:function(){this.mescroll=new i.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))}}}),a=r,c=e("2877"),p=Object(c["a"])(a,s,n,!1,null,null,null);o["a"]=p.exports},"99af":function(t,o,e){"use strict";var s=e("23e7"),n=e("da84"),l=e("d039"),i=e("e8b5"),r=e("861d"),a=e("7b0b"),c=e("07fa"),p=e("8418"),u=e("65f0"),d=e("1dde"),m=e("b622"),h=e("2d00"),A=m("isConcatSpreadable"),f=9007199254740991,w="Maximum allowed index exceeded",v=n.TypeError,g=h>=51||!l((function(){var t=[];return t[A]=!1,t.concat()[0]!==t})),D=d("concat"),y=function(t){if(!r(t))return!1;var o=t[A];return void 0!==o?!!o:i(t)},S=!g||!D;s({target:"Array",proto:!0,forced:S},{concat:function(t){var o,e,s,n,l,i=a(this),r=u(i,0),d=0;for(o=-1,s=arguments.length;o<s;o++)if(l=-1===o?i:arguments[o],y(l)){if(n=c(l),d+n>f)throw v(w);for(e=0;e<n;e++,d++)e in l&&p(r,d,l[e])}else{if(d>=f)throw v(w);p(r,d++,l)}return r.length=d,r}})},a92e:function(t,o,e){"use strict";var s=function(){var t=this,o=t.$createElement,s=t._self._c||o;return s("div",{staticClass:"nonedata",staticStyle:{margin:"auto"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:"0"==t.len&&t.datashow,expression:"len == '0' && datashow"}],staticClass:"noneDataBox"},[s("img",{attrs:{src:e("0afc")}}),s("div",[t._v(t._s(t.text))])])])},n=[],l=(e("a9e3"),{name:"nonedata",props:{len:{type:Number,default:0},datashow:{type:Boolean,default:!1},text:{type:String,default:"暂无数据展示"}},data:function(){return{}},created:function(){},methods:{},mounted:function(){}}),i=l,r=(e("bf10"),e("2877")),a=Object(r["a"])(i,s,n,!1,null,"e6e9b0c4",null);o["a"]=a.exports},ac84:function(t,o){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGqADAAQAAAABAAAAGAAAAAA2CeVqAAADzUlEQVRIDaVUXWgUVxQ+584mM7OmUqQ/AaUPFUKxWGmDlogWfWnoT3ZNaorQh1LIpPgQSiy2YEu7Vop9sBR/inGXVorgg3nYZIMI0geDii1FClItDYh/aCMqbbW7s4nrnH5nxjRDmNZkPbB7zj1/3z3fnXuZZinSfcjyJ492klCWiNtIpDksZR4XopPMMuI2vlzkwTfvJbXkJOdMXzXrtQdCX4vI4pmx+JqZxwzxJqeUPxz3q/1AoHKHt5VIPokVjhPzaazPGOZyIPI0C7ULycL7DUWIt80bKXwaq/l/ID/jfYxG28ICpj/RcKvbumgP53K1eBPJ5Uz152sbgkB2YlOPaQyb2OKWCtun8v5zIj/bs1qEj4Eug6RLws7KeaU916YKk/REh/dsjeR7xJpRI5zitW6xMKq5JqlAfRLwlwoCdm9bqdTrDwLRGnukcNbihjXg6RY+EA7uifYIh0kE8jt7V4Hz5VpsDG+3iwO/qD0bcUp7f2M2n4W5Qq1+duNKtROBpBa8pkF8RYE0mgNqz0Xc+fO/wRjVqKbWqToZiPiFKElOpAcHrkb27P/5wI4ydnlKK0Dhc6oTgcDxE1ESX1Rdj4D6y1Edh599MpBQoEkYv7EekLBWyIlqxVedCMRMVzSIm9eiuj7hZVEdj6tOBMIoJzTIJM/73b1PqT0XKXd5y0HdM1qDS35cdSIQbnURtGEgYFVliybOSe7KRs3XHoZTQ2onAjlD+fP4ag5qAq6b52d631Z7NuJn330HefpTpKLeKzWNdPe7la6eRbqIC6caP2Limr4OIsF+vHtePJ5kVzLeBuTuC2P6NtqmfyqPK5meUXD0EugacOyF7/FgblKDlay3SwLp+zcRw8E+JGztSA8PnMZl1jVJX5/tX662UiCfw7FGffiYJvGirHOGCkd0rcLljHcGp7E0XBCdchvMG36N+rGzzVEG/452LmAeDdfR3w3wf0GYmwDXgoNPTcf4pmXxW6D/6LQP1FkWrYfjV3ViR21+TcamQei6Ram1adttwRO+V6m8X/w4cldgg0umQHQKjPJt2mlYOhNEa7AxAGQ+eMSnP77DeYTvUhhgumMJt+mLrGsVnOeC6sTfr8BcBbqbUa0E6j35weH0ES7tvK55SRICaaDS4X2I3X0RT2LDu90n+X3O5+/G/fXYIRBA+gCyK2zA/BecFqZr0jUO/bhrN7Xz4FfhU1IPiNYY/Wqgw0nA8x00brfYvAg9pgkAXA26utR+GAE5uyfA9bA2Zsu8mh7O/2gP7zvn2rwCjffjGH6SlIw+DIjW/gM6hV8rQqzvBAAAAABJRU5ErkJggg=="},bf10:function(t,o,e){"use strict";e("c93c")},c83f:function(t,o){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEqADAAQAAAABAAAACgAAAADKOW4WAAAAhElEQVQoFWP8//9/GQMDQx4QswIxExAzQmkQG52PLAdi/wfiuYyMjOmMQIOeADnSQEwu+AY0iBtk4xRyTYDqa4XrB7qqHYjJAQhDYKYBTSHVsE6YXgyaBMN6MDSjCxBhWD+6Hpx8PIZNwqkJlwQWw6biUktQHGhYPRC/B+JuIAYlQJwAAIgmA7GMAt7oAAAAAElFTkSuQmCC"},c93c:function(t,o,e){},f2fd:function(t,o,e){},f868:function(t,o,e){var s,n;(function(l,i){s=i,n="function"===typeof s?s.call(o,e,o,t):s,void 0===n||(t.exports=n)})(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,n=!!s.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),l="undefined"===typeof window.orientation,i=s.indexOf("Android")>-1||s.indexOf("Adr")>-1;e.os={ios:n,pc:l,android:i},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),n=s.y-t.startPoint.y;if(n>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 l=Math.abs(t.lastPoint.x-s.x),i=Math.abs(t.lastPoint.y-s.y),r=Math.sqrt(l*l+i*i);if(0!==r){var a=Math.asin(i/r)/Math.PI*180;if(a<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(n<0){var u=t.getScrollHeight(),d=t.getClientHeight(),m=u-d-e;!t.optUp.isBounce&&m<=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||m<=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 n=o.optUp.toTop;if((n.src||n.html)&&(t>=n.offset?o.showTopBtn():o.hideTopBtn()),o.optUp.lazyLoad.use){var l=(new Date).getTime();o.lazyTimer&&clearTimeout(o.lazyTimer),l-o.lazyStartTime>=o.optUp.lazyLoad.delay?(o.lazyStartTime=l,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 n=e.classList;if(n){if(n.contains("mescroll")||n.contains("mescroll-touch")){s=!1;break}if(n.contains("mescroll-touch-x")||n.contains("mescroll-touch-y")){var l=t.touches?t.touches[0].pageX:t.clientX,i=t.touches?t.touches[0].pageY:t.clientY;o.preWinX||(o.preWinX=l),o.preWinY||(o.preWinY=i);var r=Math.abs(o.preWinX-l),a=Math.abs(o.preWinY-i),c=Math.sqrt(r*r+a*a);if(o.preWinX=l,o.preWinY=i,0!==c){var p=Math.asin(a/c)/Math.PI*180;if(p<=45&&n.contains("mescroll-touch-x")||p>45&&n.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 n=(this.optUp.page.num-1)*this.optUp.page.size+t;s=n<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 n;if(null!=t){var l=s.optUp.page.num,i=s.optUp.page.size;if(1===l&&(s.clearDataList(),e&&(s.optUp.page.time=e)),t<i||!1===o)if(s.optUp.hasNext=!1,0===t&&1===l)n=!1,s.showEmpty();else{var r=(l-1)*i+t;n=!(r<s.optUp.noMoreSize),s.removeEmpty()}else n=!1,s.optUp.hasNext=!0,s.removeEmpty()}var a=!s.optUp.hasNext;s.endUpScroll(n,a),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 n="";if(o.icon&&(n+='<img class="empty-icon" src="'+o.icon+'"/>'),o.tip&&(n+='<p class="empty-tip">'+o.tip+"</p>"),o.btntext&&(n+='<p class="empty-btn">'+o.btntext+"</p>"),t.emptyDom=document.createElement("div"),t.emptyDom.className="mescroll-empty",t.emptyDom.innerHTML=n,s.appendChild(t.emptyDom),o.btnClick){var l=t.emptyDom.getElementsByClassName("empty-btn")[0];o.supportTap?l.addEventListener("tap",(function(e){e.stopPropagation(),t.preventDefault(e),o.btnClick()})):l.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(),n=t;if(n>0){var l=e.getScrollHeight()-e.getClientHeight();n>l&&(n=l)}else n=0;e.isScrollTo=!0,e.scrollDom.style.webkitOverflowScrolling="auto",e.getStep(s,n,(function(t){e.setScrollTop(t),t===n&&(e.scrollDom.style.webkitOverflowScrolling="touch",e.isScrollTo=!1)}),o)},t.prototype.getStep=function(t,o,e,s,n){var l=o-t;if(0!==s&&0!==l){s=s||300,n=n||30;var i=s/n,r=l/i,a=0,c=window.setInterval((function(){a<i-1?(t+=r,e&&e(t,c),a++):(e&&e(o,c),window.clearInterval(c))}),n)}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 n=t[s];if("true"!==n.getAttribute(o.lazyTag)&&o.isInSee(n,o.optUp.lazyLoad.offset)){var l=n.getAttribute(o.optUp.lazyLoad.attr),i=new Image;i.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)},i.onerror=function(){this.dom.removeAttribute(o.lazyTag)},i.onabort=function(){this.dom.removeAttribute(o.lazyTag)},i.src=l,n.setAttribute(o.lazyTag,"true"),i.dom=n}}}),e);return s},t.prototype.isInSee=function(t,o){o=o||0;var e=this.getOffsetTop(t),s=this.getScrollTop()-o,n=e+t.offsetHeight,l=s+o+this.getClientHeight()+o;return e<l&&e>=s||n<=l&&n>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}))}}]);