(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04ebed49"],{"181f":function(t,i,a){},"542c":function(t,i,a){"use strict";a.r(i);var n=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"ContainerWidth"},[a("el-main",{staticClass:"block-div"},[a("div",{},[t.listData.length>0?a("div",[a("ContentList",{attrs:{listData:t.listData}}),a("div",{staticClass:"block textCenter"},[a("el-pagination",{attrs:{"current-page":t.pagination.pageIndex,"page-sizes":[10,20,30,40],"page-size":parseInt(t.pagination.pageSize),layout:"total, sizes, prev, pager, next, jumper",total:parseInt(t.total)},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1):a("div",{staticClass:"textCenter"},[t._v("没有数据...")])]),a("van-list",{staticClass:"mobile",attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(i){t.loading=i},expression:"loading"}},[a("ContentList",{attrs:{listData:t.listData}})],1)],1)],1)},e=[],s=a("5530"),c=(a("d81d"),a("99af"),a("8f3b")),o=a("22ce"),l=a("403a"),d={components:{ContentList:c["default"]},data:function(){return{loading:!1,finished:!1,classIficationId:this.$route.query.id,listData:[],pagination:{pageIndex:1,pageSize:10},total:""}},mounted:function(){this._getSomeClassIfication()},watch:{$route:function(t,i){t.query.id!=this.classIficationId&&(this.listData=[],this.pagination={pageIndex:1,pageSize:10},this.loading=!1,this.finished=!1,this.classIficationId=t.query.id,this._getSomeClassIfication())}},methods:{_getSomeClassIfication:function(){var t=this;Object(o["i"])(Object(s["a"])(Object(s["a"])({},this.pagination),{},{classificationid:this.classIficationId})).then((function(i){if(i.data.length>0){var a=i.data.map((function(t){return Object(s["a"])(Object(s["a"])({},t),{},{img:t.item_image?JSON.parse(t.item_image)[0].path:"",item_content:Object(l["a"])(t.item_content)})})),n=JSON.parse(JSON.stringify(t.listData))||[];t.listData=n.concat(a),t.total=i.total}}))},handleSizeChange:function(t){this.pagination.pageSize=t,this.listData=[],this._getSomeClassIfication()},handleCurrentChange:function(t){this.pagination.pageIndex=t,this.listData=[],this._getSomeClassIfication()},onLoad:function(){this._getSomeClassIfication()}}},r=d,f=(a("c5ac"),a("2877")),u=Object(f["a"])(r,n,e,!1,null,"7fb34431",null);i["default"]=u.exports},"8f3b":function(t,i,a){"use strict";a.r(i);var n=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",t._l(t.listData,(function(i){return a("div",{key:i.id},[a("div",{staticClass:"flex content",on:{click:function(a){return t.push("/detail",{id:i.articleid})}}},[i.img?a("img",{attrs:{src:"/obpm"+i.img,alt:""}}):t._e(),a("div",{staticClass:"right-content"},[a("div",{staticClass:"title-chi nowrap-1",domProps:{innerHTML:t._s(i.item_title)}}),a("div",{staticClass:"nowrap-2",domProps:{innerHTML:t._s(i.item_content)}}),a("div",{staticClass:"ident-ification"},[a("span",{staticClass:"type",on:{click:function(a){return a.stopPropagation(),t.goToType(i)}}},[t._v(t._s(i.item_article))]),a("div",{staticClass:"floatRight"},[a("span",{staticClass:"child"},[a("i",{staticClass:"el-icon-view"}),t._v(t._s(i.item_readcount))]),a("el-divider",{attrs:{direction:"vertical"}}),a("span",{staticClass:"child"},[a("i",{staticClass:"el-icon-time"}),t._v(t._s(i.item_time))])],1)])])]),a("el-divider")],1)})),0)},e=[],s=a("5530"),c=(a("c740"),a("05b2")),o=a("2f62"),l={mixins:[c["a"]],props:{listData:{type:Array,default:function(){}}},computed:Object(s["a"])({},Object(o["b"])(["addMenuData"])),data:function(){return{}},mounted:function(){},methods:{goToType:function(t){console.log(t);var i=this.addMenuData.findIndex((function(i){if(i.item_classify_name==t.item_article)return!0}));this.push("/DynamicPage"+i,{id:t.classificationid})}}},d=l,r=(a("ceff"),a("2877")),f=Object(r["a"])(d,n,e,!1,null,"cc28d41a",null);i["default"]=f.exports},c5ac:function(t,i,a){"use strict";a("edab")},c740:function(t,i,a){"use strict";var n=a("23e7"),e=a("b727").findIndex,s=a("44d2"),c="findIndex",o=!0;c in[]&&Array(1)[c]((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{findIndex:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),s(c)},ceff:function(t,i,a){"use strict";a("181f")},edab:function(t,i,a){}}]);