(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45d5bb54"],{"233c":function(t,n,e){"use strict";var o=e("98eb"),i=e.n(o);i.a},"3f31":function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"back-top",style:t.styles},[t._t("default"),e("div",{directives:[{name:"show",rawName:"v-show",value:t.backTop,expression:"backTop"}],staticClass:"back"},[e("div",[e("Icon",{attrs:{type:"ios-arrow-up",size:24},on:{click:t.back}})],1)])],2)},i=[],c=e("93b3"),r=e("c3d2"),a={name:"aBackTop",props:{height:{type:Number,default:100},bottom:{type:Number,default:30},right:{type:Number,default:20},duration:{type:Number,default:1e3},container:{type:null}},data:function(){return{backTop:!1}},mounted:function(){Object(r["b"])(this.containerEle,"scroll",this.handleScroll),Object(r["b"])(this.containerEle,"resize",this.handleScroll)},beforeDestroy:function(){Object(r["a"])(this.containerEle,"scroll",this.handleScroll),Object(r["a"])(this.containerEle,"resize",this.handleScroll)},computed:{styles:function(){return{bottom:"".concat(this.bottom,"px"),right:"".concat(this.right,"px")}},containerEle:function(){return this.container?document.querySelector(this.container):window}},methods:{formatText:function(t){return t.replace(/^(.{3}).*(.{2})$/,"$1***$2")},handleScroll:function(){var t=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop;this.container&&(t=this.containerEle.scrollTop),this.backTop=t>=this.height},back:function(){var t=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop;this.container&&(t=this.containerEle.scrollTop),Object(c["c"])(this.containerEle,t,0,this.duration),this.$emit("on-click")}}},u=a,s=(e("233c"),e("9ca4")),l=Object(s["a"])(u,o,i,!1,null,"64d74f6a",null);n["default"]=l.exports},"93b3":function(t,n,e){"use strict";e.d(n,"d",(function(){return r})),e.d(n,"a",(function(){return a})),e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return s}));var o=e("e04f"),i=e.n(o),c="token",r=function(t){i.a.set(c,t,{expires:1})},a=function(){var t=i.a.get(c);return t||!1},u=function(){i.a.remove(c)},s=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4?arguments[4]:void 0;window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)});var c=Math.abs(n-e),r=Math.ceil(c/o*50),a=function n(e,o,c){if(e!==o){var r=e+c>o?o:e+c;e>o&&(r=e-c<o?o:e-c),t===window?window.scrollTo(r,r):t.scrollTop=r,window.requestAnimationFrame((function(){return n(r,o,c)}))}else i&&i()};a(n,e,r)}},"98eb":function(t,n,e){},c3d2:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"a",(function(){return i}));var o=function(){return document.addEventListener?function(t,n,e){t&&n&&e&&t.addEventListener(n,e,!1)}:function(t,n,e){t&&n&&e&&t.attachEvent("on"+n,e)}}(),i=function(){return document.removeEventListener?function(t,n,e){t&&n&&t.removeEventListener(n,e,!1)}:function(t,n,e){t&&n&&t.detachEvent("on"+n,e)}}()}}]);