[锶源昆仑-寺庙捐赠活动]

This commit is contained in:
2023-05-15 13:53:32 +08:00
parent 1b6eb2668c
commit c9b18c9074
284 changed files with 9505 additions and 3822 deletions

View File

@@ -12,17 +12,40 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
openId : uni.getStorageSync('openId') || '',
token : uni.getStorageSync('token') || '',
intive : uni.getStorageSync('intive') || '',
parentId : '',
},
getters: {
getToken: state => {
return state.token
},
getIntive: state => {
return state.intive
},
getParentId: state => {
return state.parentId
},
getOpenId: state => {
return state.openId
}
},
mutations: {
setToken(state, tokenString) {
state.token = tokenString
uni.setStorageSync('token', tokenString)
}
},
setIntive: (state, value) => {
state.intive = value
uni.setStorageSync('intive', value)
},
setParentId: (state, value) => {
state.parentId = value
},
setOpenId: (state, value) => {
state.openId = value
uni.setStorageSync('openId', value)
},
}
})