(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesActivity/index/index"],{"0bc8":function(t,e,i){"use strict";var n=i("9b45"),a=i.n(n);a.a},"17c1":function(t,e,i){"use strict";i.r(e);var n=i("326e"),a=i("b633");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("0bc8");var r=i("828b"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},"2afc":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("af34")),o=n(i("7ca3")),r=i("8f59");function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var s={components:{activityItem:function(){Promise.all([i.e("common/vendor"),i.e("pages/component/activity/index")]).then(function(){return resolve(i("6245"))}.bind(null,i)).catch(i.oe)}},data:function(){return{loadEnd:!1,titleBarHeight:0,filterList:[{name:"全部",state:""},{name:"报名中",state:1},{name:"进行中",state:2},{name:"已结束",state:3}],selectFilter:"",activityList:[],page:1,limit:20,hasMore:!1,showLogin:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){(0,o.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},(0,r.mapState)({themeColor:function(t){return t.app.themeColor},shareImage:function(t){return t.app.shareImage},shareTitle:function(t){return t.app.shareTitle},loginImg:function(t){return t.app.loginImg}})),mounted:function(){var e=t.getSystemInfoSync().statusBarHeight,i=t.getMenuButtonBoundingClientRect();this.titleBarHeight=e+2*(i.top-e)+i.height},onLoad:function(){var e=this;t.showLoading({title:"加载中"}),this.getActivityList((function(){t.hideLoading(),e.loadEnd=!0}))},onPullDownRefresh:function(){this.page=1,this.getActivityList((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getActivityList())},onShareAppMessage:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},onShareTimeline:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},methods:{toSearch:function(){this.$util.toPage({mode:1,path:"/pagesActivity/search/index"})},changeFilter:function(t){this.selectFilter=t,this.getActivityList()},getActivityList:function(e){var i=this;this.$util.request("activity.list",{page:this.page,limit:this.limit,state:this.selectFilter}).then((function(n){if(e&&e(),1==n.code){var o=n.data.data;i.hasMore=i.page<n.data.total/i.limit,i.activityList=1==i.page?o:[].concat((0,a.default)(i.activityList),(0,a.default)(o))}else t.showToast({title:n.msg,icon:"none"})})).catch((function(t){401==t?i.showLogin=!0:console.error("获取活动列表 ",t)}))},toLogin:function(){t.redirectTo({url:"/pagesActivity/index/index"})}}};e.default=s}).call(this,i("df3c")["default"])},"326e":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.activityList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},"9b45":function(t,e,i){},b633:function(t,e,i){"use strict";i.r(e);var n=i("2afc"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},f8a7:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("aa6c");n(i("3240"));var a=n(i("17c1"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])}},[["f8a7","common/runtime","common/vendor"]]]);