授权测试

This commit is contained in:
tcubic
2022-08-03 16:57:19 +08:00
parent d67f516e7b
commit 0c981bbe6e
13 changed files with 969 additions and 655 deletions

View File

@@ -7,7 +7,7 @@ export default createStore({
// 数据源
state: {
userAccount: {
xglOpenid: '', //用户openid
xglOpenid: 'o9B_fvsbOdSIIED6fPHjj_lHL24w', //用户openid
token: h5plugin.getQueryString('token'), //用户token
cardId: h5plugin.getQueryString('cardId'), //carid
nkh: h5plugin.getQueryString('nkh'), //牛卡号
@@ -17,7 +17,8 @@ export default createStore({
isHasPrize: [], //是否存在奖品
participantNum: 0, //活动参与人数
prizeResult: 0, //中奖金额
eqcodeImg: '' //二维码
eqcodeImg: '', //二维码
isBirthMon: 0, //生日是否处于当月
},
},
@@ -51,6 +52,10 @@ export default createStore({
updateParticipantNum(state,val){
state.userAccount.participantNum = val.participantNum
},
updateBirthMoon(state,val){
state.userAccount.isBirthMon = val.isBirthMon
},
},
// 改变方法:异步