index.js 3.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/index"],{2670:function(t,n,e){"use strict";e.r(n);var r=e("ecca"),i=e.n(r);for(var o in r)"default"!==o&&function(t){e.d(n,t,(function(){return r[t]}))}(o);n["default"]=i.a},"278f":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(){return r}));var r={uniList:function(){return e.e("uni_modules/uni-list/components/uni-list/uni-list").then(e.bind(null,"6832"))},uniListItem:function(){return e.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(e.bind(null,"9944"))},uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"97a2"))},uniLoadMore:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-load-more/components/uni-load-more/uni-load-more")]).then(e.bind(null,"2877"))}},i=function(){var t=this,n=t.$createElement;t._self._c},o=[]},"7a2f":function(t,n,e){"use strict";e.r(n);var r=e("278f"),i=e("2670");for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("eef7");var u,a=e("f0c5"),c=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],u);n["default"]=c.exports},"7a6e":function(t,n,e){"use strict";(function(t){e("d69c");r(e("66fd"));var n=r(e("7a2f"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},a8c5:function(t,n,e){},ecca:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e("a34a")),i=u(e("a0c2")),o=e("68aa");function u(t){return t&&t.__esModule?t:{default:t}}function a(t){return f(t)||l(t)||s(t)||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(t,n){if(t){if("string"===typeof t)return d(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,n):void 0}}function l(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function f(t){if(Array.isArray(t))return d(t)}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function m(t,n,e,r,i,o,u){try{var a=t[o](u),c=a.value}catch(s){return void e(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function p(t){return function(){var n=this,e=arguments;return new Promise((function(r,i){var o=t.apply(n,e);function u(t){m(o,r,i,u,a,"next",t)}function a(t){m(o,r,i,u,a,"throw",t)}u(void 0)}))}}var v={data:function(){return{list:[],more:"more",page:0,size:12,type:null}},mounted:function(){this.query()},onLoad:function(t){this.type=t.type},methods:{query:function(){var t=this;return p(r.default.mark((function n(){var e,u,c,s;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.page+=1,t.more="loading",n.next=4,i.default.getActivity({pageNum:t.page,pageSize:t.size,types:t.type});case 4:c=n.sent,s=(new Date).getTime(),null===(e=c.rows)||void 0===e||e.map((function(t){Date.parse(t.endTime);var n=Date.parse(t.regStartTime);return(0==t.status||s<n)&&(t.statusText="未开始"),3!==t.status&&s>n&&(t.statusText="进行中"),3==t.status&&(t.statusText="已结束"),t.image=o.BASE_URL.fileUrl+t.image,t})),(u=t.list).push.apply(u,a(c.rows)),t.more=t.page>=Math.ceil(c.total/t.size)?"noMore":"more";case 9:case"end":return n.stop()}}),n)})))()},btn:function(n){t.navigateTo({url:"/pages/activity/details?activityId=".concat(n.activityId)})}},onReachBottom:function(){"noMore"!=this.more&&(this.more="more",this.query())}};n.default=v}).call(this,e("543d")["default"])},eef7:function(t,n,e){"use strict";var r=e("a8c5"),i=e.n(r);i.a}},[["7a6e","common/runtime","common/vendor"]]]);