webpackJsonp([29],{"3hHl":function(t,e){},QIc2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAASFBMVEUAAACZmZmAgYV/gYZ+gYV/goaAqqqBgYiAg4Z/goZ+gYV/gYV+goWAgoZ/goWEhIx+goaAg4f///9/goZ+goZ+goaDg4qAhIiFtVO7AAAAGHRSTlMABYbl/4cGTUyz6vPYfpsf8kQBvcDuJT6iOKunAAAAcklEQVR4Ae3PxQHDQBBDUcXz18y0/VcaZj4F/c4Dkp4xC4wrzIXaCLjBacOIdEWMaQN0FXzcQMKR5MmBqebbB1I2slsDbOW3B7RUUN4dqGqaewNtR687A1XHMGrLiM8HiprBa8dxRT9qL3TGiSwvGz1rAWshBf4WzVB8AAAAAElFTkSuQmCC"},kS88:function(t,e){},"uMb+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i("vAZe"),i("Au9i");var a={props:{title:{type:String},icon:{type:String},url:{type:String}},methods:{onclick:function(){this.$emit("onclick")}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"info-item-wrapper",on:{click:function(e){t.onclick()}}},[a("img",{staticClass:"info-item-icon",attrs:{src:t.icon}}),t._v(" "),a("label",{staticClass:"item-title info-item-title"},[t._v(t._s(t.title))]),t._v(" "),a("img",{staticClass:"indicator",attrs:{src:i("TNrS")}})])},staticRenderFns:[]};var r=i("VU/8")(a,o,!1,function(t){i("kS88")},"data-v-4ce07e21",null).exports,n=i("viA7"),s={data:function(){return{isLoaded:!1,page:1,items:[],isMore:0}},computed:{getTitle:function(){return this.$route.query.title?this.$route.query.title:"使用帮助"}},components:{HelpItem:r},mounted:function(){this.loadFirstPageData()},beforeRouteUpdate:function(t,e,i){i(),this.loadFirstPageData()},methods:{goBack:function(){this.$router.go(-1)},getArticleList:function(){var t=this,e=this.$route.query.id?this.$route.query.id:0;this.$route.query.title;Object(n.a)(e,1,10).then(function(e){e&&(t.items=e.articles)})},loadFirstPageData:function(){this.loadPageData(!0)},loadMorePageData:function(){this.loadPageData(!1)},loadPageData:function(t){var e=this,i=this.$route.query.id?this.$route.query.id:0,a=1;a=t?1:this.page+1;Object(n.a)(i,a,10).then(function(i){i&&i.articles&&(e.items=t?i.articles:e.items.concat(i.articles),e.isMore=i.paged.more,e.isLoaded=!0,i.paged&&i.paged.page&&(e.page=parseInt(i.paged.page)))},function(t){})},loadMore:function(){this.isMore&&this.loadMorePageData()},getHelpInfo:function(t){var e=t.url,i=t.title;e&&e.length?this.$router.push({name:"webPage",query:{url:e,title:i}}):this.$router.push({name:"help",query:{id:t.id,title:i}})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("mt-header",{staticClass:"header",attrs:{fixed:"",title:t.getTitle}},[a("header-item",{attrs:{slot:"left",isBack:!0},on:{onclick:function(e){t.goBack()}},slot:"left"})],1),t._v(" "),a("base-list",{staticClass:"list-wrapper",attrs:{items:t.items,isMore:t.isMore,isLoaded:t.isLoaded,isHideMore:""},on:{loadMore:t.loadMore}},t._l(t.items,function(e,o){return a("help-item",{key:o,staticClass:"section-footer",attrs:{icon:i("QIc2"),title:e.title,url:e.url},on:{onclick:function(i){t.getHelpInfo(e)}}})}))],1)},staticRenderFns:[]};var l=i("VU/8")(s,c,!1,function(t){i("3hHl")},"data-v-f48930fe",null);e.default=l.exports},viA7:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i("erh5"),o=function(t,e,i){return Object(a.a)("/v2/ecapi.article.list","POST",{id:t,page:e,per_page:i})}}});
//# sourceMappingURL=29.14c120fc0a99d68c747d.js.map