更新状态

This commit is contained in:
tcubic
2022-08-02 10:38:29 +08:00
parent 2431ca5a89
commit 3d2c065a0f
5 changed files with 38 additions and 25 deletions

View File

@@ -7,6 +7,8 @@ export default createStore({
userAccount: {
xglOpenid: 'openid12138', //用户openid
token: 'token12138', //用户token
cardId: '', //carid
nkh: '', //牛卡号
isDraw: false, //是否抽过奖
isHasAccount: false, //是否存在牛卡号
isAddCustomer: false, //是否添加过服务人员
@@ -24,7 +26,21 @@ export default createStore({
// 更新信广龙openid
updateXGLOpenid(state, val) {
state.userAccount.xglOpenid = val.openid
}
},
// 更新token
updateToken(state,val){
state.userAccount.token = val.token
},
updateCardId(state,val){
state.userAccount.cardId = val.cardId
},
updateNkh(state,val){
state.userAccount.nkh = val.nkh
},
},
// 改变方法:异步
actions: {},