webpackJsonp([45],{"LxD/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n("nsZj");var r=n("cTzj"),i=n.n(r).a,o=n("7+uW"),a=(n("TIfe"),n("PJh5")),s=n.n(a),u=n("mtWM"),l=n.n(u);o.a.use(i);var c={data:function(){var e={tree:[],list:[],price:"0",stock_num:0,collection_id:0,none_sku:!0,messages:[],hide_stock:!1};return{showCustomAction:!1,initialSku:e,sku:e,goods:{title:"",picture:""},list:[],filter:{page:1,cid:2345,status:1,offset:0,limit:10,type:0}}},created:function(){var e=this;this.$nextTick(function(){e.$refs.my_scroller.finishInfinite(!1)}),this.$route.query.category_id>0&&(this.filter.category_id=this.$route.query.category_id)},filters:{parsePriceInt:function(e){return Math.floor(e)},parsePriceFloat:function(e){var t=e.toString().split(".");return t.length>1?"."+t[1]:""},datetime:function(e){return s()(1e3*e).format("YYYY-MM-DD HH:mm")}},methods:{go_detail:function(e){localStorage.setItem("page_content_html",e.content),this.$router.push({name:"version_info",query:{id:e.id}})},get_list:function(e){var t=this;l.a.get("https://www.g107.com/blog/ajax/getBlogPostList",{params:this.filter}).then(function(n){for(var r in e(),t.$refs.my_scroller.finishInfinite(0===n.data.data.data.length),n.data.data.data)t.list.push(n.data.data.data[r]);t.filter.page++})},refresh:function(e){var t=this,n=this;setTimeout(function(){t.filter.page=1,t.get_list(function(){n.list=[],e()})},100)},del:function(e,t){var n=this;l()({method:"get",url:"/public/index.php/index/address/del",params:{id:e}}).then(function(e){1==e.data.code?(n.$toast(e.data.msg),n.list.splice(t,1)):n.$toast(e.data.msg)})},infinite:function(e){this.get_list(e)}}},d={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aff_list_com"},[n("van-nav-bar",{attrs:{title:"版本更新","left-text":"返回","left-arrow":""},on:{"click-left":e.$route_back}}),e._v(" "),n("div",{staticClass:"aff_list_com_body_com has_header"},[n("scroller",{ref:"my_scroller",attrs:{"on-refresh":e.refresh,"on-infinite":e.infinite}},[n("div",{staticStyle:{height:"0.16rem"}}),e._v(" "),n("div",{staticClass:"aff_list_com_box"},e._l(e.list,function(t,r){return n("div",{key:r,staticClass:"aff_list_item",on:{click:function(n){return e.go_detail(t)}}},[n("div",{staticClass:"info_username"},[e._v(e._s(t.title))]),e._v(" "),n("div",{staticClass:"reg_time"},[e._v("发布时间:"+e._s(e._f("datetime")(t.createtime)))])])}),0)])],1)],1)},staticRenderFns:[]};var f=n("VU/8")(c,d,!1,function(e){n("ii1G")},"data-v-9ecc836c",null);t.default=f.exports},cTzj:function(e,t,n){var r;r=function(){"use strict";function e(e){e=e||{};var r=arguments.length,i=0;if(1===r)return e;for(;++i-1?e.splice(n,1):void 0}}function o(e,t){if("IMG"===e.tagName&&e.getAttribute("data-srcset")){var n=e.getAttribute("data-srcset"),r=[],i=e.parentNode.offsetWidth*t,o=void 0,a=void 0,s=void 0;(n=n.trim().split(",")).map(function(e){e=e.trim(),-1===(o=e.lastIndexOf(" "))?(a=e,s=999998):(a=e.substr(0,o),s=parseInt(e.substr(o+1,e.length-o-2),10)),r.push([s,a])}),r.sort(function(e,t){if(e[0]t[0])return 1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0});for(var u="",l=void 0,c=r.length,d=0;d=i){u=l[1];break}return u}}function a(e,t){for(var n=void 0,r=0,i=e.length;r0&&void 0!==arguments[0]?arguments[0]:1;return b&&window.devicePixelRatio||e},w=function(){if(b){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}}(),L={on:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];w?e.addEventListener(t,n,{capture:r,passive:!0}):e.addEventListener(t,n,r)},off:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}},k=function(e,t,n){var r=new Image;r.src=e.src,r.onload=function(){t({naturalHeight:r.naturalHeight,naturalWidth:r.naturalWidth,src:r.src})},r.onerror=function(e){n(e)}},E=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},A=function(e){return E(e,"overflow")+E(e,"overflow-y")+E(e,"overflow-x")},j={},T=function(){function e(t){var n=t.el,r=t.src,i=t.error,o=t.loading,a=t.bindType,s=t.$parent,u=t.options,c=t.elRenderer;l(this,e),this.el=n,this.src=r,this.error=i,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=s,this.elRenderer=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return c(e,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(e){this.performanceData[e]=Date.now()}},{key:"update",value:function(e){var t=e.src,n=e.loading,r=e.error,i=this.src;this.src=t,this.loading=n,this.error=r,this.filter(),i!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.topthis.options.preLoadTop&&this.rect.left0}},{key:"filter",value:function(){var e=this;(function(e){if(!(e instanceof Object))return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t})(this.options.filter).map(function(t){e.options.filter[t](e,e.options)})}},{key:"renderLoading",value:function(e){var t=this;k({src:this.loading},function(n){t.render("loading",!1),e()},function(){e(),t.options.silent||console.warn("VueLazyload log: load failed with loading image("+t.loading+")")})}},{key:"load",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void t()):this.state.loaded||j[this.src]?(this.state.loaded=!0,t(),this.render("loaded",!0)):void this.renderLoading(function(){e.attempt++,e.record("loadStart"),k({src:e.src},function(n){e.naturalHeight=n.naturalHeight,e.naturalWidth=n.naturalWidth,e.state.loaded=!0,e.state.error=!1,e.record("loadEnd"),e.render("loaded",!1),j[e.src]=1,t()},function(t){!e.options.silent&&console.error(t),e.state.error=!0,e.state.loaded=!1,e.render("error",!1)})})}},{key:"render",value:function(e,t){this.elRenderer(this,e,t)}},{key:"performance",value:function(){var e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),e}(),z="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],I={rootMargin:"0px",threshold:0},x=function(e){return function(){function t(e){var n=e.preLoad,r=e.error,i=e.throttleWait,o=e.preLoadTop,a=e.dispatchEvent,s=e.loading,u=e.attempt,c=e.silent,d=void 0===c||c,f=e.scale,h=e.listenEvents,v=(e.hasbind,e.filter),p=e.adapter,y=e.observer,m=e.observerOptions;l(this,t),this.version="1.2.3",this.mode=g.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!a,throttleWait:i||200,preLoad:n||1.3,preLoadTop:o||0,error:r||z,loading:s||z,attempt:u||3,scale:f||_(f),ListenEvents:h||$,hasbind:!1,supportWebp:function(){if(!b)return!1;var e=!0,t=document;try{var n=t.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",t.body.appendChild(n),e=!n.offsetWidth,t.body.removeChild(n)}catch(t){e=!1}return e}(),filter:v||{},adapter:p||{},observer:!!y,observerOptions:m||I},this._initEvent(),this.lazyLoadHandler=function(e,t){var n=null,r=0;return function(){if(!n){var i=this,o=arguments,a=function(){r=Date.now(),n=!1,e.apply(i,o)};Date.now()-r>=t?a():n=setTimeout(a,t)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?g.observer:g.event)}return c(t,[{key:"config",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this.options,e)}},{key:"performance",value:function(){var e=[];return this.ListenerQueue.map(function(t){e.push(t.performance())}),e}},{key:"addLazyBox",value:function(e){this.ListenerQueue.push(e),b&&(this._addListenerTarget(window),this._observer&&this._observer.observe(e.el),e.$el&&e.$el.parentNode&&this._addListenerTarget(e.$el.parentNode))}},{key:"add",value:function(t,n,r){var i=this;if(function(e,t){for(var n=!1,r=0,i=e.length;r1&&void 0!==arguments[1]?arguments[1]:{},n=new(x(e))(t),r=new O({lazy:n}),i="2"===e.version.split(".")[0];e.prototype.$Lazyload=n,t.lazyComponent&&e.component("lazy-component",function(e){return{props:{tag:{type:String,default:"div"}},render:function(e){return!1===this.show?e(this.tag):e(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),b&&this.rect.top0&&this.rect.left0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}}(n)),i?(e.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),e.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(e.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(e,t){p(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){n.remove(this.el)}}),e.directive("lazy-container",{update:function(e,t){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}}},e.exports=r()},ii1G:function(e,t){}});