activeProgram.7d57b392.js 2.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["activeProgram"],{9977:function(t,e,n){},b45d:function(t,e,n){"use strict";var a=n("9977"),r=n.n(a);r.a},f132:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"activeProgram"},[t.dataShow?n("van-cell-group",{attrs:{border:!1}},t._l(t.dataList,function(e,a){return n("van-cell",{key:a,staticClass:"activeItem",attrs:{title:e.activityName,"title-class":"titleStyle",value:e.studentNum+"人","value-class":"valueStyle","is-link":""},on:{click:function(n){return t.onDetail(e)}}})}),1):n("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无活动方案"}})],1)},r=[],i=n("a34a"),o=n.n(i),c=n("d678"),s=n("ef13");function u(t){return v(t)||d(t)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function v(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function f(t,e,n,a,r,i,o){try{var c=t[i](o),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(a,r)}function h(t){return function(){var e=this,n=arguments;return new Promise(function(a,r){var i=t.apply(e,n);function o(t){f(i,a,r,o,c,"next",t)}function c(t){f(i,a,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;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=(n("b45d"),n("2877")),w=Object(y["a"])(m,a,r,!1,null,"0eea2d22",null);e["default"]=w.exports}}]);