1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-active-active"],{"1da1":function(t,e,i){"use strict";function n(t,e,i,n,r,a,o){try{var c=t[a](o),s=c.value}catch(l){return void i(l)}c.done?e(s):Promise.resolve(s).then(n,r)}function r(t){return function(){var e=this,i=arguments;return new Promise((function(r,a){var o=t.apply(e,i);function c(t){n(o,r,a,c,s,"next",t)}function s(t){n(o,r,a,c,s,"throw",t)}c(void 0)}))}}i("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},2955:function(t,e,i){"use strict";i.r(e);var n=i("ef8f"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"2abb":function(t,e,i){"use strict";var n=i("d51b"),r=i.n(n);r.a},"73f1":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"active"},[t.list.length>0?n("v-uni-view",{staticClass:"list"},t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"list-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e.id)}}},[null!=e.type?n("v-uni-view",{staticClass:"tips"},[t._v(t._s(e.type))]):t._e(),n("v-uni-image",{attrs:{src:"path"!=e.cover?e.cover:"../../static/images/active.png",mode:""}}),n("v-uni-view",{staticClass:"right"},[n("v-uni-view",{staticClass:"title"},[t._v(t._s(null==e.title?"--":e.title))]),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("主持人:"+t._s(null==e.compere?"--":e.compere))])],1),n("v-uni-view",{staticClass:"time"},[t._v("活动日期:"+t._s(null==e.day?"--":e.day))])],1),n("v-uni-view",{staticClass:"files",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.tofile(e.id)}}},[t._v("附件")])],1)})),1):n("v-uni-view",{staticClass:"empty"},[n("v-uni-image",{attrs:{src:i("7408"),mode:"widthFix"}}),n("v-uni-view",{staticClass:"empty-text"},[t._v("暂无活动")])],1)],1)},a=[]},7408:function(t,e,i){t.exports=i.p+"static/img/pass.669569c2.png"},"96cf":function(t,e){!function(e){"use strict";var i,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag",l="object"===typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{u=e.regeneratorRuntime=l?t.exports:{},u.wrap=x;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},g={};g[o]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(z([])));m&&m!==n&&r.call(m,o)&&(g=m);var w=k.prototype=_.prototype=Object.create(g);L.prototype=w.constructor=k,k.constructor=L,k[s]=L.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(w),t},u.awrap=function(t){return{__await:t}},E(P.prototype),P.prototype[c]=function(){return this},u.AsyncIterator=P,u.async=function(t,e,i,n){var r=new P(x(t,e,i,n));return u.isGeneratorFunction(e)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},E(w),w[s]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){while(e.length){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},u.values=z,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=i)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=i),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),O(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;O(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:z(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=i),v}}}function x(t,e,i,n){var r=e&&e.prototype instanceof _?e:_,a=Object.create(r.prototype),o=new S(n||[]);return a._invoke=C(t,i,o),a}function b(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(n){return{type:"throw",arg:n}}}function _(){}function L(){}function k(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function P(t){function e(i,n,a,o){var c=b(t[i],t,n);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,a,o)}),(function(t){e("throw",t,a,o)})):Promise.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,o)}))}o(c.arg)}var i;function n(t,n){function r(){return new Promise((function(i,r){e(t,n,i,r)}))}return i=i?i.then(r,r):r()}this._invoke=n}function C(t,e,i){var n=f;return function(r,a){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===r)throw a;return G()}i.method=r,i.arg=a;while(1){var o=i.delegate;if(o){var c=j(o,i);if(c){if(c===v)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===f)throw n=h,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=p;var s=b(t,e,i);if("normal"===s.type){if(n=i.done?h:d,s.arg===v)continue;return{value:s.arg,done:i.done}}"throw"===s.type&&(n=h,i.method="throw",i.arg=s.arg)}}}function j(t,e){var n=t.iterator[e.method];if(n===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=i,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=b(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=i),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function F(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function z(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){while(++n<t.length)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=i,e.done=!0,e};return a.next=a}}return{next:G}}function G(){return{value:i,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},a3f5:function(t,e,i){"use strict";i.r(e);var n=i("73f1"),r=i("2955");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("2abb");var o,c=i("f0c5"),s=Object(c["a"])(r["default"],n["b"],n["c"],!1,null,"8249d300",null,!1,n["a"],o);e["default"]=s.exports},ccd3:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-8249d300]{position:relative;background-color:#eee}.add[data-v-8249d300]{position:fixed;bottom:75px;right:15px;text-align:center;z-index:6}.add .add-buttom[data-v-8249d300]{width:36px;height:36px;background:#6a6a6a;display:inline-block;text-align:center;line-height:36px;opacity:1;border-radius:50%}.add .add-tips[data-v-8249d300]{font-size:10px;font-family:PingFang SC;font-weight:700;line-height:14px;color:#292929;opacity:1;margin-top:3px}.active[data-v-8249d300]{position:relative;overflow:hidden;height:100%}.active .tab[data-v-8249d300]{display:flex;align-items:center;width:80%;margin:0 auto}.active .tab .item[data-v-8249d300],\n.active .tab .active-item[data-v-8249d300]{margin-top:17px;font-size:18px;font-family:PingFang SC;font-weight:700;line-height:20px;color:hsla(0,0%,44.3%,.43);opacity:.43;opacity:1;flex:1;text-align:center}.active .tab .item uni-view[data-v-8249d300],\n.active .tab .active-item uni-view[data-v-8249d300]{display:block}.active .tab .item .week[data-v-8249d300],\n.active .tab .active-item .week[data-v-8249d300]{padding-bottom:12px}.active .tab .item .line[data-v-8249d300],\n.active .tab .active-item .line[data-v-8249d300]{width:48px;height:4px;background:#3b7653;opacity:1;border-radius:1px;display:block;margin:0 auto}.active .tab .active-item[data-v-8249d300]{font-size:18px;font-family:PingFang SC;font-weight:700;line-height:20px;color:#3b7653}.active .tab .active-item .week[data-v-8249d300]{padding-bottom:8px}.active .list[data-v-8249d300]{padding:15px}.active .list .list-item[data-v-8249d300]{background:#fff;opacity:1;border-radius:12px;padding:15px 15px;position:relative;display:flex;align-items:center;margin-bottom:10px;overflow:hidden}.active .list .list-item .tips[data-v-8249d300]{position:absolute;width:62px;height:21px;text-align:center;line-height:21px;background:rgba(255,0,0,.6);top:0;right:0;opacity:1;border-radius:0 12px 0 12px;font-size:12px;font-family:PingFang SC;color:#fff}.active .list .list-item uni-image[data-v-8249d300]{flex:0 0 65px;width:65px;height:60px;margin-right:6px}.active .list .list-item .right[data-v-8249d300]{flex:1;padding-left:5px;width:calc(100% - 150px)}.active .list .list-item .right .title[data-v-8249d300]{font-size:16px;font-family:PingFang SC;font-weight:700;line-height:20px;color:#282828;opacity:1;white-space:nowrap;\n /*设置不换行*/overflow:hidden;\n /*设置隐藏*/text-overflow:ellipsis\n /*设置隐藏部分为省略号*/}.active .list .list-item .right .text[data-v-8249d300]{font-size:13px;font-family:PingFang SC;font-weight:400;line-height:20px;color:rgba(40,40,40,.47);margin-top:3px;width:230px;display:flex}.active .list .list-item .right .text uni-text[data-v-8249d300]{display:block;width:115px;white-space:nowrap;\n /*设置不换行*/overflow:hidden;\n /*设置隐藏*/text-overflow:ellipsis\n /*设置隐藏部分为省略号*/}.active .list .list-item .right .address[data-v-8249d300]{font-size:13px;font-family:PingFang SC;font-weight:400;line-height:20px;color:rgba(40,40,40,.47);margin-top:3px;width:230px}.active .list .list-item .right .time[data-v-8249d300]{font-size:10px;font-family:PingFang SC;font-weight:400;line-height:20px;color:rgba(40,40,40,.47);width:230px;white-space:nowrap;\n /*设置不换行*/overflow:hidden;\n /*设置隐藏*/text-overflow:ellipsis\n /*设置隐藏部分为省略号*/}.active .list .list-item .files[data-v-8249d300]{color:#e65538}.active .empty[data-v-8249d300]{width:100%;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.active .empty uni-image[data-v-8249d300]{width:150px}body.?%PAGE?%[data-v-8249d300]{background-color:#eee}',""]),t.exports=e},d51b:function(t,e,i){var n=i("ccd3");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("a52b93da",n,!0,{sourceMap:!1,shadowMode:!1})},ef8f:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var r=n(i("1da1")),a=getApp(),o={data:function(){return{current_tab:0,list:[],page:1,last:!1}},onLoad:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.page=1,t.list=[],t.last=!1,t.getList();case 4:case"end":return e.stop()}}),e)})))()},onReachBottom:function(){this.last||this.page++,console.log(this.page),this.getList()},methods:{getList:function(){var t=this,e={category_id:this.current_tab,page:this.page};a.request("/organization-activity",e,"get").then((function(e){console.log(e,"ppp");var i=e.data.data.data;console.log(e,"course1"),t.page>1&&0==i.length?(uni.showToast({title:"暂无更多",icon:"none"}),t.last=!0):t.list=t.list.concat(i)}))},detail:function(t){console.log("详情"),uni.navigateTo({url:"./details?id="+t})},tofile:function(t){uni.navigateTo({url:"./files?id="+t})}}};e.default=o}}]);
|