(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/discover/discoverVideo/index"],{"12b2":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("f076");i(e("3240"));var o=i(e("5624"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"2ce8":function(t,n,e){"use strict";e.r(n);var i=e("3645"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=o.a},3645: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")),r=i(e("89cc")),c=e("eb8a"),a=(e("92f9"),e("769c"),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}var u={name:"discoverVideo",data:function(){return{contentList:[],loading:!1,params:{page:1,limit:10,topic_id:"",keyword:"",is_interest:0,content_type:2,start_id:"",relation_id:""},infoData:{},configData:{community_status:1,community_comment_add:1,community_comment_status:1},current:0}},mixins:[r.default],components:{swiperVideo:function(){e.e("components/discoverVideo/index").then(function(){return resolve(e("5e30"))}.bind(null,e)).catch(e.oe)}},provide:function(){return{flowLike:this.flowLike}},onPageScroll:function(n){t.$emit("scroll")},computed:function(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}({},(0,a.mapGetters)(["isLogin","uid"])),onLoad:function(t){this.params.start_id=t.id,t.relation_id&&this.$set(this.params,"relation_id",t.relation_id),this.getConfig(),this.getList()},methods:{getConfig:function(){var t=this;(0,c.getCommunityConfig)().then((function(n){t.configData=n.data}))},getList:function(){var t=this;this.loading||(this.loading=!0,(0,c.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})))},followUser:function(t){return this.contentList[t.index].is_follow=1,this.$util.Tips({title:"关注成功"})},beforeRequest:function(t){this.current=t,this.contentList.length-1==t&&this.getList()},likeFun:function(t){this.contentList[t.index].is_like=t.status,1==t.status?this.contentList[t.index].like_num++:this.contentList[t.index].like_num--},resShare:function(t){this.infoData=t},getShareInfo:function(t){var n=t&&t.target&&t.target.dataset?t.target.dataset.shareId:"";if(n){var e=this.contentList.find((function(t){return String(t.id)===String(n)}));if(e)return this.current=this.contentList.findIndex((function(t){return String(t.id)===String(n)})),e}return this.contentList[this.current]||this.contentList[0]||{}}},onReachBottom:function(){this.getList()},onShareAppMessage:function(t){var n=this.getShareInfo(t);return n.id?{title:n.title||n.content,imageUrl:n.image,path:"/pages/discover/".concat(1==n.content_type?"discoverDetails":"discoverVideo","/index?id=").concat(n.id,"&spid=").concat(this.uid,"&relation_id=").concat(this.params.relation_id)}:{}},onShareTimeline:function(t){var n=this.getShareInfo(t);return n.id?{title:n.title||n.content,imageUrl:n.image,path:"/pages/discover/".concat(1==n.content_type?"discoverDetails":"discoverVideo","/index?id=").concat(n.id,"&spid=").concat(this.uid,"&relation_id=").concat(this.params.relation_id)}:{}}};n.default=u}).call(this,e("df3c")["default"])},"4c4a":function(t,n,e){},5624:function(t,n,e){"use strict";e.r(n);var i=e("bd16"),o=e("2ce8");for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("c754");var c=e("828b"),a=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=a.exports},bd16: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;this._self._c},o=[]},c754:function(t,n,e){"use strict";var i=e("4c4a"),o=e.n(i);o.a}},[["12b2","common/runtime","common/vendor"]]]);