(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/topic/list"],{"113c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){n.e("components/page-component/app-special-topic/app-special-topic-list").then(function(){return resolve(n("e44f"))}.bind(null,n)).catch(n.oe)},u=1,s={},f=!1,l=!1,p={name:"list",components:{appSpecialTopicList:c},data:function(){return{list:[],typeList:[],tabCurrentIndex:0}},computed:r(r({},(0,i.mapState)({bar_title:function(t){return t.mallConfig.bar_title}})),(0,i.mapGetters)("mallConfig",{getTheme:"getTheme"})),onLoad:function(t){u=1,f=!1,l=!1,"undefined"!=typeof t.type&&(s.type=t.type),this.loadData(),this.loadType()},onReachBottom:function(){f||this.loadData()},onShareAppMessage:function(t){var e=this.$platDiff.route(),n="专题列表";for(var i in this.bar_title)if(this.bar_title[i].value==e){n=this.bar_title[i].new_name;break}return this.$shareAppMessage({title:n,path:"/pages/topic/list"})},methods:{loadData:function(){var t=this;l||(this.$showLoading(),l=!0,s.page=u,this.$request({url:this.$api.topic.list,data:s}).then((function(e){l=!1,t.$hideLoading(),0===e.code&&(1===u&&(t.list=[]),e.data.list.length>0?(t.list=t.list.concat(e.data.list),u++):f=!0)})).catch((function(e){t.$hideLoading(),l=!1})))},loadType:function(){var t=this;this.$request({url:this.$api.topic.type}).then((function(e){if(0===e.code&&e.data.list.length>0){var n=[{id:0,name:"全部"},{id:-1,name:"精选"}];for(var i in t.typeList=n.concat(e.data.list),t.typeList)if(t.typeList[i].id==s.type){t.tabCurrentIndex=i;break}}})).catch((function(t){l=!1}))},tabClick:function(t){u=1,f=!1;var e=this.typeList[t].id;this.tabCurrentIndex=t,s={page:u,type:e},this.loadData()}}};e.default=p},"4c7d":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},r=[]},bcfd:function(t,e,n){"use strict";n.r(e);var i=n("4c7d"),a=n("dc97");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("c6b7");var o,c=n("f0c5"),u=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"06ad228a",null,!1,i["a"],o);e["default"]=u.exports},c6b7:function(t,e,n){"use strict";var i=n("d3f5"),a=n.n(i);a.a},d3f5:function(t,e,n){},dc97:function(t,e,n){"use strict";n.r(e);var i=n("113c"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},dd2a:function(t,e,n){"use strict";(function(t){n("b8bc");i(n("66fd"));var e=i(n("bcfd"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["dd2a","common/runtime","common/vendor"]]]);