webpackJsonp([33],{"A0V/":function(t,i){},lc3H:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e("FevL"),a=e("+cBM"),o=e("ERXc"),l=e("7CoX"),n=e("p52L"),r=e("gOFm");s.default.component(r.InfiniteScroll.name,r.InfiniteScroll);var d={data:()=>({title:"",key:"",keyword:"",cid:"",page:1,items:[],model:""}),created(){var t=this.$route.params.cid,i=this.$route.params.keyword;this.key=t,this.keyword=i,this.getColumnConfig()},methods:{getColumnConfig(){this.$axios.post(this.api.infoType,{id:this.key}).then(t=>{this.model=t.data.model,this.title=t.data.name,this.getList()},t=>{})},getList(){this.$axios.get(this.api.infoSearch+"?attr[page]="+this.page+"&attr[keyword]="+this.keyword+"&attr[cid]="+this.key).then(t=>{var i=t.data.data.data;const e=i.data;this.items=[...this.items,...e],this.page>=i.last_page?this.$refs.infinitescrollDemo.$emit("ydui.infinitescroll.loadedDone"):(this.$refs.infinitescrollDemo.$emit("ydui.infinitescroll.finishLoad"),this.page++)})}},components:{PriceList:a.a,Bottom:n.a,PhoneList:l.a,ArticleList:o.a}},c={render:function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("section",[e("v-title",{attrs:{title:t.title}}),t._v(" "),e("div",{staticClass:"wrap"},[e("yd-infinitescroll",{ref:"infinitescrollDemo",attrs:{callback:t.getList}},["info"==t.model?e("div",{staticClass:"list",attrs:{slot:"list"},slot:"list"},t._l(t.items,function(t){return e("PriceList",{key:t.id,attrs:{item:t}})})):"article"==t.model?e("div",{staticClass:"list",attrs:{slot:"list"},slot:"list"},t._l(t.items,function(t){return e("ArticleList",{key:t.id,attrs:{item:t}})})):"phone"==t.model?e("div",{staticClass:"list",attrs:{slot:"list"},slot:"list"},t._l(t.items,function(t){return e("PhoneList",{key:t.id,attrs:{item:t}})})):t._e(),t._v(" "),e("Bottom",{attrs:{slot:"doneTip"},slot:"doneTip"}),t._v(" "),e("img",{attrs:{slot:"loadingTip",src:t.api.imgloading},slot:"loadingTip"})],1)],1)],1)},staticRenderFns:[]};var m=e("D8HT")(d,c,!1,function(t){e("A0V/")},"data-v-61348036",null);i.default=m.exports}});