更新状态
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user