Commit 7b3be5a1 authored by zhangyanni's avatar zhangyanni

权限

parent 720f9e8d
......@@ -163,7 +163,7 @@ router.beforeEach((to, from, next) => {
}
}
if(window.sessionStorage.getItem("userInfo") ==null){
if(to.name == 'dashboard'||to.name=='indexView'|| to.name == 'login' || to.name == 'mobileLoginCmpt'|| to.name == 'emailLoginCmpt'|| to.name == 'mobileRegisterCmpt'|| to.name == 'emailRegisterCmpt'||to.name=='completeInfoCmpt'|| to.name == 'successCmpt'||to.name=='findPasswordCmpt'||to.name=='modifyPasswordCmpt'||to.name=='passSuccessCmpt'||to.name=='indexView'||to.name=="mobileIndex"||to.name=="mobileLogin"||to.name=="loginByPhone"||to.name=="loginByEmail"||to.name=="mobileRegister"||to.name=="registerComplete"||to.name=="shareRequire"||to.name=="shareProject"||to.name=="knowledgeList"||to.name=="knowledgeDetail"||to.name=='vip'||to.name=='vipList'||to.name=='loadEmail'||to.name=='openEmail'||to.name=="viewRequire"||to.name=="phoneBusinessList"||to.name=="phoneBusinessDetail"||to.name=="phoneRequireDetail"||to.name=="bigBusinessList"||to.name=="bigBusinessDetail"||to.name=="requireDetail"||to.name=="mixSearch"||to.name=="activitylist"){
if(to.name == 'dashboard'||to.name=='indexView'|| to.name == 'login' || to.name == 'mobileLoginCmpt'|| to.name == 'emailLoginCmpt'|| to.name == 'mobileRegisterCmpt'|| to.name == 'emailRegisterCmpt'||to.name=='completeInfoCmpt'|| to.name == 'successCmpt'||to.name=='findPasswordCmpt'||to.name=='modifyPasswordCmpt'||to.name=='passSuccessCmpt'||to.name=='indexView'||to.name=="mobileIndex"||to.name=="mobileLogin"||to.name=="loginByPhone"||to.name=="loginByEmail"||to.name=="mobileRegister"||to.name=="registerComplete"||to.name=="shareRequire"||to.name=="shareProject"||to.name=="knowledgeList"||to.name=="knowledgeDetail"||to.name=='vip'||to.name=='vipList'||to.name=='loadEmail'||to.name=='openEmail'||to.name=="viewRequire"||to.name=="phoneBusinessList"||to.name=="phoneBusinessDetail"||to.name=="phoneRequireDetail"||to.name=="bigBusinessList"||to.name=="bigBusinessDetail"||to.name=="requireDetail"||to.name=="mixSearch"||to.name=="activitylist"||to.name=="activitydetail"||to.name=="activitysearch"){
} else{
if(to.path == '/casedetailschild'||to.path == '/lndustryfocuschild'||to.path == '/successfulcasechild'||to.path == '/projectdetails'||to.path == '/seeprojectlist'||to.path == '/projectlist'||to.path == '/viewproject'||to.path == '/templateMobile1'||to.path == '/knowledge'||to.path == '/knowledgedetails'||to.path == '/termserviceed'||to.path == '/privacypolicyed'||to.path == '/contactused'||to.path == '/aboutused'||to.path == '/casedetailsed'||to.path == '/lndustryfocused'||to.path == '/successfulcaseed'||to.path == '/usehelped'||to.path == '/useHelp'||to.path == '/reminder'||to.path == '/contactus' ||to.path == '/privacypolicy' ||to.path == '/termservice' ||to.path == '/casedetails' ||to.path == '/successfulcase' ||to.path == '/lndustryfocus' ||to.path == '/aboutus' ){
......
......@@ -19,6 +19,7 @@ export default new Vuex.Store({
sortCitySelected:new Map(),//排序城市选中字段
applyListPage:new Map(),//报名列表页码
applySearchListPage:new Map(),//报名搜索列表页码
myJoinListPage:new Map(),//我参与的活动页码
},
mutations: {
SAVE_LIST_PAGE_PARS:(state,{path,pars})=>{
......@@ -73,7 +74,10 @@ export default new Vuex.Store({
},
applySearchListPage_Func:(state,{path,pars})=>{
state.applySearchListPage.set(path,pars);
}
},
myJoinListPage_Func:(state,{path,pars})=>{
state.myJoinListPage.set(path,pars);
},
},
actions: {
saveListPagePars: ({ commit },{path,pars}) => {
......@@ -132,7 +136,12 @@ export default new Vuex.Store({
applySearchListPageAction:({ commit },{path,pars})=>{
commit('applySearchListPage_Func',{ path,pars });
}
},
myJoinListPageAction:({ commit },{path,pars})=>{
commit('myJoinListPage_Func',{ path,pars });
},
},
getters:{
......
......@@ -26,4 +26,9 @@ export default {
return api.fetchGet("/base/channel/searchActivityRecommend?"+Qs.stringify(params));
},
//我参与的活动
myJoinActivityAxios(params){
return api.fetchGet("/business/activityEnter/getBaseActivityList?createdBy="+params);
}
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment