(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/community"],{"2e44":function(t,n,e){},"4d7d":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var o={uvIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(e.bind(null,"1509"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.postList,(function(n,e){var o=t.__get_orig(n),i=n.image&&n.image.length>0,u=i?n.image.split(","):null,a=n.communityCommentList&&n.communityCommentList.length>0,r=a?n.communityCommentList.length:null;return{$orig:o,g0:i,l0:u,g1:a,g2:r}})));t.$mp.data=Object.assign({},{$root:{l1:e}})},u=[]},"7fb2":function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("7eb4")),u=o(e("af34")),a=o(e("ee10")),r={name:"CommunityPage",data:function(){return{currentTab:"current",postList:[],pageNo:1,pageSize:10}},computed:{actionButtonText:function(){return"current"===this.currentTab?"我要留言":"随手拍"}},methods:{switchTab:function(t){this.currentTab=t,this.initData(),this.getPostList()},goToPostDetail:function(t){},openAction:function(){"current"===this.currentTab?this.goToComment():this.takePhoto()},takePhoto:function(){t.navigateTo({url:"/subPages/community/publishPost?page=photo"})},goToComment:function(){t.navigateTo({url:"/subPages/community/publishPost"})},getPostList:function(){var n=this;return(0,a.default)(i.default.mark((function e(){var o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.community.queryPostList({pageNo:n.pageNo,pageSize:n.pageSize,type:"current"===n.currentTab?0:1});case 2:o=e.sent,o.result.records.length?((a=n.postList).push.apply(a,(0,u.default)(o.result.records)),n.pageNo++):t.showToast({title:"暂无数据",icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},initData:function(){this.pageNo=1,this.postList=[]}},onShow:function(){var t=this;return(0,a.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.initData(),n.next=3,t.getPostList();case 3:case"end":return n.stop()}}),n)})))()},onReachBottom:function(){this.getPostList()},onPullDownRefresh:function(){var n=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n.initData(),e.next=3,n.getPostList();case 3:t.stopPullDownRefresh();case 4:case"end":return e.stop()}}),e)})))()}};n.default=r}).call(this,e("df3c")["default"])},c3d6:function(t,n,e){"use strict";var o=e("2e44"),i=e.n(o);i.a},c849:function(t,n,e){"use strict";e.r(n);var o=e("4d7d"),i=e("d9b3");for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e("c3d6");var a=e("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"4b95675a",null,!1,o["a"],void 0);n["default"]=r.exports},d9b3:function(t,n,e){"use strict";e.r(n);var o=e("7fb2"),i=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=i.a},f680:function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("a476");o(e("3240"));var i=o(e("c849"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])}},[["f680","common/runtime","common/vendor"]]]);