(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/discover/discoverTopic/index"],{"09f8":function(t,n,e){"use strict";e.r(n);var i=e("2893"),o=e.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(c);n["default"]=o.a},"0d54":function(t,n,e){"use strict";e.r(n);var i=e("fbdc"),o=e("09f8");for(var c in o)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(c);e("b1a9");var r=e("828b"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=a.exports},2893:function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("7ca3")),c=i(e("89cc")),r=e("eb8a"),a=e("8f59");function s(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?s(Object(e),!0).forEach((function(n){(0,o.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var l={data:function(){return{tabActive:0,scrollStatus:!1,contentList:[],loading:!1,params:{page:1,limit:20,topic_id:"",keyword:"",is_interest:0,order:2},topicName:"",count:1}},components:{emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("398a"))}.bind(null,e)).catch(e.oe)},waterfallsFlow:function(){e.e("components/discoverWaterfall/WaterfallsFlow").then(function(){return resolve(e("831d"))}.bind(null,e)).catch(e.oe)}},mixins:[c.default],computed:u(u({},(0,a.mapGetters)(["communityConfig"])),{},{navStyle:function(){return{backgroundColor:this.scrollStatus?"#fff":"transparent"}}}),provide:function(){return{flowLike:this.flowLike}},onPageScroll:function(n){n.scrollTop>50?this.scrollStatus=!0:n.scrollTop<50&&(this.scrollStatus=!1),t.$emit("scroll")},onLoad:function(t){this.params.topic_id=t.id||"",this.topicName=t.name||"",this.getList(),this.getCount()},methods:{createTo:function(){t.navigateTo({url:"/pages/discover/discoverCreate/index?topic_name="+this.topicName})},changeTab:function(t){this.tabActive=t,this.params.order=0==t?2:1,this.loading=!1,this.params.page=1,this.contentList=[],this.getList()},getList:function(){var t=this;this.loading||(this.loading=!0,(0,r.communityListApi)(this.params).then((function(n){var e=n.data,i=e.length<t.params.limit;t.contentList=t.contentList.concat(e),t.params.page++,t.loading=i})))},getCount:function(){var t=this;(0,r.communityTopicCountApi)(this.params.topic_id).then((function(n){t.count=n.data.count}))},flowLike:function(t){var n=this.contentList.findIndex((function(n){return t.id==n.id}));this.contentList[n].is_like=t.status,1==t.status?this.contentList[n].like_num++:this.contentList[n].like_num--}},onReachBottom:function(){this.getList()}};n.default=l}).call(this,e("df3c")["default"])},4205:function(t,n,e){},b1a9:function(t,n,e){"use strict";var i=e("4205"),o=e.n(i);o.a},dcc0:function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("f076");i(e("3240"));var o=i(e("0d54"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},fbdc:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=(this._self._c,this.__get_style([this.navStyle]));this.$mp.data=Object.assign({},{$root:{s0:n}})},o=[]}},[["dcc0","common/runtime","common/vendor"]]]);