(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/index"],{165:function(n,e,t){"use strict";(function(n){t(5);r(t(4));var e=r(t(166));function r(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(1)["createPage"])},166:function(n,e,t){"use strict";t.r(e);var r=t(167),o=t(169);for(var i in o)"default"!==i&&function(n){t.d(e,n,(function(){return o[n]}))}(i);t(172);var u,a=t(11),c=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);c.options.__file="pages/activity/index.vue",e["default"]=c.exports},167:function(n,e,t){"use strict";t.r(e);var r=t(168);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},168:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return r}));try{r={uniList:function(){return t.e("uni_modules/uni-list/components/uni-list/uni-list").then(t.bind(null,275))},uniListItem:function(){return t.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(t.bind(null,282))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,314))},uniLoadMore:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-load-more/components/uni-load-more/uni-load-more")]).then(t.bind(null,296))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement;n._self._c},i=!1,u=[];o._withStripped=!0},169:function(n,e,t){"use strict";t.r(e);var r=t(170),o=t.n(r);for(var i in r)"default"!==i&&function(n){t.d(e,n,(function(){return r[n]}))}(i);e["default"]=o.a},170:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(t(18)),o=u(t(171)),i=t(23);function u(n){return n&&n.__esModule?n:{default:n}}function a(n){return d(n)||l(n)||s(n)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(n,e){if(n){if("string"===typeof n)return f(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(n,e):void 0}}function l(n){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}function d(n){if(Array.isArray(n))return f(n)}function f(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function m(n,e,t,r,o,i,u){try{var a=n[i](u),c=a.value}catch(s){return void t(s)}a.done?e(c):Promise.resolve(c).then(r,o)}function p(n){return function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function u(n){m(i,r,o,u,a,"next",n)}function a(n){m(i,r,o,u,a,"throw",n)}u(void 0)}))}}var v={data:function(){return{list:[],more:"more",page:0,size:12,type:null}},mounted:function(){this.query()},onLoad:function(n){this.type=n.type},methods:{query:function(){var n=this;return p(r.default.mark((function e(){var t,u,c,s;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n.page+=1,n.more="loading",e.next=4,o.default.getActivity({pageNum:n.page,pageSize:n.size,types:n.type});case 4:c=e.sent,s=(new Date).getTime(),null===(t=c.rows)||void 0===t||t.map((function(n){Date.parse(n.endTime);var e=Date.parse(n.regStartTime);return(0==n.status||s<e)&&(n.statusText="未开始"),3!==n.status&&s>e&&(n.statusText="进行中"),3==n.status&&(n.statusText="已结束"),n.image=i.BASE_URL.fileUrl+n.image,n})),(u=n.list).push.apply(u,a(c.rows)),n.more=n.page>=Math.ceil(c.total/n.size)?"noMore":"more";case 9:case"end":return e.stop()}}),e)})))()},btn:function(e){n.navigateTo({url:"/pages/activity/details?activityId=".concat(e.activityId)})}},onReachBottom:function(){"noMore"!=this.more&&(this.more="more",this.query())}};e.default=v}).call(this,t(1)["default"])},172:function(n,e,t){"use strict";t.r(e);var r=t(173),o=t.n(r);for(var i in r)"default"!==i&&function(n){t.d(e,n,(function(){return r[n]}))}(i);e["default"]=o.a},173:function(n,e,t){}},[[165,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/activity/index.js.map