调整发布优惠券样式

This commit is contained in:
唐明明
2021-09-27 17:02:48 +08:00
parent cda72679d4
commit 005dc9ead1
3 changed files with 71 additions and 120 deletions

View File

@@ -12,17 +12,24 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
token : uni.getStorageSync('token') || ''
token : uni.getStorageSync('token') || '',
coupongoods : []
},
getters: {
getToken: state => {
return state.token
},
getCoupongoods: state => {
return state.coupongoods
}
},
mutations: {
setToken(state, tokenString) {
state.token = tokenString
uni.setStorageSync('token', tokenString)
},
setCoupongoods(state, value) {
state.coupongoods = value
}
}
})