2 lines
4.7 KiB
JavaScript
2 lines
4.7 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/service"],{121:function(t,n,e){"use strict";(function(t,n){var i=e(4);e(26);i(e(25));var o=i(e(90));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e(1)["default"],e(2)["createPage"])},90:function(t,n,e){"use strict";e.r(n);var i=e(91),o=e(93);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e(95);var c,r=e(42),s=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"35504a62",null,!1,i["components"],c);s.options.__file="pages/index/service.vue",n["default"]=s.exports},91:function(t,n,e){"use strict";e.r(n);var i=e(92);e.d(n,"render",(function(){return i["render"]})),e.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(n,"components",(function(){return i["components"]}))},92:function(t,n,e){"use strict";var i;e.r(n),e.d(n,"render",(function(){return o})),e.d(n,"staticRenderFns",(function(){return c})),e.d(n,"recyclableRender",(function(){return a})),e.d(n,"components",(function(){return i}));try{i={tnNavBar:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(e.bind(null,406))},tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,420))},tnTabs:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(e.bind(null,428))},tnLoadMore:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-load-more/tn-load-more")]).then(e.bind(null,435))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.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 t=this,n=t.$createElement,e=(t._self._c,t.__map(t.actList,(function(n,e){var i=t.__get_orig(n),o=t.formatTime(n.activity_start_time),a=t.formatTime(n.activity_end_time);return{$orig:i,m0:o,m1:a}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},a=!1,c=[];o._withStripped=!0},93:function(t,n,e){"use strict";e.r(n);var i=e(94),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},94:function(t,n,e){"use strict";(function(t){var i=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e(18)),a=e(33),c=i(e(30)),r={data:function(){return{currentIndex:-1,tabbarList:[{title:"首页",activeIcon:"/static/01_1.png",inactiveIcon:"/static/01.png"},{title:"通讯录",activeIcon:"/static/02_2.png",inactiveIcon:"/static/02.png"},{title:"青企圈",activeIcon:"/static/03_3.png",inactiveIcon:"/static/03.png"},{title:"个人中心",activeIcon:"/static/04_4.png",inactiveIcon:"/static/04.png"}],current:0,load_status:"loading ",tabList:[{name:"全部",id:0},{name:"协会活动",id:1},{name:"调查问卷",id:2},{name:"公益捐赠",id:3},{name:"学习培训",id:4}],apiImgUrl:this.$store.state.imgUrl,content:"",topCurrent:0,actList:[],page:1}},onLoad:function(t){console.log(t),"undefined"!=typeof t.type&&(this.current=t.type),this.getActivityIndex()},methods:{formatTime:function(t){return t.split(" ")[0]},switchTabbar:function(n){console.log(n),t.$emit("depId",{index:n}),t.navigateBack()},onsubmit:function(){this.page=1,this.actList=[],this.getActivityIndex()},tabChange:function(t){console.log(t),this.current=t,this.page=1,this.actList=[],this.getActivityIndex()},ReachBottom:function(){console.log("service"),this.page=this.page+1,this.getActivityIndex()},getNewInfo:function(){this.current=0,this.page=1,this.actList=[],this.getActivityIndex()},getActivityIndex:function(){var n=this,e=this.tabList[this.current].id;(0,a.activityIndex)({association_id:c.default.state.Gid,page:this.page,size:10,activity_name:this.content,activity_type:e}).then((function(t){var e;(console.log(t),1==t.code)?(e=n.actList).push.apply(e,(0,o.default)(t.data.ret)):n.load_status="nomore"})).catch((function(n){t.showToast({title:n,duration:2e3})}))},goBack:function(){getCurrentPages().length>1?t.navigateBack():t.redirectTo({url:"/pages/index/index"})},openUrl:function(n){t.navigateTo({url:n})}}};n.default=r}).call(this,e(2)["default"])},95:function(t,n,e){"use strict";e.r(n);var i=e(96),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},96:function(t,n,e){}},[[121,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/service.js.map
|