activeProgram.467aec4e.js 2.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["activeProgram"],{"6a6f":function(t,e,a){"use strict";var n=a("ea5e"),r=a.n(n);r.a},ea5e:function(t,e,a){},f132:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"activeProgram"},[t.dataShow?a("van-cell-group",{attrs:{border:!1}},t._l(t.dataList,function(e,n){return a("van-cell",{key:n,staticClass:"activeItem",attrs:{title:e.activityName,"title-class":"titleStyle",value:e.studentNum+"人","value-class":"valueStyle","is-link":""},on:{click:function(a){return t.onDetail(e)}}})}),1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无活动方案"}})],1)},r=[],i=a("a34a"),o=a.n(i),c=a("d678"),s=a("ef13");function u(t){return f(t)||v(t)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function v(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function f(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}function d(t,e,a,n,r,i,o){try{var c=t[i](o),s=c.value}catch(u){return void a(u)}c.done?e(s):Promise.resolve(s).then(n,r)}function h(t){return function(){var e=this,a=arguments;return new Promise(function(n,r){var i=t.apply(e,a);function o(t){d(i,n,r,o,c,"next",t)}function c(t){d(i,n,r,o,c,"throw",t)}o(void 0)})}}var p={name:"activeProgram",components:{MEmpty:c["a"]},data:function(){return{dataShow:!0,dataList:[]}},mounted:function(){var t=this.$route.query;console.log(t.Authorization),t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="活动方案",this.getActiveList()},methods:{getActiveList:function(){var t=h(o.a.mark(function t(){var e;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(s["e"])();case 3:e=t.sent,this.dataList=u(e.data),this.dataList.length<=0&&(this.dataShow=!1),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}},t,this,[[0,8]])}));function e(){return t.apply(this,arguments)}return e}(),onDetail:function(t){this.$router.push({path:"/activeDetail",query:{activityId:t.activityId}})}}},m=p,y=(a("6a6f"),a("2877")),w=Object(y["a"])(m,n,r,!1,null,"43a05aaa",null);e["default"]=w.exports}}]);