student-register-store-legacy-e5407536.js 1.2 KB

1
  1. System.register(["./index-legacy-a9507829.js"],(function(e,t){"use strict";var s,n,o,i;return{setters:[function(e){s=e.b2,n=e.b3,o=e.b4,i=e.b5}],execute:function(){var t=i({prefixKey:"",storage:sessionStorage});e("u",s("student-register-store",{state:function(){return{token:t.get(n,""),selectGoods:[],selectVip:[],schoolId:""}},getters:{getToken:function(){return this.token},getGoods:function(){return this.selectGoods},getVip:function(){return this.selectVip},getSchoolId:function(){return this.schoolId}},actions:{setToken:function(e){this.token=e,t.set(n,e)},deleteToken:function(){this.token="",t.remove(n)},setGoods:function(e){this.selectGoods.push(e)},deleteGoods:function(e){var t=this.selectGoods.findIndex((function(t){return t.goodsId===e}));this.selectGoods.splice(t,1)},setVip:function(e){this.selectVip=e},deleteVip:function(e){var t=this.selectVip.findIndex((function(t){return t.goodsId===e}));this.selectVip.splice(t,1)},selectedVip:function(e){return this.selectVip.findIndex((function(t){return t.goodsId===e}))>=0},setShoolId:function(e){this.schoolId=e},studentLoutOut:function(){this.deleteToken(),o.replace({path:"/student-register",query:{sId:this.schoolId}})}}}))}}}));