webpackJsonp([10],{ITIv:function(t,n){},rq6n:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("lC5x"),c=e.n(a),i=e("J0Oq"),r=e.n(i),s=e("VZvc"),l={data:function(){return{isMobile:s.a.mobile,lists:[],active:null}},mounted:function(){var t=this;return r()(c.a.mark(function n(){var e;return c.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$http.get("/case",{params:{page:0,limit:100}});case 2:e=n.sent.data,console.log(e),t.lists=t.analysis(e.content.data);case 5:case"end":return n.stop()}},n,t)}))()},methods:{analysis:function(t){for(var n=[],e=function(e){var a=t[e],c=n.findIndex(function(t){return t.calc+a.type<=4}),i=void 0;~c?i=n[c]:(i={children:[],calc:0},n.push(i)),i.calc+=a.type,i.children.push(a)},a=0;a<t.length;a++)e(a);return n.map(function(t){var n=[{children:[],calc:2},{children:[],calc:2}];return t.children.forEach(function(t){var e=n.findIndex(function(n){return n.calc-t.type>=0});~e&&(n[e].children.push(t),n[e].styles=[e?"fr":"fl",2===t.type?"big":"dig"],n[e].calc-=t.type)}),n})}}},o={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",t._l(t.lists,function(n,a){return e("div",{key:a,staticClass:"clear categ",on:{touchend:function(n){t.active=null}}},t._l(n,function(n,a){return e("div",{key:a,class:n.styles},t._l(n.children,function(n){return e("div",{key:n.id,staticClass:"article",class:{active:n===t.active},on:{touchend:function(e){e.stopPropagation(),t.active=n}}},[e("div",[e("img",{attrs:{src:n.cover,alt:""}}),t._v(" "),e("div",{staticClass:"dialog"},[e("div",[e("router-link",{attrs:{to:{name:"case_details",params:{id:n.id}}}},[t._v("详细内容")])],1)])]),t._v(" "),e("p",[t._v(t._s(n.title))])])}))}))}))},staticRenderFns:[]};var u=e("C7Lr")(l,o,!1,function(t){e("ITIv")},"data-v-582495c7",null);n.default=u.exports}});
//# sourceMappingURL=10.b5a59cdf1b392333a093.js.map