现阶段剩转盘抽奖逻辑
This commit is contained in:
@@ -5,7 +5,7 @@ export default createStore({
|
||||
// 数据源
|
||||
state: {
|
||||
userAccount: {
|
||||
openid: 'openid12138', //用户openid
|
||||
xglOpenid: 'openid12138', //用户openid
|
||||
token: 'token12138', //用户token
|
||||
isDraw: false, //是否抽过奖
|
||||
isHasAccount: false, //是否存在牛卡号
|
||||
@@ -20,11 +20,9 @@ export default createStore({
|
||||
|
||||
// 改变方法(同步):每个 mutation 都有一个字符串的事件类型 (type)和一个回调函数 (handler)
|
||||
mutations: {
|
||||
// 更新openid
|
||||
updateOpenid(state, val) {
|
||||
console.log("update");
|
||||
state.userAccount.openid = val.openid
|
||||
|
||||
// 更新信广龙openid
|
||||
updateXGLOpenid(state, val) {
|
||||
state.userAccount.xglOpenid = val.openid
|
||||
}
|
||||
},
|
||||
// 改变方法:异步
|
||||
|
||||
Reference in New Issue
Block a user