require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/discover/discover_note_topic/index"],{"0540":function(t,o,e){},"18a2":function(t,o,e){"use strict";e.d(o,"b",(function(){return i})),e.d(o,"c",(function(){return a})),e.d(o,"a",(function(){return n}));var n={WaterfallsFlow:function(){return Promise.all([e.e("common/vendor"),e.e("components/WaterfallsFlow/WaterfallsFlow")]).then(e.bind(null,"7fbb"))}},i=function(){var t=this.$createElement,o=(this._self._c,this.topicDetails.noteNum&&this.topicDetails.noteNum<1e4?null:this.topicDetails.noteNum&&(this.topicDetails.noteNum/1e4).toFixed(2)+"万篇内容"),e=this.noteTopicList.length;this.$mp.data=Object.assign({},{$root:{g0:o,g1:e}})},a=[]},"61b7":function(t,o,e){"use strict";e.r(o);var n=e("b66f"),i=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(a);o["default"]=i.a},6790:function(t,o,e){"use strict";e.r(o);var n=e("18a2"),i=e("61b7");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(o,t,(function(){return i[t]}))}(a);e("fa72");var c=e("828b"),s=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"51be8bfe",null,!1,n["a"],void 0);o["default"]=s.exports},b66f:function(t,o,e){"use strict";(function(t){var n=e("47a9");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;n(e("4d9b"));var i=e("785a"),a=getApp(),c={components:{WaterfallsFlow:function(){Promise.all([e.e("common/vendor"),e.e("components/WaterfallsFlow/WaterfallsFlow")]).then(function(){return resolve(e("7fbb"))}.bind(null,e)).catch(e.oe)}},data:function(){return{theme:a.globalData.theme,params:{page:1,limit:10,topicId:0,type:"hot"},loadend:!1,loading:!1,noteTopicList:[],topicDetails:{}}},watch:{"params.type":{handler:function(t,o){t&&(this.noteTopicList=[],this.getNoteTopicList())},deep:!0}},onLoad:function(t){this.params.topicId=t.topicId,this.getTopicCount(),this.getNoteTopicList()},onReachBottom:function(){this.getNoteTopicList()},onPageScroll:function(o){t.$emit("scroll")},methods:{publish:function(){t.navigateTo({url:"/pages/discover/discover_release/index"})},onChange:function(t){this.params.page=1,this.params.type=t,this.loading=!1,this.loadend=!1},getTopicCount:function(){var o=this;(0,i.topicCountApi)(this.params.topicId).then((function(t){o.topicDetails=t.data})).catch((function(o){t.showToast({title:o,icon:"none"})}))},getNoteTopicList:function(){var o=this;this.loadend||(this.loading=!0,(0,i.noteTopicListApi)(this.params).then((function(t){o.$set(o.params,"page",o.params.page+1),o.loadend=o.params.page>t.data.totalPage,o.noteTopicList=o.noteTopicList.concat(t.data.list||[]),o.loading=!1})).catch((function(e){o.loading=!1,t.showToast({title:e,icon:"none"})})))}}};o.default=c}).call(this,e("df3c")["default"])},c223:function(t,o,e){"use strict";(function(t,o){var n=e("47a9");e("1d3c");n(e("3240"));var i=n(e("6790"));t.__webpack_require_UNI_MP_PLUGIN__=e,o(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},fa72:function(t,o,e){"use strict";var n=e("0540"),i=e.n(n);i.a}},[["c223","common/runtime","common/vendor"]]]);