授权测试
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
},
|
||||
// 改变方法:异步
|
||||
|
||||
Reference in New Issue
Block a user