现阶段剩转盘抽奖逻辑

This commit is contained in:
Andy Leong
2022-07-29 18:27:43 +08:00
parent 0be21f0195
commit 33d3ece0bd
46 changed files with 480 additions and 84 deletions

View File

@@ -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
}
},
// 改变方法:异步